Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Timer but different.
#1
theres examples of timer with OSD
well is there a way i can get it with outp?
say 1 2 3 4 5 untill 10?
thanks, TYLER
#2
,str c.getwintext(id(12 "DoNTKNoWMe - Multi Yahoo Creator"))
,,str a.getwintext(id(15 "DoNTKNoWMe - Multi Yahoo Creator"))
,outp c
c + 1
,if(c=a)end
else
,0.1

i want that so after the first time it will be 2 then 3 then 4????
ty Big Grin
#3
when you declare your variable in the beginning, instead of starting it at 0 start it at 1 or 2.
An old blog on QM coding and automation.

The Macro Hook
#4
So
c=1 ??
thanks for reply too bro.
its calling off a dialog (edit)
#5
well i got a dialog with 2 edits.
one for Starting Number example (1) then ending number (5)
so thats why i'm, using the getwintext.
so i want it to add 1 everytime so at 5 it stops???
#6
ahhh....to convert a string that is a number to a number. use the 'val' function.

there are several examples in the help under 'val'.
An old blog on QM coding and automation.

The Macro Hook
#7
Ok bro.
i looked around. couldn't find anythin.
you think you could give me a sample or give me a link.
i done this but i cannot make it stop just carrys on making accounts..

int+ Yahoo
,Yahoo+1
str b.format("%i" Yahoo)
,outp b

thanks Ken bro
#8
look for the word 'val' in the help file. in the qm help file index (F1).
An old blog on QM coding and automation.

The Macro Hook
#9

This is straight from the QM reference for 'val'.



Macro ( Macro68 )
Code:
Copy      Help
lpstr s = " - 04.757E2 5000"
out val(s)
int i
out val(s 2 i)
out i
;Output:
;-475
;-475.7
;11
Taking on Quick Macros one day at a time
#10
Yeh i found this.
so how would i be able to make i go up 1 every time?
thx again bro Big Grin
#11
just like this

int+ Yahoo
Yahoo+1
An old blog on QM coding and automation.

The Macro Hook
#12
Ahh
Thx alot bro Wink Big Grin


Forum Jump:


Users browsing this thread: 1 Guest(s)