Jump to content
Sign in to follow this  
Douves

Checkbox

Recommended Posts

Douves

[TRANSLATOR]

Hello has all, it is still Me I made one GUI for my program,

but, I shall like that when we click the checkbox, when the program made a supplementary action(share)...

My code...

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Bot Familliers", 413, 298, 187, 123)
GUISetIcon("D:\005.ico")
$PageControl1 = GUICtrlCreateTab(8, 8, 396, 256)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)

$TabSheet1 = GUICtrlCreateTabItem("Chacha")
$Input3 = GUICtrlCreateInput("BY SPARKDAEMON", 291, 235, 105, 22)
$Button4 = GUICtrlCreateButton("Air", 16, 40, 81, 33, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button5 = GUICtrlCreateButton("Feu", 112, 40, 89, 33, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button6 = GUICtrlCreateButton("Eau", 216, 40, 89, 33, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button7 = GUICtrlCreateButton("Terre", 312, 40, 81, 33, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$TabSheet2 = GUICtrlCreateTabItem("Bwak")

$Input2 = GUICtrlCreateInput("BY SPARKDAEMON", 291, 235, 105, 22)
$Button4 = GUICtrlCreateButton("Air", 16, 40, 81, 33, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button5 = GUICtrlCreateButton("Feu", 112, 40, 89, 33, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button6 = GUICtrlCreateButton("Eau", 216, 40, 89, 33, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Button7 = GUICtrlCreateButton("Terre", 312, 40, 81, 33, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$TabSheet3 = GUICtrlCreateTabItem("Autres")

$Input1 = GUICtrlCreateInput("Sparkdaemon™", 291, 245, 150, 22)
$Button8 = GUICtrlCreateButton("Bworky", 312, 40, 81, 33, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 24, 64, 17, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
GUICtrlSetState(-1,$GUI_SHOW)
GUICtrlCreateTabItem("")

$Button1 = GUICtrlCreateButton("&OK", 166, 272, 75, 25, 0)
$Button2 = GUICtrlCreateButton("&Cancel", 246, 272, 75, 25, 0)
$Button3 = GUICtrlCreateButton("&Help", 328, 272, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        case $button8
            WinActivate("Dofus")
            winmove("Dofus", "", 0, 0)
            Mouseclick("left", 547, 497, 1, 10)
Sleep("2000")
            $bworky=PixelSearch(5, 51, 701, 493, "0xAD9C38")

            Mouseclick("left", $Bworky[0], $Bworky[1], 2, 10)
            Mouseclick("left", 662, 146, 1, 10)
sleep("2000")
            $cajou=PixelSearch(5, 51, 701, 493, "0xCF8D53")
            Mouseclickdrag("Left", $cajou[0], $cajou[1],541 , 215, 10)

    EndSwitch
WEnd
Edited by Douves

Share this post


Link to post
Share on other sites
Yashied

Share this post


Link to post
Share on other sites
Melba23

Douves,

Sans vouloir te chasser d'ici - sais-tu qu'il existe une site Autoit en francais ( http://www.autoit.fr/ )? Cela serait peut-etre plus facile pour toi. Mais rester ici si cela te convient mieux. :-)

Maintenant je vais regarder ton code.

M23

Trans: Just explaining that there is a French language AutoIt site if Douves preferred - but also that he/she was very welcome here too!


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Douves

ça me convien mieux de rester ici, car, sur le français, il n'y a jamais personne...

Share this post


Link to post
Share on other sites
Melba23

Douves,

Dans ce cas, bienvenu!

M23

Trans: Douves prefers to stay here (he says there is never anyone online in the French forum) - I wished him welcome.


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Douves

Thanks ^_^

Share this post


Link to post
Share on other sites
Yashied
Douves

No ^^ i search a function to add a action to my prog

Exemple, if the checkbox is activate, move the mouse to 0, 0 after the first action

And if she unactivate, don't check this action... ^^

Share this post


Link to post
Share on other sites
Yashied

No ^^ i search a function to add a action to my prog

Exemple, if the checkbox is activate, move the mouse to 0, 0 after the first action

And if she unactivate, don't check this action... ^^

Maybe this.

If GUICtrlRead($Checkbox2) = $GUI_CHECKED Then
    ...
Else
    ...
EndIf

Share this post


Link to post
Share on other sites
Douves

Thanks ^_^ i test tonight, i go to work ^^

Share this post


Link to post
Share on other sites
Yashied
Valuater

Maybe this.

If GUICtrlRead($Checkbox2) = $GUI_CHECKED Then
    ...
Else
    ...
EndIf

I was wondering why you didn't put that in your first post. You didn't really give him much except

Case $Checkbox2

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
Yashied

I was wondering why you didn't put that in your first post. You didn't really give him much except

Case $Checkbox2

8)

Hello has all, it is still Me I made one GUI for my program,

but, I shall like that when we click the checkbox, when the program made a supplementary action(share)...

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  

×