Jump to content

Recommended Posts

Posted

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

Posted

#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

Posted

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

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