fielmann Posted July 15, 2010 Posted July 15, 2010 Hello, HotKeySet("+{F11}", "stamp") While 1 sleep(500) wend Func stamp() Send(@MDAY & "." & @MON & "." & @YEAR & "{TAB}" & 'my text') EndFunc start the upper autoit-script open e.g. notepad.exe press the Hotkey [shift]+[F11] you can see the timestamp now try to type anything else in notepad: [shift] is still pressed! the problem appears always after using the Hotkey-function any ideas? mayby a bug?
BitByteBit Posted July 15, 2010 Posted July 15, 2010 (edited) There, I fixed it. #include<misc.au3> HotKeySet("+{F11}", "stamp") While 1 Sleep(500) WEnd Func stamp() While _IsPressed("10") ;Wait until shift is release before sending anything... Sleep(10) WEnd Send(@MDAY & "." & @MON & "." & @YEAR & "{TAB}" & 'my text') EndFunc ;==>stamp Edited July 15, 2010 by BitByteBit
fielmann Posted July 15, 2010 Author Posted July 15, 2010 thanks for your reply and workaround seemed to be a bug we should send to John Bennett While _IsPressed("10") ;Wait until shift is release before sending anything... What is the meaning of "10"? I have the same problem with [CTRL] How to workaround HotKeySet("^{F11}", "stamp2")?
BitByteBit Posted July 15, 2010 Posted July 15, 2010 10 a hexadecimal value that represents shift, for a full list look in the help file for _IsPressed (press F1 when the cursor is by _IsPressed). The hexadecimal representation of Ctrl is 11.
fielmann Posted July 15, 2010 Author Posted July 15, 2010 thx again 4 reply perfect! now it works completely under your workaround-conditions I just created a bug-Ticket #1716 I hope it will be fixed soon...
KaFu Posted July 15, 2010 Posted July 15, 2010 This one is so old, it is even mentioned in the Wiki FAQ ... 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 (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
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