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("{LSHIFT down}")
Send("{END}") ; select contents to ensure it is overwritten (can't use cntrl a for some reason)

Any help would be much appreciated!

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...