AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

string in textarea

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
playfullscientist



Joined: 20 Apr 2005
Posts: 22
Location: Princeton NJ USA

PostPosted: Thu Apr 21, 2005 4:25 pm    Post subject: string in textarea Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Titan



Joined: 11 Aug 2004
Posts: 5390
Location: /b/

PostPosted: Thu Apr 21, 2005 4:39 pm    Post subject: Reply with quote

Hmm, you might have to use ControlGetText
_________________

Back to top
View user's profile Send private message Visit poster's website
Wingfat



Joined: 23 Aug 2004
Posts: 193
Location: East Bay, California USA

PostPosted: Thu Apr 21, 2005 5:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group