I currently use the Alt&Numpad keys to present an in-game RCon command. For example if I wish to kick a player, the script is:
;Alt2 will type out the kick command - add the end of the player ID
!Numpad2::
Send, y{Backspace 5}
SendRaw,/rcon password /kick_player 11000010
return
I wanted to know if it was possible to use the "F Keys" in the same way for example:
;F2 will type out the kick command - add the end of the player ID
!F2::
Send, y{Backspace 5}
SendRaw,/rcon password /kick_player 11000010
return
Would this work or does it require more code for the F key to have the same functionality or would it not work at all.
Regards.
AHK Scripting in War of the Roses (The F Keys)
Re: AHK Scripting in War of the Roses (The F Keys)
As near as I can tell, the F-keys are just another key as far as AHK is concerned.
http://ahkscript.org/docs/commands/Send.htm
http://ahkscript.org/docs/commands/Send.htm
Re: AHK Scripting in War of the Roses (The F Keys)
I would agree with that however, how do I map an F key into my script.Builder wrote:As near as I can tell, the F-keys are just another key as far as AHK is concerned.
http://ahkscript.org/docs/commands/Send.htm
Currently my script says that if I hit the Alt key and a number from the numpad a command will appear in-game for me to action.
Somehow I need to identify the F Key code/action/whatever and type it into my script.
Re: AHK Scripting in War of the Roses (The F Keys)
The above doc will tell you precisely how to set up a F hotkey... after that, setting up the action is the same as with any other hotkey.
Re: AHK Scripting in War of the Roses (The F Keys)
By "F key" do you mean the Fn key?
Re: AHK Scripting in War of the Roses (The F Keys)
Keep in mind that the f1 through f12 keys often have ingame functions that could be interfered with if you remap it using a hotkey. It's important to check to see which F keys are being used by the game and which are not. You can also use the shift, alt, and control modifiers to the F hotkey as well to help keep the game's built in f keys secure.
Re: AHK Scripting in War of the Roses (The F Keys)
Yes, this is the correct syntax for binding something to Alt-F2Foxx wrote: !F2::
Send, y{Backspace 5}
SendRaw,/rcon password /kick_player 11000010
return
Would this work or does it require more code for the F key to have the same functionality or would it not work at all.