Catalyst78

Better Gaming Mouse Binds/Hotkeys G502

3 posts in this topic

#1 ·  Posted

I want to be able to press one of the many extra buttons on my mouse to execute an autoit script function. To do this I have bound weird key combinations to to each button that would otherwise never be pressed, like shift+alt+ctrl+/ (see linked image and the following code.)

Unfortunately this has a few annoying side effects, such as interfering with whatever I'm doing or one of the modifier keys occasionally getting 'stuck' down.

I have been compling each version of this script directly into my startup folder(win7) and have been using it for years. But surely there is a better way of doing this, thanks for help in advance.

http://prnt.sc/dquyar

;^ Ctrl    ! Alt    + Shift    # Win
HotKeySet("!{/}",  "Back_Btn")  ; spamclickoff
HotKeySet("+!^{.}", "Forw_Btn") ; ___/Speakers/HeadPhones
HotkeySet("+!^{,}", "Midd_Btn") ;MouseLock/InputStuff

HotkeySet("+!^{\}", "Gs_Back_Btn") ;ScreenBrightness 100/60/20
HotkeySet("+!^{=}", "Gs_Forw_Btn") ;Vlc/CloseVlc Recent/Touhou
HotkeySet("+!^{-}", "Gs_Midd_Btn") ;ScreenSwaper ToMain/ToSecond

HotkeySet("+!^{]}", "Gs_M3")      ;VlcTogglePlay
HotkeySet("+!^{[}", "Gs_MW_Left") ;F11/!Enter

 

Share this post


Link to post
Share on other sites



#2 ·  Posted

The G502 (I have it) has other buttons you can bind those keys to so you wouldn't have to use modifiers. Play/Pause, Stop, Next Track, Previous Track, Volume Up, Volume Down, and Mute would probably be better.

I haven't tested it but maybe a low level keyboard hook, instead of hotkey, might get rid of the side effects. Just check in the help file _WinAPI_SetWindowsHookEx to get you started, if you wanted to go this route (much more difficult and will use more system resources).

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

 

20 minutes ago, InunoTaishou said:

The G502 (I have it) has other buttons you can bind those keys to so you wouldn't have to use modifiers. Play/Pause, Stop, Next Track, Previous Track, Volume Up, Volume Down, and Mute would probably be better.

I already use most of these (for their intended purpose) on the non G-shift side.

 

20 minutes ago, InunoTaishou said:

I haven't tested it but maybe a low level keyboard hook, instead of hotkey, might get rid of the side effects. Just check in the help file _WinAPI_SetWindowsHookEx to get you started, if you wanted to go this route (much more difficult and will use more system resources).

I have G9 bound to start a script that locks mouse movement. I wrote it quite some time ago as part of my mouse script. Here it is if you were wondering:

#include <WinAPI.au3>

Opt("TrayIconHide", 1)

Global $locked = 1
Global $pStub_MouseProc = DllCallbackRegister ("_Mouse_Handler", "int", "int;ptr;ptr")
Global $hHookMouse = _WinAPI_SetWindowsHookEx($WH_MOUSE_LL, DllCallbackGetPtr($pStub_MouseProc), _WinAPI_GetModuleHandle(0), 0)

while $locked
   sleep(100)
WEnd

DllCallbackFree($pStub_MouseProc)
_WinAPI_UnhookWindowsHookEx($hHookMouse)
Exit

Func _Mouse_Handler($nCode, $wParam, $lParam)
   local $info
   If $nCode < 0 Or $locked = 0 Then Return _WinAPI_CallNextHookEx($hHookMouse, $nCode, $wParam, $lParam)
   If $wParam = 0x00000200 Then Return 1

   $locked = 0
EndFunc

 

But yeah, I'm pretty sure buttons getting stuck down is the fault of the mouse. Some of the functions in my script do different things when a button is held down or pressed multiple times. Using these is where it happens most often.

Edited by Catalyst78
typo & mistakes in code, also didn't actually finish writing post <.< hurr durr

Share this post


Link to post
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

  • Similar Content

    • leomoon
      By leomoon
      Hello,
      I'm trying to write a hotkey program and I know exactly how to do it but it will be hard coded and the user won't be able to edit it.
      HotKeySet("{ESC}", "HotKeyPressed") HotKeySet("^!d", "HotKeyPressed") HotKeySet("^+x", "HotKeyPressed") While 1 Sleep(500) WEnd Func HotKeyPressed() Switch @HotKeyPressed Case "{ESC}" Exit Case "^!d" ShellExecute("D:\Docs") Case "^+x" ShellExecute("D:\Docs\My Portables\Burner\AnyBurn\AnyBurn.exe") EndSwitch EndFunc I want the program to read a file that has hotkeys on odd lines and paths on even lines but I don't see how the program will load into itself.
      Is it even possible?
      Thanks.
    • AndreyS
      By AndreyS
      Dear developers and creators of the language, please explain to me why when pressing the combination Crtl + Shift + C from the 5th or the 10th time "sticks / sinks" Ctrl or Shift? And then you need to press Ctrl or Shift again to reset their triggering. I only need to use hot keys like in the example!
      The code is a small example. Its essence is that when a user in the editor selects any number and presses a combination, then it increases by 1. 
      Dim $x HotKeySet("+^c","Calc") While 1 Sleep(10000) WEnd Func Calc() Send("^c") Sleep(50) $x=ClipGet()+1 ClipPut($x) Send("^v") EndFunc I thought that in my program some kind of glitch was searching for a reason for a long time. And it turned out that apparently somehow the work of some functions used in the example is not compatible. 
      Tell me, please, what is the problem?
    • kokoilie
      By kokoilie
      I'm making a program that has a combo control in a gui and back in win7 when the window was focused the scroll wheel could be used to scroll through it's contents, now i'm using win10 and i have to put the mouse on that control to scroll up and down.
      Since now the scroll wheel works depending on where the mouse is, is there a way to make it no matter where on the gui the pointer is?
      Also if the only way to do it is some complex hotkey functions will it work with pressing space to toggle a checkbox?
      If you need to see what i have so far let me know and i'll copy it here.
    • StudioMaker
      By StudioMaker
      Hey anyone knows how i can have a inputbox that is connected to an HotKeySet? Like if u put in like "a" in the inputbox it sets the hotkey to "a"?
       
    • Verssuss
      By Verssuss
      Hello guys. how are u doing today ?? Im new here but i wanted show somethink i just did. 
      best kind of dynamic way to set hotkeys in yours own program.
      i need any suggestions, bugs report or any way to improve or any way i can do it better. 
      its first my own "example" so be easy for me.
       
      Thank u for your attention !!! #include <Misc.au3> #include <MsgBoxConstants.au3> #include <GUIConstantsEx.au3> $GUI = GUICreate("set hotkeys", -1,-1) GUISetState() $button_hotkey = GUICtrlCreateButton("", 80, 30, 150, 25) $button_empty = GUICtrlCreateButton("", -1 ,-1) GUICtrlSetState ($button_empty, $GUI_HIDE) Local $hDLL = DllOpen("user32.dll") $start = False $CTRL = False $SHIFT = False $ALT = False $SHIFTCTRL = False $SHIFTALT = False $CTRLALT = False $SHIFTCTRLALT = False $klawisz_shift = "" $klawisz_ctrl = "" $klawisz_alt = "" Global $klawisz_shift_autoit, $klawisz_ctrl_autoit, $klawisz_alt_autoit, $klawisz, $klawisz_autoit While 1 $Msg = GUIGetMsg() Switch $Msg Case $GUI_EVENT_CLOSE Exit Case $button_hotkey GUICtrlSetState($button_empty, $GUI_FOCUS) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit) $start = True $SHIFT = False $CTRL = False $ALT = False $SHIFTCTRL = False $SHIFTALT = False $CTRLALT = False $SHIFTCTRLALT = False GUISetState(@SW_DISABLE, $GUI) $klawisz_shift = "" $klawisz_ctrl = "" $klawisz_alt = "" $klawisz_shift_autoit = "" $klawisz_ctrl_autoit = "" $klawisz_alt_autoit = "" $klawisz_autoit = "" $klawisz = "" GUICtrlSetData($button_hotkey, "Press Hot Key") pobierz_hotkey() EndSwitch WEnd Func pobierz_hotkey() While $start = True If $start = True And _IsPressed('10', $hDLL) And Not _IsPressed('11', $hDLL) And Not _IsPressed('12', $hDLL) And $SHIFT = False Then $klawisz_shift = "SHIFT + " $klawisz_ctrl = "" $klawisz_alt = "" $klawisz_shift_autoit = "+" $klawisz_ctrl_autoit = "" $klawisz_alt_autoit = "" $SHIFT = True $CTRL = False $ALT = False $SHIFTCTRL = False $SHIFTALT = False $CTRLALT = False $SHIFTCTRLALT = False GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) ElseIf $start = True And $SHIFT = True And Not _IsPressed('10', $hDLL) And Not _IsPressed('11', $hDLL) And Not _IsPressed('12', $hDLL) Then $klawisz_shift = "SHIFT" $klawisz_ctrl = "" $klawisz_alt = "" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) GUISetState(@SW_ENABLE) $start = False EndIf ; SHIFT If $start = True And Not _IsPressed('10', $hDLL) And _IsPressed('11', $hDLL) And Not _IsPressed('12', $hDLL) And $CTRL = False Then $klawisz_shift = "" $klawisz_ctrl = "CTRL + " $klawisz_alt = "" $klawisz_shift_autoit = "" $klawisz_ctrl_autoit = "^" $klawisz_alt_autoit = "" $SHIFT = False $CTRL = True $ALT = False $SHIFTCTRL = False $SHIFTALT = False $CTRLALT = False $SHIFTCTRLALT = False GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) ElseIf $start = True And $CTRL = True And Not _IsPressed('10', $hDLL) And Not _IsPressed('11', $hDLL) And Not _IsPressed('12', $hDLL) Then $klawisz_shift = "" $klawisz_ctrl = "CTRL" $klawisz_alt = "" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf ; CTRL If $start = True And Not _IsPressed('10', $hDLL) And Not _IsPressed('11', $hDLL) And _IsPressed('12', $hDLL) And $ALT = False Then $klawisz_shift = "" $klawisz_ctrl = "" $klawisz_alt = "ALT + " $klawisz_shift_autoit = "" $klawisz_ctrl_autoit = "" $klawisz_alt_autoit = "!" $SHIFT = False $CTRL = False $ALT = True $SHIFTCTRL = False $SHIFTALT = False $CTRLALT = False $SHIFTCTRLALT = False GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) ElseIf $start = True And $ALT = True And Not _IsPressed('10', $hDLL) And Not _IsPressed('11', $hDLL) And Not _IsPressed('12', $hDLL) Then $klawisz_shift = "" $klawisz_ctrl = "" $klawisz_alt = "ALT" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf ; ALT If $start = True And _IsPressed('10', $hDLL) And _IsPressed('11', $hDLL) And Not _IsPressed('12', $hDLL) And $SHIFTCTRL = False Then $klawisz_shift = "SHIFT + " $klawisz_ctrl = "CTRL + " $klawisz_alt = "" $klawisz_shift_autoit = "+" $klawisz_ctrl_autoit = "^" $klawisz_alt_autoit = "" $SHIFT = False $CTRL = False $ALT = False $SHIFTCTRL = True $SHIFTALT = False $CTRLALT = False $SHIFTCTRLALT = False GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) ElseIf $start = True And $SHIFTCTRL = True And Not _IsPressed('10', $hDLL) And Not _IsPressed('11', $hDLL) And Not _IsPressed('12', $hDLL) Then $klawisz_shift = "SHIFT + " $klawisz_ctrl = "CTRL" $klawisz_alt = "" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf ; SHIFT CTRL If $start = True And _IsPressed('10', $hDLL) And Not _IsPressed('11', $hDLL) And _IsPressed('12', $hDLL) And $SHIFTALT = False Then $klawisz_shift = "SHIFT + " $klawisz_ctrl = "" $klawisz_alt = "ALT + " $klawisz_shift_autoit = "+" $klawisz_ctrl_autoit = "" $klawisz_alt_autoit = "!" $SHIFT = False $CTRL = False $ALT = False $SHIFTCTRL = False $SHIFTALT = True $CTRLALT = False $SHIFTCTRLALT = False GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) ElseIf $start = True And $SHIFTCTRL = True And Not _IsPressed('10', $hDLL) And Not _IsPressed('11', $hDLL) And Not _IsPressed('12', $hDLL) Then $klawisz_shift = "SHIFT + " $klawisz_ctrl = "" $klawisz_alt = "ALT" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf ;SHIFT ALT If $start = True And Not _IsPressed('10', $hDLL) And _IsPressed('11', $hDLL) And _IsPressed('12', $hDLL) And $CTRLALT = False Then $klawisz_shift = "" $klawisz_ctrl = "CTRL + " $klawisz_alt = "ALT + " $klawisz_shift_autoit = "" $klawisz_ctrl_autoit = "^" $klawisz_alt_autoit = "!" $SHIFT = False $CTRL = False $ALT = False $SHIFTCTRL = False $SHIFTALT = False $CTRLALT = True $SHIFTCTRLALT = False GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) ElseIf $start = True And $CTRLALT = True And Not _IsPressed('10', $hDLL) And Not _IsPressed('11', $hDLL) And Not _IsPressed('12', $hDLL) Then $klawisz_shift = "" $klawisz_ctrl = "CTRL + " $klawisz_alt = "ALT" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf ; CTRL ALT If $start = True And _IsPressed('10', $hDLL) And _IsPressed('11', $hDLL) And _IsPressed('12', $hDLL) And $SHIFTCTRLALT = False Then $klawisz_shift = "SHIFT + " $klawisz_ctrl = "CTRL + " $klawisz_alt = "ALT + " $klawisz_shift_autoit = "+" $klawisz_ctrl_autoit = "^" $klawisz_alt_autoit = "!" $SHIFT = False $CTRL = False $ALT = False $SHIFTCTRL = False $SHIFTALT = False $CTRLALT = False $SHIFTCTRLALT = True GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) ElseIf $start = True And $SHIFTCTRLALT = True And Not _IsPressed('10', $hDLL) And Not _IsPressed('11', $hDLL) And Not _IsPressed('12', $hDLL) Then $klawisz_shift = "SHIFT + " $klawisz_ctrl = "CTRL + " $klawisz_alt = "ALT" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf ; SHIFT CTRL ALT ;/////// /////// /////// /////// /////// /////// /////// /////// /////// If $start = True And _IsPressed('08', $hDLL) Then $klawisz = "BACKSPACE" $klawisz_autoit = "{BACKSPACE}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('09', $hDLL) Then $klawisz = "TAB" $klawisz_autoit = "{TAB}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('0D', $hDLL) Then $klawisz = "ENTER" $klawisz_autoit = "{ENTER}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('13', $hDLL) Then $klawisz = "PAUSE" $klawisz_autoit = "{PAUSE}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('14', $hDLL) Then $klawisz = "CAPSLOCK" $klawisz_autoit = "{CAPSLOCK}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('1B', $hDLL) Then $klawisz = "ESC" $klawisz_autoit = "{ESC}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('20', $hDLL) Then $start = False $klawisz = "SPACEBAR" $klawisz_autoit = "{SPACE}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('21', $hDLL) Then $klawisz = "PAGE UP" $klawisz_autoit = "{PGUP}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('22', $hDLL) Then $klawisz = "PAGE DOWN" $klawisz_autoit = "{PGDN}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('23', $hDLL) Then $klawisz = "END" $klawisz_autoit = "{END}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('24', $hDLL) Then $klawisz = "HOME" $klawisz_autoit = "{HOME}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('25', $hDLL) Then $klawisz = "LEFT ARROW" $klawisz_autoit = "{LEFT}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('26', $hDLL) Then $klawisz = "UP ARROW " $klawisz_autoit = "{UP}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('27', $hDLL) Then $klawisz = "RIGHT ARROW" $klawisz_autoit = "{RIGHT}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('28', $hDLL) Then $klawisz = "DOWN ARROW" $klawisz_autoit = "{DOWN}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf ;~ If $start = True And _IsPressed('29', $hDLL) Then ;~ $klawisz = "SELECT" ;~ $klawisz_autoit = "???" ;~ GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) ;~ GUISetState(@SW_ENABLE) ;~ HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") ;~ $start = False ;~ EndIf If $start = True And _IsPressed('2A', $hDLL) Then $klawisz = "PRINT" $klawisz_autoit = "{PRINTSCREEN}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf ;~ If $start = True And _IsPressed('2B', $hDLL) Then ;~ $klawisz = "EXECUTE" ;~ $klawisz_autoit = "???" ;~ GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) ;~ GUISetState(@SW_ENABLE) ;~ HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") ;~ $start = False ;~ EndIf If $start = True And _IsPressed('2C', $hDLL) Then $klawisz = "PRINT SCREEN" $klawisz_autoit = "{PRINTSCREEN}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('2D', $hDLL) Then $klawisz = "INS" $klawisz_autoit = "{INS}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('2E', $hDLL) Then $klawisz = "DEL" $klawisz_autoit = "{DEL}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('30', $hDLL) Then $klawisz = "0" $klawisz_autoit = "0" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('31', $hDLL) Then $klawisz = "1" $klawisz_autoit = "1" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('32', $hDLL) Then $klawisz = "2" $klawisz_autoit = "2" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('33', $hDLL) Then $klawisz = "3" $klawisz_autoit = "3" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('34', $hDLL) Then $klawisz = "4" $klawisz_autoit = "4" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('35', $hDLL) Then $klawisz = "5" $klawisz_autoit = "5" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('36', $hDLL) Then $klawisz = "6" $klawisz_autoit = "6" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('37', $hDLL) Then $klawisz = "7" $klawisz_autoit = "7" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('38', $hDLL) Then $klawisz = "8" $klawisz_autoit = "8" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('39', $hDLL) Then $klawisz = "9" $klawisz_autoit = "9" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('41', $hDLL) Then $klawisz = "a" $klawisz_autoit = "a" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('42', $hDLL) Then $klawisz = "b" $klawisz_autoit = "b" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('43', $hDLL) Then $klawisz = "c" $klawisz_autoit = "c" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('44', $hDLL) Then $klawisz = "d" $klawisz_autoit = "d" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('45', $hDLL) Then $klawisz = "e" $klawisz_autoit = "e" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('46', $hDLL) Then $klawisz = "f" $klawisz_autoit = "f" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('47', $hDLL) Then $klawisz = "g" $klawisz_autoit = "g" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('48', $hDLL) Then $klawisz = "h" $klawisz_autoit = "h" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('49', $hDLL) Then $klawisz = "i" $klawisz_autoit = "i" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('4A', $hDLL) Then $klawisz = "j" $klawisz_autoit = "j" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('4B', $hDLL) Then $klawisz = "k" $klawisz_autoit = "k" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('4C', $hDLL) Then $klawisz = "l" $klawisz_autoit = "l" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('4D', $hDLL) Then $klawisz = "m" $klawisz_autoit = "m" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('4E', $hDLL) Then $klawisz = "n" $klawisz_autoit = "n" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('4F', $hDLL) Then $klawisz = "o" $klawisz_autoit = "o" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('50', $hDLL) Then $klawisz = "p" $klawisz_autoit = "p" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('51', $hDLL) Then $klawisz = "q" $klawisz_autoit = "q" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('52', $hDLL) Then $klawisz = "r" $klawisz_autoit = "r" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('53', $hDLL) Then $klawisz = "s" $klawisz_autoit = "s" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('54', $hDLL) Then $klawisz = "t" $klawisz_autoit = "t" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('55', $hDLL) Then $klawisz = "u" $klawisz_autoit = "u" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('56', $hDLL) Then $klawisz = "v" $klawisz_autoit = "v" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('57', $hDLL) Then $klawisz = "w" $klawisz_autoit = "w" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('58', $hDLL) Then $klawisz = "x" $klawisz_autoit = "x" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('59', $hDLL) Then $klawisz = "y" $klawisz_autoit = "y" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('5A', $hDLL) Then $klawisz = "z" $klawisz_autoit = "z" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('60', $hDLL) Then $klawisz = "KP 0" $klawisz_autoit = "{NUMPAD0}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('61', $hDLL) Then $klawisz = "KP 1" $klawisz_autoit = "{NUMPAD1}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('62', $hDLL) Then $klawisz = "KP 2" $klawisz_autoit = "{NUMPAD2}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('63', $hDLL) Then $klawisz = "KP 3" $klawisz_autoit = "{NUMPAD3}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('64', $hDLL) Then $klawisz = "KP 4" $klawisz_autoit = "{NUMPAD4}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('65', $hDLL) Then $klawisz = "KP 5" $klawisz_autoit = "{NUMPAD5}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('66', $hDLL) Then $klawisz = "KP 6" $klawisz_autoit = "{NUMPAD6}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('67', $hDLL) Then $klawisz = "KP 7" $klawisz_autoit = "{NUMPAD7}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('68', $hDLL) Then $klawisz = "KP 8" $klawisz_autoit = "{NUMPAD8}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('69', $hDLL) Then $klawisz = "KP 9" $klawisz_autoit = "{NUMPAD9}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('6A', $hDLL) Then $klawisz = "KP Multiply" $klawisz_autoit = "{NUMPADMULT}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('6B', $hDLL) Then $klawisz = "KP Add" $klawisz_autoit = "{NUMPADADD}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('6C', $hDLL) Then $klawisz = "Separator" $klawisz_autoit = "??" ;///////////////////////// GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('6D', $hDLL) Then $klawisz = "KP Subtract" $klawisz_autoit = "{NUMPADSUB}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('6E', $hDLL) Then $klawisz = "KP dot" $klawisz_autoit = "{NUMPADDOT}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('6F', $hDLL) Then $klawisz = "KP slash" $klawisz_autoit = "{NUMPADDIV}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('70', $hDLL) Then $klawisz = "F1" $klawisz_autoit = "{F1}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('71', $hDLL) Then $klawisz = "F2" $klawisz_autoit = "{F2}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('72', $hDLL) Then $klawisz = "F3" $klawisz_autoit = "{F3}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('73', $hDLL) Then $klawisz = "F4" $klawisz_autoit = "{F4}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('74', $hDLL) Then $klawisz = "F5" $klawisz_autoit = "{F5}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('75', $hDLL) Then $klawisz = "F6" $klawisz_autoit = "{F6}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('76', $hDLL) Then $klawisz = "F7" $klawisz_autoit = "{F7}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('77', $hDLL) Then $klawisz = "F8" $klawisz_autoit = "{F8}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('78', $hDLL) Then $klawisz = "F9" $klawisz_autoit = "{F9}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('79', $hDLL) Then $klawisz = "F10" $klawisz_autoit = "{F10}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('7A', $hDLL) Then $klawisz = "F11" $klawisz_autoit = "{F11}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('7B', $hDLL) Then $klawisz = "F12" $klawisz_autoit = "{F12}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('90', $hDLL) Then $klawisz = "NUM LOCK" $klawisz_autoit = "{NUMLOCK}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('91', $hDLL) Then $klawisz = "SCROLL LOCK" $klawisz_autoit = "{SCROLLLOCK}" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf ;~ If $start = True And _IsPressed('A5', $hDLL) Then ;~ $klawisz = "Right MENU " ;~ $klawisz_autoit = "{RWIN}" ;~ GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) ;~ GUISetState(@SW_ENABLE) ;~ HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") ;~ $start = False ;~ EndIf If $start = True And _IsPressed('BA', $hDLL) Then $klawisz = ";" $klawisz_autoit = ";" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('BB', $hDLL) Then $klawisz = "=" $klawisz_autoit = "=" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('BC', $hDLL) Then $klawisz = "," $klawisz_autoit = "," GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('BD', $hDLL) Then $klawisz = "-" $klawisz_autoit = "-" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('BE', $hDLL) Then $klawisz = "." $klawisz_autoit = "." GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('BF', $hDLL) Then $klawisz = "/" $klawisz_autoit = "/" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('C0', $hDLL) Then $klawisz = "`" $klawisz_autoit = "`" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('DB', $hDLL) Then $klawisz = "[" $klawisz_autoit = "[" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('DC', $hDLL) Then $klawisz = "\" $klawisz_autoit = "\" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf If $start = True And _IsPressed('DD', $hDLL) Then $klawisz = "]" $klawisz_autoit = "]" GUICtrlSetData($button_hotkey, $klawisz_shift&$klawisz_ctrl&$klawisz_alt&$klawisz) GUISetState(@SW_ENABLE) HotKeySet ($klawisz_shift_autoit&$klawisz_ctrl_autoit&$klawisz_alt_autoit&$klawisz_autoit, "_beep") $start = False EndIf WEnd EndFunc Func _beep() Beep(500,200) EndFunc ;==>_quit just one thing i dont discover yet is how disable quit program by press ESC while $button_hotkey is already pressed