header

 

More links

AutoHotkey | Android | Arduino | COMM140Fractals | Grammar Checkers | Knots | A Million Dots Activity |  Processing | Processing for Scratch Users | Redbubble | Tutorials | Weather | World Time Meeting Planner | Favicon Generator.

Home > Tutorials > AutoHotkey

AutoHotkey

AutoHotkey

Local copy of version 1.1.13.00

Features

AutoHotkey is a free, open-source utility for Windows. With it, you can:

Getting started might be easier than you think. Check out the quick-start tutorial.

Example Code

; Displays a popup menu with 5 choices
; Each choice outputs text to the active window based on the menu choice.

; Creates a popup menu with 5 choices.

Menu, MyMenu, Add, Andrew, Andrew
Menu, MyMenu, Add, Anna, Anna
Menu, MyMenu, Add, Mark, Mark
Menu, MyMenu, Add, Tim, Tim

Menu, MyMenu, Add ; Add a separator line.
Menu, MyMenu, Add, Kind Regards, KindRegards

return

 

;Choice 1 "Andrew"

Andrew:
send Hi Andrew,{enter}{enter}
send {Space}{Space}{Space}can you please take this ticket thanks.{enter}{enter}
send Kind Regards,{enter}{enter}{enter}
send Rupert.{enter}
return

;Choice 2 "Annna"
Anna:
Send Hi Anna,{enter}{enter}
send {Space}{Space}{Space}can you please take this ticket thanks.{enter}{enter}
send Kind Regards,{enter}{enter}{enter}
send Rupert.{enter}
return

;Choice 3 "Mark"
Mark:
send Hi Mark,{enter}{enter}
send {Space}{Space}{Space}can you please take this ticket thanks.{enter}{enter}
send Kind Regards,{enter}{enter}{enter}
send Rupert.{enter}
return


;Choice 4 "Tim"
Tim:
send Hi Tim{enter}{enter}
send {Space}{Space}{Space}can you please take this ticket thanks.{enter}{enter}
send Kind Regards,{enter}{enter}{enter}
send Rupert.{enter}
return

;Choice 5 "Kind Regards"
KindRegards:
send Kind Regards,{enter}{enter}{enter}
send Rupert.{enter}
send

#y::Menu, MyMenu, Show ; Display the menu when you hold the Windows Key & press the y key.

 

; used to send a concatenate formula to Excel and to click the cells I require to build the formula

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

#c::
Send {=}concatenate(
Sleep 20
Click 255,222
Sleep 20
Click 255,222
Sleep 20
Send {,}
Sleep 20
Click 93,222
Sleep 20
Click 93,222
Sleep 20
Send )
Sleep 20
Send {enter}

 

 

web counter
web counter

APA citation:
Russell, R. (2016, July 04, 03:37 pm). Raspberry Pi & Auto Hot Key.
     Retrieved November 22, 2024, from http://www.rupert.id.au/tutorials/arduino/index.php

Last refreshed: November 22 2024. 12:21.41 am

rupert dot russell at acu dot edu dot au Support Wikipedia

Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.


1919 visits since September 15, 2013