Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Kabir Ahmed: AutoHotkey

2,103 views

Published on

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

Kabir Ahmed: AutoHotkey

  1. 1. AutoHotkey and the way I use it Kabir Ahmed Quality Assurance Engineer SoftwarePeop!e | Peop!eGroup
  2. 2. What is AutoHotkey <ul><li>It’s a scripting tool. </li></ul><ul><li>Automate almost anything by sending keystrokes and mouse clicks. </li></ul><ul><li>Create hotkeys for keyboard, joystick, and mouse. </li></ul><ul><li>Create hotstring and expand abbreviations as you type them. </li></ul><ul><ul><li>i.e &quot;btw&quot; -> &quot;by the way&quot;. </li></ul></ul>
  3. 3. Detail Features <ul><li>GUI & Other Dialogs </li></ul><ul><li>Keyboard Control </li></ul><ul><li>Mouse Control </li></ul><ul><li>Sound Commands </li></ul><ul><li>Flow of Control </li></ul><ul><li>Functions </li></ul><ul><li>String Management </li></ul><ul><li>Math Commands </li></ul><ul><li>File, Directory, and Disk Management </li></ul><ul><li>Window Management </li></ul><ul><li>Registry Management </li></ul><ul><li>Process Management </li></ul>
  4. 4. I like this tool, because <ul><li>Its free. </li></ul><ul><li>It has a script recording tool </li></ul><ul><li>Script can be complied to independent EXE file. </li></ul><ul><li>Comprehensive help file with example. </li></ul>
  5. 5. General Uses
  6. 6. General uses - Hotkey <ul><ul><li>F1 : Launch Notepad </li></ul></ul><ul><ul><li>F9: Minimize active window to tray </li></ul></ul><ul><ul><li>F12 : Launch Team System </li></ul></ul><ul><ul><li>CTRL + L: Login to Gmail, Yahoo etc. </li></ul></ul><ul><ul><li>ALT+CTRL+F12: Shutdown system </li></ul></ul><ul><ul><li>Example: </li></ul></ul><ul><ul><li>^L:: </li></ul></ul><ul><ul><li>ControlGetText, OutputVar, Edit1, Internet Explorer </li></ul></ul><ul><ul><li>FoundPos := RegExMatch(OutputVar, &quot;(.*)dellshare(.*)&quot;) </li></ul></ul><ul><ul><li>if FoundPos > 0 { </li></ul></ul><ul><ul><li>Send, kabir </li></ul></ul><ul><ul><li>Send,{TAB} </li></ul></ul><ul><ul><li>Send,******* </li></ul></ul><ul><ul><li>Send,{TAB}{ENTER} </li></ul></ul><ul><ul><li>return </li></ul></ul><ul><ul><li>} </li></ul></ul>
  7. 7. General uses - HotString <ul><ul><li>ds : Kabir_Test_March31-08 05:30 pm </li></ul></ul><ul><ul><li>dt. : Enter current date with dot (.) Separator. (31.12.2008) </li></ul></ul><ul><ul><li>dt/ : Enter current date with slash (/) Separator. (31/12/2008) </li></ul></ul><ul><ul><li>dt- : Enter current date with dash (-) Separator. (31-12-2008) </li></ul></ul><ul><ul><li>str : step to reproduce </li></ul></ul>
  8. 8. Open VSTS Work item from VTB
  9. 9. Open VSTS Work item from VTB
  10. 10. Open VSTS Work item from VTB <ul><li>With a script of AutoHotkey, to open a work item, it only needs a </li></ul><ul><ul><li>Double Click </li></ul></ul><ul><li>What the script does </li></ul><ul><ul><li>Press CTRL+C to copy the selected ID </li></ul></ul><ul><ul><li>Find & activate the VSTS window </li></ul></ul><ul><ul><li>Press ALT+m to Drop the Team menu </li></ul></ul><ul><ul><li>Press G to bring up the Goto workitem window. </li></ul></ul><ul><ul><li>Paste the ID into ID field </li></ul></ul><ul><ul><li>Press Tab and enter the bring up the workitem </li></ul></ul>
  11. 11. CounterString
  12. 12. CounterString to validate Text field
  13. 13. CounterString – Script <ul><li>Modified the counterstring function of PerlClip in autohotkey script. </li></ul><ul><li>Search user forum to get regular expression based hotkey </li></ul>
  14. 14. Conclusion <ul><li>I found this tool is very good to </li></ul><ul><ul><li>create lightweight application </li></ul></ul><ul><ul><li>Automate tasks </li></ul></ul>
  15. 15. <ul><li>Thank You </li></ul>

×