Sign in to follow this  
Followers 0
anyday

Quick Question's

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



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

[center]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.[/center]

Share this post


Link to post
Share on other sites

#2... yes

#include<IE.au3>

$ie = _IECreate(0)

sleep(1000)


$ie.visible = 1

sleep(2000)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by anyday

Share this post


Link to post
Share on other sites

pui this at the top of your script

Dim $impyrblt2

8)


NEWHeader1.png

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  
Followers 0