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 

Multiple AutoHotKey.ahk or easy switch

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





PostPosted: Wed May 28, 2008 6:11 pm    Post subject: Multiple AutoHotKey.ahk or easy switch Reply with quote

Hi all, wonderful software.

I have a game in which I play two characters so need to switch between two macro scripts.

I don't see a way to select different autohokey.ahk

Is there an easy way to switch?

Or perhaps in the ahk itself I can just cut and paste move up and down without using semicolons?

For example

Player 1 macros

Stop here/break

;Player 2 macros



For example

Player 2 macros

Stop here/break

Thanks in Advance!
Player 1 macros
Back to top
Z Gecko
Guest





PostPosted: Wed May 28, 2008 6:32 pm    Post subject: Reply with quote

You can create as many ahk-files as you like.
Please take a look in the help: http://www.autohotkey.com/docs/Tutorial.htm#Create
Back to top
interiot



Joined: 06 Nov 2005
Posts: 64

PostPosted: Thu May 29, 2008 12:28 am    Post subject: Reply with quote

There needs to be a way to enable/disable large groups of hotkeys, but as far as I know, there's no way to do it. Easiest way is just to include this in every single one of your hotkeys:
Code:
^F::   ; ctrl-f
if (GetKeyState("numlock", "t")) {
    ; player 2 (num-lock is on)
} else {
    ; player 1 (num-lock is off)
}
return
Back to top
View user's profile Send private message
Red Hat Boy



Joined: 10 Apr 2008
Posts: 113

PostPosted: Thu May 29, 2008 12:53 am    Post subject: Reply with quote

Or, you could just create different scripts, and one script to control them. Have a hotkey to enable/disable them.
_________________
I slit the sheet, the sheet I slit,
and on the slitted sheet I sit. ;~}
Back to top
View user's profile Send private message Send e-mail
Darrin
Guest





PostPosted: Thu May 29, 2008 2:40 pm    Post subject: Reply with quote

Yep got the multiple files going. that should be fine. Thanks for the help!
Back to top
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