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 

Relacing current running script

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



Joined: 20 Jul 2004
Posts: 21
Location: South Africa

PostPosted: Mon Mar 21, 2005 7:04 pm    Post subject: Relacing current running script Reply with quote

Is it possible to toggle between two scripts using a hotkey. For example, when I press a specific hotkey I would like the current running script to unload and an alternative script to load. Once I'm done with the alternative script the same hotkey must unload the alternative script and reload the original one.

Thanks
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Mon Mar 21, 2005 7:53 pm    Post subject: Reply with quote

I think something simple can achieve this:

^!d:: ; Ctrl+Alt+D hotkey.
Run, Script2.ahk ; Change this to Script1.ahk in your other script.
ExitApp
Back to top
View user's profile Send private message Send e-mail
wolive



Joined: 20 Jul 2004
Posts: 21
Location: South Africa

PostPosted: Mon Mar 21, 2005 8:27 pm    Post subject: Reply with quote

Thanks for the quick response. It works as described by you.
Very Happy
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