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 

Script not running in new version

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
compuboy_r



Joined: 04 May 2004
Posts: 68

PostPosted: Fri Jul 16, 2004 2:17 pm    Post subject: Script not running in new version Reply with quote

Try running this script in newly released AHK

Code:
#persistent
SetTimer, AutoReplace, 1000
SetKeyDelay, -1

AutoReplace:
   SetTimer, AutoReplace, off
   Input, UserInput, *V, {ESC}, btw, otoh,
   IfInString UserInput, btw
      Send, {backspace 3}by the way
   IfInString UserInput, otoh
      Send, {backspace 4}on the other hand
   SetTimer, AutoReplace, on
return
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Fri Jul 16, 2004 4:11 pm    Post subject: Reply with quote

Thanks, I fixed that. The trailing comma in "otoh," is what was causing the crash. You can either remove the trailing comma or re-download the installer from http://www.autohotkey.com/download/

Btw, leading spaces are significant in the match list. So in the above script, otoh must be typed with a leading space to trigger the expansion.
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 -> Bug Reports 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