Jump to content

How to make a hotkey to enable more hotkeys?


Recommended Posts

Hi, anyone know how i make a hotkey enable so i can use 5, 6, 7, 8, 9 and 0 to hotkeys? i mean when i push lets say Page up it will able me to use 5 to say hi and 6 to say lets go and 7 to say roger that and when i push Page Down it will disable me to use 5, 6, 7, 8, 9 and 0 to hotkeys? Do anyone understand me?

-XInFisk

Edited by XInFisk
Link to comment
Share on other sites

This will do it for you:

HotKeySet("{PGUP}", "_SetKeys")
HotKeySet("{PGDN}", "_UnSetKeys")

While 1
    Sleep(100)
WEnd


Func _SetKeys()
    Beep(700, 100) ; Beep to let you know it reset the hotkeys
    For $i = 5 to 10
        HotKeySet(StringRight($i,1), "_Func"&StringRight($i,1))
    Next
EndFunc

Func _UnSetKeys()
    Beep(500, 100) ; Beep to let you know it unset the hotkeys
    For $i = 5 to 10
        HotKeySet(StringRight($i,1))
    Next
EndFunc

Func _Func5()
MsgBox(0, "Func5", "This hotkey works!") ; Put your say "Roger" code here
EndFunc

Func _Func6()
MsgBox(0, "Func6", "This hotkey works!") ; Put your say "Hi" code here
EndFunc

Func _Func7()
MsgBox(0, "Func7", "This hotkey works!") ; etc, etc
EndFunc

Func _Func8()
MsgBox(0, "Func8", "This hotkey works!")
EndFunc

Func _Func9()
MsgBox(0, "Func9", "This hotkey works!")
EndFunc

Func _Func0()
MsgBox(0, "Func0", "This hotkey works!")
EndFunc
AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)
Link to comment
Share on other sites

This will do it for you:

HotKeySet("{PGUP}", "_SetKeys")
HotKeySet("{PGDN}", "_UnSetKeys")

While 1
    Sleep(100)
WEnd
Func _SetKeys()
    Beep(700, 100) ; Beep to let you know it reset the hotkeys
    For $i = 5 to 10
        HotKeySet(StringRight($i,1), "_Func"&StringRight($i,1))
    Next
EndFunc

Func _UnSetKeys()
    Beep(500, 100) ; Beep to let you know it unset the hotkeys
    For $i = 5 to 10
        HotKeySet(StringRight($i,1))
    Next
EndFunc

Func _Func5()
MsgBox(0, "Func5", "This hotkey works!") ; Put your say "Roger" code here
EndFunc

Func _Func6()
MsgBox(0, "Func6", "This hotkey works!") ; Put your say "Hi" code here
EndFunc

Func _Func7()
MsgBox(0, "Func7", "This hotkey works!") ; etc, etc
EndFunc

Func _Func8()
MsgBox(0, "Func8", "This hotkey works!")
EndFunc

Func _Func9()
MsgBox(0, "Func9", "This hotkey works!")
EndFunc

Func _Func0()
MsgBox(0, "Func0", "This hotkey works!")
EndFunc
Thanks for a fast reply.. <3

-XInFisk

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...