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 

halting a script

 
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 6:44 pm    Post subject: halting a script Reply with quote

Hi...I was working on placing a string in a text area (see earlier post). When it did not work, I went to a more complicated script. It worked, but it worked too well. It refused to stop and kept apending abcd to the textarea. How do I halt this script after one insert of abcd? Thanks. playfullscientist

clipboard=abcd
SetTimer,alert1,100
return

alert1:
;right click in textarea to get dialog box
MouseClick,Right,250,300
;left click on Paste in dialog box
MouseClick,Left,262,367
return
_________________
I am a playful scientist
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Thu Apr 21, 2005 11:03 pm    Post subject: Reply with quote

Try:
Gosub,alert1
Instead of:
SetTimer,alert1,100
Back to top
View user's profile Send private message Send e-mail
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