tengwer Posted December 10, 2009 Share Posted December 10, 2009 I remember seeing a UDF called _HotkeySet which was pretty cool. I've looked all over and can see where it's been used in the forum but can't find where to download it. Could someone direct me? Is there one place I can go to find all the current UDFs and help file for them? Thanks for your help! Link to comment Share on other sites More sharing options...
KaFu Posted December 10, 2009 Share Posted December 10, 2009 Did you mean HotKey.au3 by Yashied? OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
tengwer Posted December 10, 2009 Author Share Posted December 10, 2009 No. If you do a search for _hotkeyset you'll see where this is used but I can't find where you can download it. Link to comment Share on other sites More sharing options...
KaFu Posted December 10, 2009 Share Posted December 10, 2009 Yeah, I see, but don't know which UDF that posts refer to... but for sure it can't do anything you can do with above mentioned UDF by Yashied! OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 10, 2009 Share Posted December 10, 2009 No. If you do a search for _hotkeyset you'll see where this is used but I can't find where you can download it. Exactly which _hotkeyset are you talking about? Link please. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
tengwer Posted December 11, 2009 Author Share Posted December 11, 2009 expandcollapse popup#include <Misc.au3> Global $Key1 = "2C" Global $Key2 = "11" Global $Key3 = "" $dll = DllOpen("user32.dll") While 1 If $Key1 <> "" AND $Key2 = "" AND $Key3 = "" Then If _IsPressed($Key1, $dll) Then $ButtonState = "Pressed" Pressed() EndIf EndIf If $Key1 <> "" AND $Key2 <> "" AND $Key3 = "" Then If _IsPressed($Key1, $dll) AND _IsPressed($Key2, $dll) Then $ButtonState = "Pressed" Pressed() EndIf EndIf If $Key1 <> "" AND $Key2 <> "" AND $Key3 <> "" Then If _IsPressed($Key1, $dll) AND _IsPressed($Key2, $dll) AND _IsPressed($Key3, $dll) Then $ButtonState = "Pressed" Pressed() EndIf EndIf WEnd Func Pressed() ;MsgBox(0,"","") Sleep(600) If $Key1 <> "" AND $Key2 = "" AND $Key3 = "" Then If _IsPressed($Key1, $dll) Then $ButtonState = "Held" EndIf EndIf If $Key1 <> "" AND $Key2 <> "" AND $Key3 = "" Then If _IsPressed($Key1, $dll) AND _IsPressed($Key2, $dll) Then $ButtonState = "Held" EndIf EndIf If $Key1 <> "" AND $Key2 <> "" AND $Key3 <> "" Then If _IsPressed($Key1, $dll) AND _IsPressed($Key2, $dll) AND _IsPressed($Key3, $dll) Then $ButtonState = "Held" EndIf EndIf If $ButtonState = "Pressed" Then MsgBox(0,"_IsPressed", "Pressed") If $ButtonState = "Held" Then MsgBox(0,"_IsPressed", "Held") EndFunc DllClose($dll)The UDF you mentioned may be the one I saw a while ago so thanks for the tip but since then I have created something that meets my needs even better. It is a script that can call a function based on wether a key or combination of keys is either pressed or pressed and held. The script is as follows. Let me know what you think. Link to comment Share on other sites More sharing options...
tengwer Posted December 11, 2009 Author Share Posted December 11, 2009 expandcollapse popup#include <Misc.au3> Global $Key1 = "2C" Global $Key2 = "11" Global $Key3 = "" $dll = DllOpen("user32.dll") While 1 If $Key1 <> "" AND $Key2 = "" AND $Key3 = "" Then If _IsPressed($Key1, $dll) Then $ButtonState = "Pressed" Pressed() EndIf EndIf If $Key1 <> "" AND $Key2 <> "" AND $Key3 = "" Then If _IsPressed($Key1, $dll) AND _IsPressed($Key2, $dll) Then $ButtonState = "Pressed" Pressed() EndIf EndIf If $Key1 <> "" AND $Key2 <> "" AND $Key3 <> "" Then If _IsPressed($Key1, $dll) AND _IsPressed($Key2, $dll) AND _IsPressed($Key3, $dll) Then $ButtonState = "Pressed" Pressed() EndIf EndIf WEnd Func Pressed() ;MsgBox(0,"","") Sleep(600) If $Key1 <> "" AND $Key2 = "" AND $Key3 = "" Then If _IsPressed($Key1, $dll) Then $ButtonState = "Held" EndIf EndIf If $Key1 <> "" AND $Key2 <> "" AND $Key3 = "" Then If _IsPressed($Key1, $dll) AND _IsPressed($Key2, $dll) Then $ButtonState = "Held" EndIf EndIf If $Key1 <> "" AND $Key2 <> "" AND $Key3 <> "" Then If _IsPressed($Key1, $dll) AND _IsPressed($Key2, $dll) AND _IsPressed($Key3, $dll) Then $ButtonState = "Held" EndIf EndIf If $ButtonState = "Pressed" Then MsgBox(0,"_IsPressed", "Pressed") If $ButtonState = "Held" Then MsgBox(0,"_IsPressed", "Held") EndFunc DllClose($dll)The UDF you mentioned may be the one I saw a while ago so thanks for the tip but since then I have created something that meets my needs even better. It is a script that can call a function based on wether a key or combination of keys is either pressed or pressed and held. The script is as follows. Let me know what you think. The two keys I set in the variables above are the ctrl and printscreen key. From 1 to 3 keys can be used as you can see. 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