Jump to content
Sign in to follow this  

convert script to function

Recommended Posts


Can someone help me converting this script i found to a function?

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GUIConstants.au3>
#include <IE.au3>
$GUI = GUICreate("Simple Web Browser", 800, 450)
$object = ObjCreate("Shell.Explorer.2")
$object_ctrl = GUICtrlCreateObj($object, 16, 10, 780, 400)
$url_button = GUICtrlCreateButton("URL", 16, 410, 750, 25, 0)
_IENavigate($object, "www.google.com")

While 1
    $msg = GUIGetMsg()
    Case $msg = $url_button
        $URL = "www.hotmail.com"
        _IENavigate($Object, $URL)

    Case $msg = $GUI_EVENT_CLOSE

Share this post

Link to post
Share on other sites

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.