Sign in to follow this  
Followers 0
caram1992

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

5 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

I thought, I just found an example of legal button, no more thought of when you click the button it opens internet link 1

Share this post


Link to post
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

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