Autohotkey Tutorial; Simple Script

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
31,364
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by 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:

Education

Tags:

License:

Standard YouTube License

  • likes, 17 dislikes

Link to this comment:

Share to:

Uploader Comments (ckinrunproductions)

  • can you give me the userDefineLang.xml that has the syntax highlighting in it

  • It comes with the autohotkey program. Its in the extras folder of the default installation directory.

  • hey can you make me a script. That press automatic the enter button then 4 sec wait.

    and loop this for 50.

    ENTER > 5sec WAIT > ENTER > 5sec WAIT

    make a ahk file.. pm me mate^^

  • Loop, 50

    {

    SendInput, {enter}

    Sleep, 5000

    }

  • can i use this to runescape?

  • Yes. But it is against their ToS. so anything that happens to your account, I'm not responsible for.

Video Responses

see all

All Comments (32)

Sign In or Sign Up now to post a comment!
  • Hey can you help me a script that preesses automatically in 1 minute.

    "t/find 0 [enter]" after a minute it will automaticall run " t/find[enter]"

    autohotkey file plase. thanks in advance

  • Could you make me a script so my moust button 5 works as Ctrl?

  • Okay, so I just started playing Never Winter Nights again and I'm wondering if there is any way to change the hotkeys from f1-f12 to something different. I've looked all through the setting and there isn't anywhere to change them and I have a feeling this game would be a lot more fun and flow a lot better if i could change them. If anyone can explain how to write a script that would do this it would be really nice. Also, if anyone could suggest a program I could use to make it easier. thanks!!!

  • @l3g10nw wow thanks for replying dude!! you're a star

    but i'm a little confused, could you just send the ready set script to my youtube inbox because i know theres a limit on characters on the comments section, thanks again :D

  • @ElchinMendes

    ifWinActive World of Warcraft

    {

    $5::

    Loop { if not GetKeyState("5", "P") break Send 5 sleep 18 }

    return

    }

    ;copy & paste the same, and edit all number FIVE to the ones u want

  • Auto Keybot is better...

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more