Yashied Posted May 10, 2011 Share Posted May 10, 2011 (edited) LAST VERSION - 1.010-May-11This is a very small but useful UDF library for support native API HotKey controls. This library is written similary as other AutoIt GUI libraries. For more information, see detailed descriptions of all functions inside GuiHotKey.au3.If you need more capacity to work with hot keys, you can use >HotKey UDF and >HotKeyInput UDF libraries.Available functions_GUICtrlHotKey_Create_GUICtrlHotKey_Destroy_GUICtrlHotKey_GetHotKey_GUICtrlHotKey_GetKeys_GUICtrlHotKey_MakeKeyCode_GUICtrlHotKey_SetHotKey_GUICtrlHotKey_SetRulesHotKey UDF Library v1.0Previous downloads: 117HotKey.zipExample#include <GUIConstantsEx.au3> #include <GUIHotKey.au3> Global $HK, $VK $hForm = GUICreate("MyGUI", 300, 92) $hHotKey = _GUICtrlHotKey_Create($hForm, _GUICtrlHotKey_MakeKeyCode($HOTKEYF_ALT, $VK_F5), 20, 20, 260, 19) $Button = GUICtrlCreateButton('OK', 115, 54, 70, 23) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $Button $Code = _GUICtrlHotKey_GetHotKey($hHotKey) _GUICtrlHotKey_GetKeys($Code, $HK, $VK) MsgBox(64, "Info", "Hot key code:" & @TAB & "0x" & Hex($Code, 4) & @CR & "Key modifier flags:" & @TAB & "0x" & Hex($HK, 2) & @CR & "Virtual key code:" & @TAB & "0x" & Hex($VK, 2), 0, $hForm) EndSwitch WEnd Edited December 10, 2013 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Mat Posted May 10, 2011 Share Posted May 10, 2011 I did the same thing last year. I just got mine out to test though and there are a few bugs, so I'll probably be using yours from now on The one thing I did like about mine was that it autoit hotkey strings rather than virtual keys. Saves a lot of hassle. All I need to do is fix mine so that using letters means lower case letter output unless shift is pressed (like autoit does). AutoIt Project Listing Link to comment Share on other sites More sharing options...
monoscout999 Posted May 17, 2011 Share Posted May 17, 2011 Thanks this is very good i post this crapy array thing but yours is far far beyond better.. this will be usefull....@Off-Topic: I think the only problem with this forum is that it is very large and many things happen unnoticed Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted June 12, 2011 Share Posted June 12, 2011 (edited) Thanks Yashied for this UDF very nice There is one thing missing.. i cannot select the Pause Key and as far as i know this key isn't used a lot. Very useful as a hotkey. Cheers Emiel Edited June 12, 2011 by Emiel Wieldraaijer Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
Zedna Posted June 24, 2011 Share Posted June 24, 2011 Very nice! I hope this will become part of standard UDFs one day. Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search Link to comment Share on other sites More sharing options...
Mat Posted June 24, 2011 Share Posted June 24, 2011 Very nice! I hope this will become part of standard UDFs one day.+1I hope one day we have a complete collection of all the windows controls. I don't see any reason why not. AutoIt Project Listing Link to comment Share on other sites More sharing options...
Vulckain Posted December 23, 2012 Share Posted December 23, 2012 Hi Very nice UDF ! Thanks a lot ! It was really helpfull ! BTW, when I try to use it with the function "_IsPressed" it works with every HotKey like "A, B, C, F12, F5, etc..." but it doesn't work with CTRL + F2 or ALT + F1 If _IsPressed(Hex($Code, 4)) There is another way to do this? Thank ! Link to comment Share on other sites More sharing options...
Yashied Posted December 10, 2013 Author Share Posted December 10, 2013 Links updated.P.S.If you can't download my programs in other posts please change address:http://yashied.narod2.ru/tohttp://yashied.ru/ My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now