autohotkey

2024-04-18  本文已影响0人  Poisson_Lee
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
上一篇 下一篇

猜你喜欢

热点阅读