Sign in to follow this  
Followers 0
l3ill

HotKeySet in Help File is Broke?

10 posts in this topic

Hi,

  been searching for a way to Pause a HotKeySet and it would seem that the Help File has one beautifully prepared.

But it turns out that Pause does not stop the HotKeySet from working.

  Anyone know why? And/Or how to fix it?

Thanks,

Bill

Share this post


Link to post
Share on other sites



The example script doesn't pause the HotKeySet but the script itself by executing a Sleep statement until the Pause key is pressed again.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

What do you mean by "pause a hotkeyset"? The example in the Help file is showing how to pause a script using the Pause button in a hotkeyset statement, and it pauses the script as written.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Yo,   Thats sort of what I said....

Any way to actually pause a HKS (cause the script not to react to input) ?

 

What do you mean by "pause a hotkeyset"? The example in the Help file is showing how to pause a script using the Pause button in a hotkeyset statement, and it pauses the script as written.

 If you Pause the script you can still use the scripts functions. Not really a pause IMO

Edited by billo

Share this post


Link to post
Share on other sites

billo,

Are you talking about the example script for HotKeySet itself? :huh:

If so, then the TogglePause function is not designed to "pause" the other HotKeys (obviously the HotKey to toggle the pause must remain active. If you wanted to prevent the Shift-Alt-d HotKey from working when the script was paused then you need to set/unset the HotKey like this: :)

#include <MsgBoxConstants.au3>

; Press Esc to terminate script, Pause/Break to "pause"

Global $fPaused = False

HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d

While 1
    Sleep(100)
WEnd

Func TogglePause()
    $fPaused = Not $fPaused
    If $fPaused Then
        HotKeySet("+!d") ; Unset HotKey <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    Else
        HotKeySet("+!d", "ShowMessage") ; Set HotKey <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    EndIf
    While $fPaused
        Sleep(100)
        ToolTip('Script is "Paused"', 0, 0)
    WEnd
    ToolTip("")
EndFunc   ;==>TogglePause

Func Terminate()
    Exit
EndFunc   ;==>Terminate

Func ShowMessage()
    MsgBox($MB_SYSTEMMODAL, "", "This is a message.")
EndFunc   ;==>ShowMessage
M23

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Please explain, in detail, what you want to do. Because right now, I'm still not understanding what pause a hotkeyset means in your thoughts, because it makes no sense in mine.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

li'l help ? :-)  could not find on the fly

ERROR: can't open include file <MsgBoxConstants.au3

A download link would be sweet

 

Nevermind...it works without it.

Thanks Melba !!!

Edited by billo

Share this post


Link to post
Share on other sites

 

Please explain, in detail, what you want to do. Because right now, I'm still not understanding what pause a hotkeyset means in your thoughts, because it makes no sense in mine.

If you test the HKS from the helpfile there are three functions:

TogglePause, Exit and Pop up message

Normally it should be assumable that pausing would cause the script itself to stop receiving commands or FUNCtioning.

But if you push <pause> the popup function still works.

Share this post


Link to post
Share on other sites

MsgBoxConstants.au3 is only the AutoIt beta and not the stable. We decided it would be best to place MsgBox() constants from Constants.au3 to a new include file. Though it's still included in Constants.au3 for backwards compatibility.


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

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
Sign in to follow this  
Followers 0

  • Similar Content

    • 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?
    • LOWLIFE
      By LOWLIFE
      This is a personal project to log into several facebook accounts and send a message to a specific person on their birthday. I need to stop a script in a few different ways for several different reasons. For example, it might start sending the email to the wrong account, it might do something other than send a message, it might fail to logout of one account, etc. 
      1) Pause the script at it's exact location with a resume feature in case I need to put it on hold while I do another task. 
      2) Pause the script at it's current location with the option to start over or execute another part of the script (example in GUI with multiple buttons). 
      Also, is there a way to interact with menus? If I log into facebook how can I force it to go straight to sending a message to the proper person? I tried automating a mouseclick but the window opens in different places. I also tried searching for specific text and I couldn't get any information from the windows info tool on the facebook page. 
      Also, how do I get my code in here to show like it does in my editor? (scite)
      Thanks for looking at it, and any help/suggestions I sgreatly appreciated!
      <snip>
    • 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"?
       
    • Ian_Mac
      By Ian_Mac
      Okey guys , here's the thing, My script is running fine, but when it's already running i cant   turn it off or pause by clicking the on/off button  unless i manually close it on my taskbar. What i wanted to happen is "if i click the ($switch = turn On and Off Button) to Off the script will STOP Running but not closing the entire GUI because i tried to use Exit and ExitLoop but it closes the entire GUI. and i don't want that to happen.  
      BTW. I'm new in AutoIT and practice scripting hope somebody could help me  Godbless. feel free to view my script
      Practice.au3
    • 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