Minikori Posted October 22, 2008 Share Posted October 22, 2008 Hello, I have a GUI in which it I need to know if a button is right clicked on. GUIGetMsg() doesn't do anything like that, is there a way other than an _IsPressed() and then a MouseGetPos() or something? Thanks in advance. For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com Link to comment Share on other sites More sharing options...
Valuater Posted October 23, 2008 Share Posted October 23, 2008 Maybe... #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $GUI = GUICreate("My GUI") $button = GUICtrlCreateButton( 100, 100, 150, 30) GUISetState() While 1 $msg = GUIGetCursorInfo($GUI) If $msg[3] = 1 and $msg[4] = $button Then MsgBox(0x0,"OK","You right clicked on the button ") WEnd 8) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now