Jump to content

Windows issues after running script


Recommended Posts

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

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 by TheXman
Link to comment
Share on other sites

You're welcome!  Have a G'day.  :thumbsup:

Edited by TheXman
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...