waardd Posted February 16, 2012 Posted February 16, 2012 I defined several hotkeys sh+F1 - sh+F9 and Ctrl+F1 but there is a problem with it. About 4 out of 10 times the Shift or Ctrl seems to stay pressed after executing the hotkey. This is not a HW problem since its on more then 5 keyboard. After i press shift or Ctrl again the key stays so to say up. Who cab help me with this? In the example $F9 is Exit. The hotkeys are programmed to function in Putty Hotkey: HotKeySet("+{F9}", "_F9") Fuction: Func _F9() $state = WinGetState("[CLASS:PuTTY]", "") If BitAnd($state, 8) Then Send($F9 & "{ENTER}") EndIf EndFunc
KaFu Posted February 16, 2012 Posted February 16, 2012 Give this a try:http://www.autoitscript.com/wiki/FAQ#Why_does_the_Ctrl_key_get_stuck_down_after_I_run_my_script.3F OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
waardd Posted February 16, 2012 Author Posted February 16, 2012 Tnx KaFu. The functions seems to have solved my problem.
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