Noobcube Posted June 22, 2008 Share Posted June 22, 2008 $Checkbox1 = GUICtrlCreateCheckbox("3", 48, 56, 97, 17) Controlsend("$a", "", "" ,"3") how do i link them? so if $Checkbox1 is tick when i press a Run button it will send controlsend("$........ and stuff? any help appreisiated Link to comment Share on other sites More sharing options...
ChrisL Posted June 22, 2008 Share Posted June 22, 2008 (edited) If BitAnd(GuiCtrlRead($Checkbox1),$GUI_CHECKED) then Controlsend("$a", "", "" ,"3") ;Whatever else you want to do Endif Edited June 22, 2008 by ChrisL [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...
Noobcube Posted June 22, 2008 Author Share Posted June 22, 2008 (edited) so just put that in my script ? or does that go somewhere else Edited June 22, 2008 by Noobcube Link to comment Share on other sites More sharing options...
ChrisL Posted June 22, 2008 Share Posted June 22, 2008 You put it in the part of the code relevant to clicking the Run button #include <GUIConstantsEx.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 286, 117, 193, 125) $Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 24, 24, 225, 17) $runButton = GUICtrlCreateButton("Run", 24, 56, 81, 41, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $runButton If BitAnd(GuiCtrlRead($Checkbox1),$GUI_CHECKED) then ;Controlsend("$a", "", "" ,"3") Msgbox(0,"Winner","The checkbox is ticked") ;Whatever else you want to do Endif EndSwitch WEnd [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...
Noobcube Posted June 22, 2008 Author Share Posted June 22, 2008 Thanks man that really helps ill just use that script and add the rest around it Thanks Link to comment Share on other sites More sharing options...
ChrisL Posted June 22, 2008 Share Posted June 22, 2008 Thanks manthat really helpsill just use that script and add the rest around it ThanksYour welcome.Just note I commented out the controlSend line in my example [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...
Noobcube Posted June 22, 2008 Author Share Posted June 22, 2008 i saw ill leave it like that till i got it all working ^^ 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