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 

Send vs Sendraw vs Sendplay and looping

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



Joined: 22 Apr 2008
Posts: 18

PostPosted: Thu May 22, 2008 5:06 pm    Post subject: Send vs Sendraw vs Sendplay and looping Reply with quote

Just for newbies who don't know this (like myself 10min ago), If you use say,
Code:

1::Send text1

as a hotkey then when the 'text1' displays the '1' it will think that the button '1' has been pushed again and so you will get a loop of text like 'texttexttexttexttexttexttexttext...".

Or if you use
Code:

1::Send 1


AHK will give you an error message saying something like.

"71 hotkeys have been received in the last 1109ms
Do you want to continue?"

Same thing applies for sendraw

Use:
Code:

1::Sendplay text1


Instead to print "text1"
OR
Code:

1::Sendplay 1


To print "1"
I don't really know why, even though I think I understand the help file.

Even though it sounds stupid to print "1" when you press the button 1 I have my reasons...
_________________
Inventing problems that need solutions...
Back to top
View user's profile Send private message
Krogdor



Joined: 18 Apr 2008
Posts: 908
Location: The Interwebs

PostPosted: Fri May 23, 2008 12:13 am    Post subject: Reply with quote

Either add #UseHook to the top of the script, or simply make the hotkey
Code:
$1:: Send 1
Back to top
View user's profile Send private message AIM Address
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