Jump to content

I don't get how to set variables


 Share

Recommended Posts

I got this code from the IE.au3 text:

Func _IENavigate($o_object, $s_url, $f_wait = 1)
    If IsObj($o_object) Then
        $o_object.navigate ($s_url)
        If ($f_wait = 1) Then _IELoadWait($o_object)
        SetError(0)
        Return -1
    Else
        SetError(1)
        Return 0
    EndIf
EndFunc  ;==>_IENavigate

and i don't know understand how it works... i tryed reading the help file that came with the autoit but it doens't explain variables well enough for me to understand... So can someone please explain to me how to assign variables

like lets say i wanted to go to www.google.com... where would i enter that in to make the code work?? and do i need to enter anythign else in?

Edited by Mr.Sniper
Link to comment
Share on other sites

I got this code from the IE.au3 text:

Func _IENavigate($o_object, $s_url, $f_wait = 1)
    If IsObj($o_object) Then
        $o_object.navigate ($s_url)
        If ($f_wait = 1) Then _IELoadWait($o_object)
        SetError(0)
        Return -1
    Else
        SetError(1)
        Return 0
    EndIf
EndFunc ;==>_IENavigate

and i don't know understand how it works... i tryed reading the help file that came with the autoit but it doens't explain variables well enough for me to understand... So can someone please explain to me how to assign variables

like lets say i wanted to go to www.google.com... where would i enter that in to make the code work?? and do i need to enter anythign else in?

<{POST_SNAPBACK}>

Local $s_url = "http://www.google.com" right under the Fuction. As per the previous post, read the documentation for this particular function.
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...