MsgBox "Hello, world!"
^1::WinMaximize "A"
#n::
{
if WinExist("ahk_class Notepad")
WinActivate ; Activate the window found above
else
Run "notepad" ; Open a new Notepad window
}
#m::Send "Hello, world{!}{Left}^+{Left}"
^3::{
SendText "Double quote ({PgDn})"
SendText 'Single quote (`')'
}
^4::Send '""{Left}'
^2::{
Loop 4300
{
Sleep 2000 ; for interval time
Send '{PgDn}' ; press pagedown key
}
; MsgBox "done!"
}
^6::ExitApp
^p::Pause
网友评论