onedayillpay Posted February 13, 2007 Share Posted February 13, 2007 i hope you will understand me... want i need to do is, case $Button_1 is pressed then case $Checkbox_2 is checked then msgbox(0,"tittle",text") #region --- GuiBuilder code Start --- ; Script generated by AutoBuilder 0.6 Prototype #include <GuiConstants.au3> GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $Button_1 = GuiCtrlCreateButton("Button1", 110, 10, 90, 40) $Checkbox_2 = GuiCtrlCreateCheckbox("Checkbox2", 150, 70, 20, 20) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;; EndSelect WEnd Exit #endregion --- GuiBuilder generated code End --- lol Link to comment Share on other sites More sharing options...
Josbe Posted February 13, 2007 Share Posted February 13, 2007 i hope you will understand me... want i need to do is, case $Button_1 is pressed then case $Checkbox_2 is checked then msgbox(0,"tittle",text") #region --- GuiBuilder code Start --- ; Script generated by AutoBuilder 0.6 Prototype #include <GuiConstants.au3> GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $Button_1 = GuiCtrlCreateButton("Button1", 110, 10, 90, 40) $Checkbox_2 = GuiCtrlCreateCheckbox("Checkbox2", 150, 70, 20, 20) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;; EndSelect WEnd Exit #endregion --- GuiBuilder generated code End --- oÝ÷ ÚZ%þ«¨µà,²ç!Ê°®^¶¥¢ËÞ¯+")ZÊ%¢º AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
onedayillpay Posted February 13, 2007 Author Share Posted February 13, 2007 (edited) i think im getting prity good with autoit... but this is my first attempt to script a gui Edited February 13, 2007 by onedayillpay Link to comment Share on other sites More sharing options...
onedayillpay Posted February 13, 2007 Author Share Posted February 13, 2007 im srry i get this syntax error Case $msg = $button_play And GUICtrlRead($button_play) = $gui_checked Then $gui_checked do i have to #include a file to use this Link to comment Share on other sites More sharing options...
Zedna Posted February 13, 2007 Share Posted February 13, 2007 Case $msg = $Button_1 If GUICtrlRead($Checkbox_2) = $GUI_CHECKED Then Msgbox(0,"tittle","text") EndIf Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Josbe Posted February 13, 2007 Share Posted February 13, 2007 im srry i get this syntax error Case $msg = $button_play And GUICtrlRead($button_play) = $gui_checked Then $gui_checked do i have to #include a file to use this#include <GUIConstants.au3> Try using the Zedna's suggestion too. It's better. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta 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