Loading...

Autohotkey Tutorial; Simple Script

49,834 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Uploaded on Sep 17, 2008

I show how to make a gui, with a button that opens a message box.

Script:
#Persistent ; This line will cause the script to run, unless exited by the user
#SingleInstance force ;Causes the script to only allow one instance at a time, but opening the file again will restart the program
Gui, Add, Button, Default, Default ; Adds a button to the gui, Gui, Add, Button, Options Width Hieght, Name
Gui, Show ;Shows the gui
Return ;Returns the script to an idle state

ButtonDefault: ;Response sub-routine to when the button, Default Is pressed
Msgbox, 0, Msgbox title, Message box message ;Displays a default system message box Syntax: Msgbox, Options (0 is only ok button), Msgbox Title, Msgbox Msg, Timeout(Optional)
Return ;Returns the script to an idle state

  • Category

  • License

    • Standard YouTube License

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...