美文网首页
autohotkey

autohotkey

作者: Poisson_Lee | 来源:发表于2024-04-18 09:49 被阅读0次
    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
    

    相关文章

      网友评论

          本文标题:autohotkey

          本文链接:https://www.haomeiwen.com/subject/rogexjtx.html