Sign in to follow this  
Followers 0
onedayillpay

gui quickie

6 posts in this topic

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

Share this post


Link to post
Share on other sites



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­Ê%¢º

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

i think im getting prity good with autoit... but this is my first attempt to script a gui

Edited by onedayillpay

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0