anyday Posted May 3, 2006 Share Posted May 3, 2006 1st. I have a pop up gui box that display's results of a webpage search. The question i have is there is not always going to be a value to some of the variables assigned to the createlable function. I need to know how to keep the script from crapin out on an error when the variable is empty. 2nd. is there a way once i set _IECreate(0) to assign a GUI Button to make the page visable again. The script gets all the data in the back ground and if the user wants to see the webpage make it where that page is visable again? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 3, 2006 Moderators Share Posted May 3, 2006 1st. I have a pop up gui box that display's results of a webpage search. The question i have is there is not always going to be a value to some of the variables assigned to the createlable function. I need to know how to keep the script from crapin out on an error when the variable is empty. 2nd. is there a way once i set _IECreate(0) to assign a GUI Button to make the page visable again. The script gets all the data in the back ground and if the user wants to see the webpage make it where that page is visable again?Well for your first question a simple If/Then statement would more than likely solve that. Most scripts I write, the bulk of the code is error handling. If $Var1 <> '' Then ;Do Something EndIf Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Valuater Posted May 3, 2006 Share Posted May 3, 2006 #2... yes #include<IE.au3> $ie = _IECreate(0) sleep(1000) $ie.visible = 1 sleep(2000) 8) Link to comment Share on other sites More sharing options...
Xenobiologist Posted May 3, 2006 Share Posted May 3, 2006 1st. I have a pop up gui box that display's results of a webpage search. The question i have is there is not always going to be a value to some of the variables assigned to the createlable function. I need to know how to keep the script from crapin out on an error when the variable is empty.2nd. is there a way once i set _IECreate(0) to assign a GUI Button to make the page visable again. The script gets all the data in the back ground and if the user wants to see the webpage make it where that page is visable again?HI,seems like me thoughts from the PM didn't work, hm :"> So long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
anyday Posted May 3, 2006 Author Share Posted May 3, 2006 (edited) mega, what you told me in pm worked great, im asking a different question. also i guess something like this would work I tried using If $impyrblt2 Then GUICtrlCreateLabel($impyrblt2, 472, 234, 48, 17) EndIf but i get the error $impyrblt2 used without being declared. Edit: ok i just declared all the var's at the begining with Dim and it works fine, thanks, Edited May 3, 2006 by anyday Link to comment Share on other sites More sharing options...
Valuater Posted May 3, 2006 Share Posted May 3, 2006 pui this at the top of your script Dim $impyrblt2 8) Link to comment Share on other sites More sharing options...
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