caram1992 Posted July 25, 2009 Share Posted July 25, 2009 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 More sharing options...
BrettF Posted July 25, 2009 Share Posted July 25, 2009 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 Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
caram1992 Posted July 25, 2009 Author Share Posted July 25, 2009 I thought, I just found an example of legal button, no more thought of when you click the button it opens internet link 1 Link to comment Share on other sites More sharing options...
BrettF Posted July 25, 2009 Share Posted July 25, 2009 ShellExecute Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Rarst Posted July 25, 2009 Share Posted July 25, 2009 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 AutoIt tag at Rarst.net Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now