Wingens

HotKeySet variable

11 posts in this topic

Hi,

I am using ini files wich can set different (variable)  key combinations in the script. i have a settings button wich opens a gui where the ini file can be editted and only the key that combines with the CTRL in the HotkeySet

But the problem i have is that the hotkeyset does nothing when i use the variable, when i hardcode a letter to the combination it does work.

What am i doing wrong.

$GUI = GUICreate("Hotkey", 207, 121, -1, -1)
$Combo = GUICtrlCreateCombo("", 16, 40, 161, 25, BitOR($CBS_DROPDOWNLIST, $WS_VSCROLL))
        If FileExists(@ScriptDir & "\INI\Namen\names.ini") Then
                $var = IniReadSection(@ScriptDir & "\INI\Namen\names.ini", "Names")
                    If @error <> 1 Then
                        GUICtrlSetData($COMBO, "")
                            For $x = 1 To $var[0][0]
                                    GUICtrlSetData($COMBO, $var[$x][0])
                            Next
                    EndIf
        EndIf
GUICtrlCreateLabel("Naam:", 16, 16)
$SETTINGS = GUICtrlCreateButton("Instellingen", 16, 72, 75, 25)

GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $SETTINGS
            SETTINGS()
        Case $GUI_EVENT_CLOSE
            Exit
        Case $COMBO
            SETHOTKEY()
    EndSwitch
WEnd

Func SETHOTKEY()

    $NAME       = GUICtrlRead($COMBO)
    $VARDEFAULT = IniRead(@Scriptdir & "\INI\Namen\" & $NAME & ".ini", "standaard", "Q", "")
        MsgBox(4096, "Test", $VARDEFAULT)
    HotKeySet("^" & $VARDEFAULT, "TIMESTAMP")
EndFunc
;====================================================================================================================================================================================

Func TIMESTAMP()
    $NAME   = GUICtrlRead($COMBO)
    $var    = IniRead(@ScriptDir & "\names.ini", "names", $NAME, "")
    ControlSend("", "", "", $var & " | " & @MDAY & "-" & @MON & "-" & @YEAR & "  |  " & @HOUR & ":" & @MIN & " | ", 0)
    Sleep(50)
EndFunc

 

Share this post


Link to post
Share on other sites



[STANDAARD] 
Q=Q

[BEHANDELING]
B=B

[GEBELD]
G=G

This is the ini file

Share this post


Link to post
Share on other sites

Right, the names file

names.ini

Share this post


Link to post
Share on other sites

Damn, your right i should use lower case only letter in the input variables.

 

thx :)

Share this post


Link to post
Share on other sites

One last question, i am trying to limit the input box to lowercase only with the code:

 

$DEFAULT = GUICtrlCreateInput("", 72, 40, 33, 21, $ES_LOWERCASE)

But now i can still type UPPERCASE characters in the input. Any idea's?

Share this post


Link to post
Share on other sites

nice thx :)

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

    • 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
    • Catalyst78
      By Catalyst78
      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  
    • rootx
      By rootx
      I would like that if you press the ENTER key is to simulate the pressure of a button in the GUI.
      I have no idea how to do it. THX
      $BTENTER = GUICtrlCreateButton("ENTER", 260, 160, 20, 25) EX. HotKeySet("{ENTER}",$BTENTER )  
    • TheOnlyOne
      By TheOnlyOne
      So currently I have some code waiting for a status to change(there is different indicators to check if this status has changed) 
      Func oneRow($count) $globaltimer = _Timer_SetTimer($gui, 60000*10, "reset") $errTimer = TimerInit() While (1)         If PixelGetColor(1117, 326) = 0xC6C6C6 Then ExitLoop (1)         Sleep(500)         MouseClick("right")         Sleep(600)         If PixelGetColor(1117, 326) = 0xC6C6C6 Then ExitLoop (1)         If TimerDiff($errTimer) > 5000 Then             If PixelGetColor(1100, 310) = 0x707070 Or PixelGetColor(901, 305) = 0xE0E0E0 Or PixelGetColor(1043, 383) = 0xC6C6C6 Then                 Sleep(100)                 Send("{esc}")                 Sleep(1000)             EndIf         EndIf     WEnd .... EndFunc   ;==>oneRow The two timers is for error checking. This works just fine the problem comes when I go into the while 1 loop, my hotkeys at the top of the program seems to stop working, for an example 
      HotKeySet("{f1}", "stop") Func stop() Exit EndFunc ;==>stop Does not work at all after the while loop. The globaltimer is never called even though i tried setting the delay all the way down to 3 seconds. So I thought that maybe one of the function I use is blocking so the timer would never be called/the hotkey wouldn't work? if i make an delay just before the while loop the hotkey works just fine. Oh and the errTimer is supossed to not reset after 5 seconds but should keep making the check it does if five seconds have passed