 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
playfullscientist
Joined: 20 Apr 2005 Posts: 22 Location: Princeton NJ USA
|
Posted: Thu Apr 21, 2005 4:25 pm Post subject: string in textarea |
|
|
Hi...I tried to replace an empty textarea (at x216, y310) with the text abcd. Here is the code that did not work. Can I do this with autohotkey? Thanks. playfullscientist
; Move the mouse to a new position:
MouseMove, 216, 310,50,R
; Replace space with abcd:
StringReplace, NewStr, OldStr, abcd, %A_SPACE%, _________________ I am a playful scientist |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Thu Apr 21, 2005 4:39 pm Post subject: |
|
|
Hmm, you might have to use ControlGetText _________________
 |
|
| Back to top |
|
 |
Wingfat
Joined: 23 Aug 2004 Posts: 193 Location: East Bay, California USA
|
Posted: Thu Apr 21, 2005 5:01 pm Post subject: |
|
|
It seems like you are missing a mouse click after you move the mouse tot he position, use MouseClick Left, then you should be able to use Send to place the abcd into that empty area.
| Code: |
; Move the mouse to a new position:
MouseMove, 216, 310,50,R
; Use Left Mouse click to select area to type in
MouseClick, Left, 216, 310,
; Replace space with abcd:
; StringReplace, NewStr, OldStr, abcd, %A_SPACE%,
; Useing Send to type out abcd into empty area
Send, abcd
|
If that is what you trying to do... _________________ ----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
----------------------------- |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|