Kabir Ahmed: AutoHotkey

Post on 20-Nov-2014

2,008 views 2 download

Tags:

description

 

transcript

AutoHotkeyAutoHotkeyand the way I use it

Kabir AhmedQuality Assurance EngineerSoftwarePeop!e | Peop!eGroup

What is AutoHotkeyWhat is AutoHotkey

It’s a scripting tool.Automate almost anything by

sending keystrokes and mouse clicks.

Create hotkeys for keyboard, joystick, and mouse.

Create hotstring and expand abbreviations as you type them. ◦i.e "btw" -> "by the way".

Detail FeaturesDetail Features GUI & Other Dialogs Keyboard Control Mouse Control Sound Commands

Flow of Control Functions String Management Math Commands

File, Directory, and Disk Management Window Management Registry Management Process Management

I like this tool, becauseI like this tool, becauseIts free.It has a script recording toolScript can be complied to

independent EXE file. Comprehensive help file with

example.

General UsesGeneral Uses

General uses - HotkeyGeneral uses - Hotkey◦ F1 : Launch Notepad

◦ F9: Minimize active window to tray

◦ F12 : Launch Team System

◦ CTRL + L: Login to Gmail, Yahoo etc.

◦ ALT+CTRL+F12: Shutdown system

Example:^L::

ControlGetText, OutputVar, Edit1, Internet Explorer

FoundPos := RegExMatch(OutputVar, "(.*)dellshare(.*)")

if FoundPos > 0 {

Send, kabir

Send,{TAB}

Send,*******

Send,{TAB}{ENTER}

return

}

General uses - HotStringGeneral uses - HotString◦ \ds : Kabir_Test_March31-08 05:30 pm◦ \dt. : Enter current date with dot (.) Separator.

(31.12.2008)◦ \dt/ : Enter current date with slash (/) Separator.

(31/12/2008)◦ \dt- : Enter current date with dash (-) Separator. (31-12-

2008)◦ \str : step to reproduce

Open VSTS Work item from Open VSTS Work item from VTBVTB

Open VSTS Work item from Open VSTS Work item from VTBVTB

Open VSTS Work item from Open VSTS Work item from VTBVTBWith a script of AutoHotkey, to

open a work item, it only needs a

◦Double Click

What the script does Press CTRL+C to copy the selected ID Find & activate the VSTS window Press ALT+m to Drop the Team menu Press G to bring up the Goto workitem window. Paste the ID into ID field Press Tab and enter the bring up the workitem

CounterStringCounterString

CounterString to validate Text CounterString to validate Text fieldfield

CounterString – Script CounterString – Script Modified the counterstring

function of PerlClip in autohotkey script.

Search user forum to get regular expression based hotkey

ConclusionConclusion

I found this tool is very good to◦create lightweight application◦Automate tasks

Thank YouThank You