Quote:
Originally Posted by elmarcia
You mean this ?
Code:
GUICreate("Test",200,200)
$button=GUICtrlCreateButton("WTF",50,50,100,100)
GUISetState()
$link = "www.google.com.ar"
While 1
$msg = GUIGetMsg()
Switch ($msg)
case -3
Exit 0
case $button
ShellExecute($link)
EndSwitch
WEnd
Learn english first or use a better translator :$ // yo soy espaņol tambien :P
|
This is better :
I think this will work :
Code:
ShellExecute ( "Link" )
Make sure you type the Http 2 I mean the hole link!
So if you want to open elitepvpers, :
Code:
ShellExecute ( "http://www.elitepvpers.com" )
Example :
Code:
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.10.2
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Example", 275, 133, 189, 124)
$Button1 = GUICtrlCreateButton("Elitepvpers", 8, 8, 257, 121)
GUICtrlSetFont(-1, 12, 400, 0, "Gill Sans Ultra Bold")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
ShellExecute("http://www.elitepvpers.com")
EndSwitch
WEnd