Below is the code I am using to extract pic files from a zip file I have downloaded. I may or may not have those pictures already in the destination folder so I need to run the script so that if I am asked to overwrite the files in the destination folder then the script will and if it is never asked then just continue on with the script as we were. My questions is can I set up to if statements one for true and one for false or am I doing this wrong:
If>WW_RESULT=FALSE,continue
If>WW_RESULT=TRUE,gohere
Label>extractPics
//RUN WINZIP AND UNZIP FILE
RUN>C:\Program Files\WinZip\WINZIP32.EXE
Wait>2
Press Alt
Wait>1
Send>fo
Wait>1
Release Alt
Wait>1
Send>C:\Documents and Settings\thiscomputer\Desktop\%ftpfilename%
Wait>1
Press Enter
Wait>1
Press Alt
Send>AE
Release Alt
Wait>2
Send>C:\Program Files\Apache Group\Apache\htdocs\somefolder\photos
Wait>2
Press Alt
Wait>1
Send>OE
WaitWindowOpen>Confirm File Overwrite
Let>WW_TIMEOUT=5
WaitWindowOpen>Confirm File Overwrite
If>WW_RESULT=FALSE,continue
..
..
Label>continue
Wait>1
Release Alt
Wait>4
Press Alt
Wait>1
Send>FX
Wait>1
Release ALT
Wait>2
DeleteFile>C:\Documents and Settings\Evergreen\Desktop\%ftpfilename%
Goto>End
Label>End
Getting close
Moderators: JRL, Dorian (MJT support)
-
- Pro Scripter
- Posts: 68
- Joined: Wed May 04, 2005 10:24 pm
Got it
ok, i figured this out on my own. does that make me smart? lol