Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP WITH MY MACRO
#1
How can i make my macro automaticly change a number, as if its counting... ex.......

DAY1
DAY2
DAY3
DAY4
DAY5

AND SO ON............
#2
Macro
Code:
Copy      Help
int z
rep 10
,out z
,z+1
An old blog on QM coding and automation.

The Macro Hook
#3
to learn about concatenating strings and numbers take a look at my blog in the sig.
An old blog on QM coding and automation.

The Macro Hook
#4
this is the macro, now everytime it repeats i need the number to increase by 1...... day1, day2,day3.......

rep 1200
0.1
lef 418 94
0.1
lef 133 225
0.1
key "day1"
0.1
lef 418 94
0.1
lef 119 112
0.1
#5
yes, and if you go to my blog, you'll find how to do that.
An old blog on QM coding and automation.

The Macro Hook
#6
There are several functions that can be used to join strings and numbers. The easiest is from. Also you have to use variables. str variables for strings, int variables for numbers. To repeat, use rep or for or goto. With key variables must be enclosed in ().

Macro
Code:
Copy      Help
str s
int i
for i 1 6
,s.from("day" i)
,key (s) Y
#7
WOW.....you guys are speaking chinese....i have no clue what your saying....all i know is how to make a basic macro/function as i posted..... if someone can use wat i posted and do it for me i would appreciate it.... all i need is the number beside the word day to increase by 1 every time it repeats.
#8
The macro in my post does exactly what you need (if i correctly understand you). Copy/paste and run to see how it works.
#9
Gintaras Wrote:The macro in my post does exactly what you need (if i correctly understand you). Copy/paste and run to see how it works.

AND INSERT IT WHERE I HAVE.... KEY"DAY1"
#10
its works..... but not the way i would like it to.... this i basicly how i need it to work....

0.1
lef 418 94
0.1
lef 133 225
0.1
key "day1"
0.1
lef 418 94
0.1
lef 119 112
0.1

0.1
lef 418 94
0.1
lef 133 225
0.1
key "day2"
0.1
lef 418 94
0.1
lef 119 112
0.1

0.1
lef 418 94
0.1
lef 133 225
0.1
key "day3"
0.1
lef 418 94
0.1
lef 119 112
0.1

and so on..........
#11
Anybody??? Sad
#12
On a certain day do you want it to click a certin spot on the screen or maybe put the day at a certain spot of the screen?
#13
Time_Runner Wrote:On a certain day do you want it to click a certin spot on the screen or maybe put the day at a certain spot of the screen?

no.... i just want it to type day1 then continue on with the macro.. and when it repeats the macro the 2nd time i need it to write day2 and the third time day3 ...and so on.... everytime the macro repeats the day goes up by one.....

they way that Gintara posted it starts the macro fine but when it come to the day part it writes the days "day1 day2 day3... then continues on with the rest of the macro....
#14
whoever can help me figure it out i will send them a log booklet in the mail!!! :lol: :lol: :lol: :lol: :lol:
#15
macro
Code:
Copy      Help
str s
int+ i
rep 10 ;spe 250 ;;this will repeat 10 times at the speed of 250 change to your liking
,i+1
,s.from("day" i)
,0.1
,lef 418 94
,0.1
,lef 133 225
,0.1    
,out s
,key (s)
,0.1
,lef 418 94
,0.1
,lef 119 112
,0.1
i = 0 ;;this resets the days back to 1 after the repeating process has finished.
#16
instead of 'out' it needs to be 'outp' :wink:
An old blog on QM coding and automation.

The Macro Hook
#17
craig1983 Wrote:macro
Code:
Copy      Help
str s
int+ i
rep 10 ;spe 250 ;;this will repeat 10 times at the speed of 250 change to your liking
,i+1
,s.from("day" i)
,0.1
,lef 418 94
,0.1
,lef 133 225
,0.1    
,out s
,key (s)
,0.1
,lef 418 94
,0.1
,lef 119 112
,0.1
i = 0 ;;this resets the days back to 1 after the repeating process has finished.

criag, you rock bro.....worked exactly how i wanted it...... thank you very much!!!!! Big Grin Smile Big Grin Smile Big Grin Smile Big Grin Smile Big Grin


Forum Jump:


Users browsing this thread: 2 Guest(s)