ChrisL Posted February 27, 2007 Share Posted February 27, 2007 In a guiGetMsg() loop how do you detect that a control is down? Normally you don't get a response until the button comes up (the mouse click is released) I want to know if the gui gives a respoce while the button is pressed please. [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
ChrisL Posted February 28, 2007 Author Share Posted February 28, 2007 TTT [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 28, 2007 Moderators Share Posted February 28, 2007 (edited) I believe you are going to have to make a custom option for this Chris... something with _IsPressed() + ControlGetFocus() + MouseGetPos() (or something relative to that) Edit: Looks like you could do it with GUIRegisterMsg() and: BN_PUSHED BN_UNPUSHED Edited March 1, 2007 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
ChrisL Posted March 1, 2007 Author Share Posted March 1, 2007 I believe you are going to have to make a custom option for this Chris... something with _IsPressed() + ControlGetFocus() + MouseGetPos() (or something relative to that)Edit:Looks like you could do it with GUIRegisterMsg() and:BN_PUSHEDBN_UNPUSHEDThanks Ron [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
ChrisL Posted March 1, 2007 Author Share Posted March 1, 2007 You know I think I just needed to sleep on it I have come up with this Func _isButtonDown($button,$Gui="") Local $cursor $cursor = GUIGetCursorInfo ($Gui) If IsArray($cursor) then If $cursor[2] = 1 and $cursor[4] = $button then Return 1 Else Return 0 EndIf EndIf EndFunc [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire 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