Jump to content
Sign in to follow this  
mkmcst

button help

Recommended Posts

mkmcst

hi i need some help

i cant seem to fig this out i need to toggle a button a pause button

i have a single button click it and it pause click it again and it unpause kinda like a toggle switch

i just need to know if autoit can do this ?

if so how the h@ll do i do this been trying all day driving me crazyyyyy lol

thanks guys n girls

mike

Share this post


Link to post
Share on other sites
somdcomputerguy

hi i need some help

i cant seem to fig this out i need to toggle a button a pause button

i have a single button click it and it pause click it again and it unpause kinda like a toggle switch

i just need to know if autoit can do this ?

if so how the h@ll do i do this been trying all day driving me crazyyyyy lol

thanks guys n girls

mike

I use a function like this. It's called with a HotKeySet setup, but it can probably be called another way.

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"', 10, 10, "X-LoremIpsum")
    WEnd
    ToolTip("")
EndFunc

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
mkmcst

I use a function like this. It's called with a HotKeySet setup, but it can probably be called another way.

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"', 10, 10, "X-LoremIpsum")
    WEnd
    ToolTip("")
EndFunc

thank you i'll work with that :D

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  

×