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 Feb 22, 2013 9:33 pm
The way I read the Help file, these 2 lines of code do the same thing.
(There's a space after "Send>" even though it may not appear.)
However, in my macro, the second line will not accomplish what the first line does. Am I reading it right?
-
Rain
- Automation Wizard
- Posts: 550
- Joined: Tue Aug 09, 2005 5:02 pm
-
Contact:
Post
by Rain » Fri Feb 22, 2013 10:25 pm
-
JRL
- Automation Wizard
- Posts: 3524
- Joined: Mon Jan 10, 2005 6:22 pm
- Location: Iowa
Post
by JRL » Fri Feb 22, 2013 10:43 pm
However, in my macro, the second line will not accomplish what the first line does.
What do you want ASCII>32 to accomplish? Sending either to notepad gives me a space. Hard to diagnose without knowing what is failing.
-
fightcancer
- Macro Veteran
- Posts: 247
- Joined: Fri Apr 15, 2005 8:32 am
Post
by fightcancer » Fri Feb 22, 2013 11:14 pm
The code is supposed to click the browse box. "Send> " works but "Ascii>32" doesn't.
Code: Select all
IEGetFromURL>tinypic.com,myIERef
IEGetTags>tinypic.com,INPUT,O,tags
Let>pos=0
Let>kTag=0
While>pos=0
Add>kTag,1
Let>tag=tags_%kTag%
Pos>name=the_file,tag,1,pos
EndWhile
// Focus the Browse button and press the space bar.
IETagEvent>tinypic.com,INPUT,kTag,focus,
//IEWait>myIERef
SetFocus>TinyPic*
Send>
//Ascii>32
-
CyberCitizen
- Automation Wizard
- Posts: 721
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia
Post
by CyberCitizen » Sat Feb 23, 2013 12:28 am
What about %SPACE%
FIREFIGHTER
-
Me_again
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
Post
by Me_again » Sat Feb 23, 2013 12:54 am
I confirm the original post, ASCII>32 doesn't act on a window the same as Send>{invisible space} does. (For instance hitting space on this forum in IE will move down the page.)
Send>%SPACE% does work for me.
-
fightcancer
- Macro Veteran
- Posts: 247
- Joined: Fri Apr 15, 2005 8:32 am
Post
by fightcancer » Sun Feb 24, 2013 4:12 pm
OK. Ty for "Send>%SPACE%". I wasn't aware that option existed. Much appreciated!
-
Marcus Tettmar
- Site Admin
- Posts: 7393
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
-
Contact:
Post
by Marcus Tettmar » Mon Feb 25, 2013 9:53 am
You could also do:
Send>{" "}
Or just
Send>_
(Replacing _ with a space)