Jump to content

Quick Question's


Recommended Posts

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

  • Moderators

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

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

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...