fielmann 0 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? Share this post Link to post Share on other sites
BitByteBit 1 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 Share this post Link to post Share on other sites
fielmann 0 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")? Share this post Link to post Share on other sites
BitByteBit 1 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. Share this post Link to post Share on other sites
fielmann 0 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... Share this post Link to post Share on other sites
KaFu 295 Posted July 15, 2010 This one is so old, it is even mentioned in the Wiki FAQ ... OS: Win10-1909 - 64bit - German, AutoIt Version: 3.3.14.5, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2019-Dec-21) BIC - Batch-Image-Cropper (2019-Dec-11) COP - Color Picker (2009-May-21) 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 (2019-Dec-07) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Share this post Link to post Share on other sites