Jump to content
Sign in to follow this  
Guest Fips

Report a Mouse Click

Recommended Posts

Guest Fips

Hi.

Im thing im blind :D

Cant find any Function about this....

How can i report a right or left mouse click ? :)

FipstheTuck@msn.com

Fips

Share this post


Link to post
Share on other sites

#include <GUIConstants.au3>

GUICreate("test", 400, 400)

GUISetState()

Do  
  $a = GUIGetCursorInfo()
   $msg = GUIGetMsg()
   If $a[2] = 1 Then
      msgbox(0,"","Left")
   EndIf
   If $a[3] = 1 Then
      msgbox(0,"","right")
   EndIf
Until $msg = $GUI_EVENT_CLOSE

One way...


qq

Share this post


Link to post
Share on other sites

Hi.

Im thing  im blind  :D

Cant find any Function about this....

How can i report a right or left mouse click ?  :)

FipstheTuck@msn.com

Fips

<{POST_SNAPBACK}>

I is new since 3.1.0 that's event can be handled for window created by AutoIt (GUI functions), but there is no such mechanism for others.

You can still know the mouse position with MouseGetPos but that's all :D

Share this post


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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...