AutoHotKey Introduction

" Autohotkey is software for automatic of mouse or keyboard "
:: Click Enter (Keyboard)
Send, {ENTER}

:: Sleep

Sleep, 1000 ;1000 = 1 Sec.

:: Show Desktop

Send, #d
Send, {LWin Down}d{LWin Up}

:: Run Program

Run, notepad.exe

:: Wait windows have title is "Untitled - Notepad" about 3 seconds

WinWait, Untitled - Notepad, , 3

:: Win Activate have title is "Calculator".

WinActivate, Calculator

:: Shrinks the window to 1/2 screen on the left side for side by side viewing. (Windows 7 only)

Send, {LWin Down}{Left}{LWin Up}
Send, {LWin Down}{Right}{LWin Up}

:: Control Focus

ControlFocus, OK, Window Title ; Set focus to the OK button

:: Control Set Text

ControlSetText, Edit1, Data, Window Title

:: Install Program Auto

RunWait, 7z922.exe /S

Comments

Popular posts from this blog

การตั้งเวลาระหว่าง Server และ Client

วิธีตั้งค่า NTP บน Primary Domain Controller

เทคนิค Ghost XP ข้าม Spec