Kabir Ahmed: AutoHotkey

15
AutoHotkey AutoHotkey and the way I use it Kabir Ahmed Quality Assurance Engineer SoftwarePeop!e | Peop! eGroup

description

 

Transcript of Kabir Ahmed: AutoHotkey

Page 1: Kabir Ahmed: AutoHotkey

AutoHotkeyAutoHotkeyand the way I use it

Kabir AhmedQuality Assurance EngineerSoftwarePeop!e | Peop!eGroup

Page 2: Kabir Ahmed: AutoHotkey

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".

Page 3: Kabir Ahmed: AutoHotkey

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

Page 4: Kabir Ahmed: AutoHotkey

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.

Page 5: Kabir Ahmed: AutoHotkey

General UsesGeneral Uses

Page 6: Kabir Ahmed: AutoHotkey

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

}

Page 7: Kabir Ahmed: AutoHotkey

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

Page 8: Kabir Ahmed: AutoHotkey

Open VSTS Work item from Open VSTS Work item from VTBVTB

Page 9: Kabir Ahmed: AutoHotkey

Open VSTS Work item from Open VSTS Work item from VTBVTB

Page 10: Kabir Ahmed: AutoHotkey

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

Page 11: Kabir Ahmed: AutoHotkey

CounterStringCounterString

Page 12: Kabir Ahmed: AutoHotkey

CounterString to validate Text CounterString to validate Text fieldfield

Page 13: Kabir Ahmed: AutoHotkey

CounterString – Script CounterString – Script Modified the counterstring

function of PerlClip in autohotkey script.

Search user forum to get regular expression based hotkey

Page 14: Kabir Ahmed: AutoHotkey

ConclusionConclusion

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

Page 15: Kabir Ahmed: AutoHotkey

Thank YouThank You