Opened 14 years ago

Closed 14 years ago

#1474 closed Bug (Works For Me)

mouseClick not working on windows 7

Reported by: gregfamilton@… Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


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:

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

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

MouseClickDrag ( "left",$winpos[0]+$winPos[2]-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?

Attachments (0)

Change History (4)

comment:1 follow-up: Changed 14 years ago by Jon

Just tested this on Windows 7 Ultimate and MouseClickDrag appears to work correctly.

comment:2 in reply to: ↑ 1 Changed 14 years ago by anonymous

Replying to Jon:

Just tested this on Windows 7 Ultimate and MouseClickDrag appears to work correctly.

I've fixed the problem...
This may also be the result of a problem that first appeared in Vista.

Before you try it again, go to Control Panel >> Mouse. Click the Pointers tab, set the scheme from Windows Aero to None and see if that helps. You can always change it back later.

Is it possible to add these notes to thehelp file?

comment:3 Changed 14 years ago by GEOSoft

This is a well documented Windows issue and I explained it to the poster in my last reply in this thread
It's played havoc with things besides AutoIt scripts and it first started to appear in Vista, although I've noticed it appears to be particularily bad in Win 7.

Whether or not it neds to be documented is up to the developers but I'm sure that there are other functions that will suffer from the same bug and those will be any functions that use mouse coordinates so you might need to add a page about it.

BTW the apparent "bug" is only when the Aero them is enabled for the mouse pointers. The shadowing makes the mouse appear to be in a location other than its true position.

comment:4 Changed 14 years ago by Jon

  • Resolution set to Works For Me
  • Status changed from new to closed

Closing as a Works for Me.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.