AasimPathan Posted November 27, 2020 Share Posted November 27, 2020 (edited) Hi, We have a AutoIt shortcut script with the CTRL+ALT+SHIFT Key as the hotkey with multiple shortcuts e.g. CTRL+ALT+SHIFT+r launches on of our programs. We have an issue where even though Sticky Keys is disabled in windows the CTRL+ALT+SHIFT are still being "stuck" or acting as if Sticky Key is enabled, I need to know if someone is facing similar problem and ways to avoid it because right now our users are facing problems typing anything after using a shortcut as the CTRL+ALT+SHIFT key is locked. Oh another note, we are using ConnectWise ScreenConnect for remoting in to the Windows 10 machine, Sticky Keys are disabled on both my local machine and the remote one where the shortcuts run. I can see the keys are being held down using on-screen Keyboard and to unstick them we have to press the same combination for a second time. Also this only happens when the AutoIt script is running, if its not running no matter how many times I press CTRL+ALT+SHIFT+r the keyboard doesn't get stuck/ held down. Remote Keyboard Local and Remote Keyboard Sticky Keys disabled Edited November 27, 2020 by AasimPathan Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 27, 2020 Moderators Share Posted November 27, 2020 Moved to the appropriate forum. Moderation Team Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 27, 2020 Moderators Share Posted November 27, 2020 AasimPathan, Take a look here: https://www.autoitscript.com/wiki/FAQ#Why_does_the_Ctrl_key_get_stuck_down_after_I_run_my_script.3F M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
AasimPathan Posted November 27, 2020 Author Share Posted November 27, 2020 (edited) Hi that kind of helps but I need to send things in RAW format cause one of of my shortcuts has a text to send which includes # so if use _SendEx("#[This is a test message]",1) it doesn't send the #, which is kind of important to us. Also, the below didn't help with getting the keys unstuck unless I am using it wrong ControlSend("", "", "", "text", 0) Edited November 27, 2020 by AasimPathan Link to comment Share on other sites More sharing options...
Nine Posted November 27, 2020 Share Posted November 27, 2020 Here how I solved the same issue as you are facing : HotKeySet("!^+{F1}", "Help") Func Help() CheckSpecialKey () ; rest of the code here EndFunc Func CheckSpecialKey () ShowText ("KEY must be released") While _IsPressed ("10") Or _IsPressed ("11") Or _IsPressed ("12") Sleep (50) WEnd EndFunc “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
pixelsearch Posted November 27, 2020 Share Posted November 27, 2020 2 hours ago, AasimPathan said: I need to send things in RAW format Hi AasimPathan, A little modification in the _SendEx() function should do it. Here is an example : #include <AutoItConstants.au3> #include <Misc.au3> #include <MsgBoxConstants.au3> _SendExFlag("#[This is a test message]", "", $SEND_RAW) Func _SendExFlag($ss, $warn = "", $iFlag = 0) ; <========== Local $iT = TimerInit() While _IsPressed("10") Or _IsPressed("11") Or _IsPressed("12") If $warn <> "" And TimerDiff($iT) > 1000 Then MsgBox($MB_TOPMOST, "Warning", $warn) EndIf Sleep(50) WEnd Send($ss, $iFlag) ; <========== EndFunc;==>_SendExFlag Link to comment Share on other sites More sharing options...
AasimPathan Posted December 1, 2020 Author Share Posted December 1, 2020 Thank you this did the trick, works flawlessly. On 11/27/2020 at 6:43 PM, pixelsearch said: Hi AasimPathan, A little modification in the _SendEx() function should do it. Here is an example : #include <AutoItConstants.au3> #include <Misc.au3> #include <MsgBoxConstants.au3> _SendExFlag("#[This is a test message]", "", $SEND_RAW) Func _SendExFlag($ss, $warn = "", $iFlag = 0) ; <========== Local $iT = TimerInit() While _IsPressed("10") Or _IsPressed("11") Or _IsPressed("12") If $warn <> "" And TimerDiff($iT) > 1000 Then MsgBox($MB_TOPMOST, "Warning", $warn) EndIf Sleep(50) WEnd Send($ss, $iFlag) ; <========== EndFunc;==>_SendExFlag 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