mkmcst Posted June 26, 2009 Posted June 26, 2009 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 ^SLEEPY^sleepys-sin scripting
somdcomputerguy Posted June 26, 2009 Posted June 26, 2009 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.
mkmcst Posted June 26, 2009 Author Posted June 26, 2009 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 ^SLEEPY^sleepys-sin scripting
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