I'm attempting to run the following script and use the if statement to run the Sub routine 7 times. Problem is it seems to skip over the subroutine.
Anyone got any ideas on what I'm doing wrong?
//AFTER OPENING NOTEPAD
Press Alt
Send>fo
Release Alt
Wait>1
Send>C:\Documents and Settings\Evergreen\Desktop\new_veh.txt
Press Enter
Wait>1
Press Shift
Press Down * 11
Release Shift
Press Del
Press Ctrl
Press End
Release Ctrl
Press Shift
Press Up * 20
Release Shift
Press Backspace * 2
Press Ctrl
Press Home
Release Ctrl
Let>GetCount=0
Let>GetMax=8
Let>GetCount=%GetCount% + 1
Wait>1
If>%GetCount% wordFind
Press Ctrl
Send>F
Release Ctrl
Send>CLNT
Press Enter
SetFocus>new_veh.txt - Notepad
Press Backspace * 5
Press Shift
Press Down * 5
Release Shift
Press Del
SetFocus>Find
End>wordFind
Press Alt
Send>fs
Release Alt
Subroutine
Moderators: JRL, Dorian (MJT support)
Your If line should be:
If>GetCount<GetMax,wordFind
Note quite sure how this is supposed to run the subroutine 7 times though.
If>GetCount<GetMax,wordFind
Note quite sure how this is supposed to run the subroutine 7 times though.
MJT Net Support
[email protected]
[email protected]
-
- Pro Scripter
- Posts: 68
- Joined: Wed May 04, 2005 10:24 pm
-
- Pro Scripter
- Posts: 68
- Joined: Wed May 04, 2005 10:24 pm