Jump to content


Recommended Posts


Hello guys please how i can make Start / Stop in same Button

Share this post

Link to post
Share on other sites

Just do a : GUICtrlCreateButton("Start",x,y)

This is the answer to the question you asked, but my guess is this isn't what you really want. :)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
Live for the present,
Dream of the future,
Learn from the past.

Share this post

Link to post
Share on other sites
$gui = GUICreate("Start & Stop",150,250)
$btn1 = GUICtrlCreateButton("Start",60,100,50,25)
$btnExit = GUICtrlCreateButton("Exit",5,100,50,25)
$label = GUICtrlCreateLabel("",10,10,100,30)

While 1
   $Read = GUICtrlRead($btn1)
   $msg = GUIGetMsg()
   switch $msg
   Case $btnExit
   Case $btn1
      if $Read = "Start" Then
    ElseIf $Read = "Stop" Then
   Case -3

An example for your help bro...

Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once."

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


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.