Jump to content

MouseClick not working on windows7


 Share

Recommended Posts

I have scripts that worked on Windows XP no longer work on Windows7.

Scripts may work one time in 10.

I functions that seem be be effected include:

MouseClick

MouseClickDrag

MouseDown

_WinAPI_Mouse_Event

For example, the following code resizes a windows, by clicking and dragging the bottom corner :

Opt("MustDeclareVars",1)

dim $testTitle="some window title"
dim $winPos = WinGetPos($testTitle)
dim $newWidth = 710

MouseClickDrag ( "left",$winpos[0]+$winPos[2]-5,$winpos[1]+$winPos[3]-5, _
    $winpos[0]+$newWidth-5,$winpos[1]+$winPos[3]-5)

This works fine on my Win XP computer, but not on my Windows 7 computer. On the windows 7 computer you

see the mouse move, but no 'clicking' is taking place.

Is there some way I can work around this problem?

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...