for example, I want a button like this:
Code: Select all
Gui, Add, Button, x5 y50 w200 h20 ,Example
Code: Select all
Gui, Add, Button, x5 y50 w200 h20 ,Example
Code: Select all
#SingleInstance, Force
Gui, Margin, 5, 5
Gui, Add, Button, x5 y50 w200 h20 gButton1, Example
Gui, Show, AutoSize, Example
return
Button1:
Run, http://www.google.com/
return
Code: Select all
Gui, Add, Button, x5 y50 w200 h20 gRun, Example ; gRun tells the button to run the subroutine "Run" when it is pressed
Gui, Show ; Shows the GUI button
return ; Stops the script from running the webpage before the button is pressed
Run: ; Specifies the start of your subroutine
Run, https://www.google.com ; Opens google.com in your default web browser
Users browsing this forum: No registered users and 351 guests