Technical support and scripting issues
Moderators: Dorian (MJT support), JRL
-
fightcancer
- Macro Veteran
- Posts: 247
- Joined: Fri Apr 15, 2005 8:32 am
Post
by fightcancer » Fri Apr 15, 2005 8:34 am
Any suggestions? I removed trailing spaces. TIA!
Code: Select all
SetFocus>Turbo Lister
Let>k=1
Repeat>k
Let>k=k+1
// EVALUATE k VARIABLE
IF>k<10
Let>MyStr=0%k%
ELSE
Let>MyStr=%k%
ENDIF
// CREATE NEW ITEM.
Press ALT
Send>fnt1
Release ALT
// SELECT FOLDER.
WaitWindowOpen>Select Folder to Save Item
Wait>0.5
Press Down * 2
Send>n
Press Enter
// EDIT TITLE.
WaitWindowOpen>Edit Item - Auction Details
Wait>0.5
Press End
Press BACKSPACE * 2
Send>MyStr
Press ALT
Send>o
Release ALT
// EDIT PICTURE.
WaitWindowOpen>Turbo Lister
MouseMove>238,339
Wait>5
LClick
// TYPE PICTURE FILENAME.
WaitWindowOpen>Insert Picture - eBay Picture Services
Wait>0.1
ConCat>MyStr,.jpg
Send>MyStr
Press Enter
// CLOSE PICTURE-BROWSE WINDOW.
WaitWindowOpen>Turbo Lister
Wait>0.5
Press ALT
Send>s
Release ALT
// SAVE PICTURE SELECTION.
WaitWindowOpen>Edit Item - Auction Details
Wait>0.5
Press ALT
Send>s
Release ALT
Wait>2
Until>k=4
Message>k = %k% %CRLF%MyStr = %MyStr%
-
fightcancer
- Macro Veteran
- Posts: 247
- Joined: Fri Apr 15, 2005 8:32 am
Post
by fightcancer » Fri Apr 15, 2005 9:23 am
I'm sure I'm missing something in the code above. So after I pounded a small crater in the wall w/my head, I changed the loop from a Repeat/Until structure to a
Code: Select all
Label>Start
Let>k=k+1
If>k<4,Start
...structure. Seems to be workin fine!
-
support
- Automation Wizard
- Posts: 1450
- Joined: Sat Oct 19, 2002 4:38 pm
- Location: London
-
Contact:
Post
by support » Fri Apr 15, 2005 10:32 am
Which exact version are you running. Being able to put Until>K=4 as opposed to Until>K,4 is quite a recent mod.
-
Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
-
Contact:
Post
by Bob Hansen » Fri Apr 15, 2005 2:38 pm
I believe that Until>k,4 is the correct syntax.
--------------------
Edited: OOPS, did not see earlier posting from Support with same info.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!