Jump to content

Someone help me .. Command easy for you ...


Recommended Posts

Hello everyone, I am new to Autoit, but I'm starting to like this kind of programming language

Finally

I'm trying to create a button that when clicked, it opens my site.

However I do not know what command to use, I know just the button, plus the other I do not know, because in Autoitv3Help not example is, then it is way harder for me.

I think it is not as difficult this command, if someone has , I thank you for posting

Link to comment
Share on other sites

Welcome.

Check the help file for GUIGetMsg or GUI OnEvent. I imagine you are creating a GUI and have that already... If not check out KODA with the full install of SciTE (link in my sig).

If you find you still need help, please post attempts. Also remember to search the forums :)

Cheers,

Brett

Link to comment
Share on other sites

Example for opening in system default browser. If you need to open in browser of choice that would be more tricky.

#include <GUIConstantsEx.au3>

$url="http://www.rarst.net/tag/autoit/"
$gui=GUICreate("Button example",200,50)
$button=GUICtrlCreateButton($url,0,0,200,50)

GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $button
            ShellExecute($url)
            
        Case $msg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd
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...