hi all,
I've recently come across a few setbacks in my script while building my GUI, please excuse me if this is in the wrong forum, i think it could be in both, feel free to move
well let me get started
when I don't have any GUI code in my script begins off of f5, i have
func
func
func
they are all _IE funcs at this point _IE create then _IEtagname
i then have this at the bottom of my script
Func TogglePause()
$Paused = Not $Paused
While $Paused
Sleep(100)
ToolTip('Script is "Paused"', 0, 0)
WEnd
ToolTip("")
EndFunc ;==>
now this works fine and pauses perfects whenever i want to use it, but my problem is I've recently made sections of my script my own functions
so i've assigned these functions to start off buttons on the GUI.
So i have _IE create
_IEget tag name and all off that which works fine
and as my script allows users to navigate through a site it has more then one link. so i've made functions to acquire each link. and then for whatever purpose they want weather they want to search or goto
a home page there's a specific function for it, they just choose from GUI "start button"; search "start button"; homepage it's the only way i could think to do it without my script running everything at once
as im new to this.
sorry i dont have any code to show im on site with work computers.
so i have my GUI with the buttons, i click it and script runs reasonably fine, my problem is when i pause the script, it exits the hole thing, it doesn't take it back to the GUI or anything
now my only thinking behind this is it has to do with GUI_@show and when paused it's pausing the gui code as well to be shown which inturn just closes everything...
now im kind of at a loss as to what to do, im not sure if i can add togglepause func inside my other funcs so when called it just pauses the specific functions it's inside, i would have no idea how to do this...
'cause im also having problems, with GUI event close... I can close my script when script isnt running from GUI selection,but once ive chosen script and its running it wont close by the X button in the top right, and my only logic behind that is that it wont interupt the current function 'cause it's on a loop to repeat certain actions for the user
anyway there's a couple of questions, im mainly worried about the pause func if anyone cangive me some insight into a few things like with my functions that'd be great