Hints, tips and tricks for newbies
Moderators: Dorian (MJT support), JRL
-
fourbear
- Newbie
- Posts: 2
- Joined: Mon Jul 02, 2007 5:34 pm
Post
by fourbear » Mon Jul 02, 2007 6:10 pm
I am trying to make a macro that will type in a text box from 100 to 999 and then stop, can anyone tell me a simple way to do this.
Thank You!
You have to hold the ctrl key while typing the number then after release ctrl key. Also I wanted it to wait a short time before increasing to the next highest number. Kinda like scanning a series of numbers.
- CapsOff
Press CTRL
Wait>0.01
Send>100
Wait>0.01
Release CTRL
Wait>10.00
Press CTRL
Wait>0.01
Send>101
Wait>0.01
Release CTRL
Wait>10.00
Press CTRL
Wait>0.01
Send>102
Wait>0.01
Release CTRL
Wait>10.00
-
JRL
- Automation Wizard
- Posts: 3526
- Joined: Mon Jan 10, 2005 6:22 pm
- Location: Iowa
Post
by JRL » Mon Jul 02, 2007 6:19 pm
Try using a repeat loop: Start with k=99, add 1 to k each time through the loop and send k as the text. do this until k reaches 999.
Code: Select all
CapsOff
Let>k=99
Repeat>k
Add>k,1
Press CTRL
Wait>0.01
Send>%k%
Wait>0.01
Release CTRL
Wait>10.00
Until>k=999
-
fourbear
- Newbie
- Posts: 2
- Joined: Mon Jul 02, 2007 5:34 pm
Post
by fourbear » Mon Jul 02, 2007 8:53 pm
Yea that works great, I have to play around with the timing but scans the numbers GREAT!
Thanks