DaSInC Posted June 12, 2020 Share Posted June 12, 2020 G'day all, this issue has driven me crazy. I have developed an anger I never knew I had! So, I have just stated with this program, and was travelling along OK. Got it doing what I wanted. But now, for some reason whenever I run the following code, it works, but after execution has completed my mouse/keyboard is behaving weirdly. For example, Caps Lock is reversed. Wherever I click it is like I have held shift down and it selects multiple things. Within the editor, if I try to CTRL-Z something, I get "sub" displayed. Crazy stuff. Bear in mind, this code runs fine, does what I want and returns an execution code of 0. Here is the offending code.....everything is fine, unless I run this code as well. Func ReportSearch($report) Send("^!r") ; bring up reports search Local $r = WinWait("Reports","",$waitTime) ;get window control for reports ControlClick($r,"","Reports Search") Send("{HOME}") Send("{LSHIFT down}") Send("{END}") ; select contents to ensure it is overwritten (can't use cntrl a for some reason) Send($report) EndFunc Any help would be much appreciated! Link to comment Share on other sites More sharing options...
TheXman Posted June 12, 2020 Share Posted June 12, 2020 (edited) 42 minutes ago, DaSInC said: Any help would be much appreciated! Maybe this will help: https://www.autoitscript.com/wiki/FAQ#Why_does_the_Ctrl_key_get_stuck_down_after_I_run_my_script.3F Edited June 12, 2020 by TheXman DaSInC 1 CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
DaSInC Posted June 12, 2020 Author Share Posted June 12, 2020 5 minutes ago, TheXman said: Maybe you can start here: https://www.autoitscript.com/wiki/FAQ#Why_does_the_Ctrl_key_get_stuck_down_after_I_run_my_script.3F Dude - THANK YOU! It was so simple, when you know what to look for! Mate, it is 2:00am here and I can finally go to bed! Legend. argumentum 1 Link to comment Share on other sites More sharing options...
TheXman Posted June 12, 2020 Share Posted June 12, 2020 (edited) You're welcome! Have a G'day. Edited June 12, 2020 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman 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