Results 1 to 2 of 2

Thread: AHK .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Banned
    Join Date: Aug:2008
    Location:
    Posts: 5,960

    AHK .

    - . , . autohotkey, , . , .

    ctrl+ 1-9. - .

    .

    Code:
      Code: Select all - Expand View - Toggle Line numbers
    
    #singleinstance force
    
    
    
    menu, email, add, address1, paste
    
    menu, email, add, address2, paste
    
    menu, email, add, address3, paste
    
    return
    
    
    
    ^m::
    
    menu, email, show
    
    return
    
    
    
    paste:
    
    ; clipboard = %A_ThisMenuItem% ; uncomment this if you prefer to manually paste from clipboard 
    
    send, %A_ThisMenuItem%
    
    return
    - - - - - -

    , , - AHK , . ?

    Code:
    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
    ; #Warn  ; Enable warnings to assist with detecting common errors.
    SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
    SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
    
    #singleinstance force
    
    
    
    menu, menu1, add, testmenu1, prikazka1
    
    menu, menu1, add, prikazka2, prikazka2
    
    menu, menu1, add, prikazka3, prikazka3
    
    return
    
    ;///////////////////////
    
    ^Numpad1::
    
    menu, menu1, show
    
    return
    
    ;///////////////////////
    
    prikazka1:
    FileRead, clipboard, C:\ahk\test1.txt
    Send ^V
    return
    
    ;///////////////////////
    
    prikazka2:
    FileRead, clipboard, C:\ahk\test2.txt
    Send ^V
    return
    
    ;///////////////////////
    prikazka3:
    FileRead, clipboard, C:\ahk\test3.txt
    Send ^V
    return
    
    ;///////////////////////
    - - - - - -

    , , . ... ?

    Code:
    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
    ; #Warn  ; Enable warnings to assist with detecting common errors.
    SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
    SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
    
    #singleinstance force
    
    
    
    menu, menu1, add, test 1, prikazka1
    
    menu, menu1, add,  2, prikazka2
    
    menu, menu1, add,  , prikazka3
    
    return
    
    ;///////////////////////
    
    ^Numpad1::
    
    menu, menu1, show
    
    return
    
    ;///////////////////////
    
    prikazka1:
    FileRead, clipboard, C:\ahk\test1.txt
    Send ^V
    return
    
    ;///////////////////////
    
    prikazka2:
    FileRead, clipboard, C:\ahk\test2.txt
    Send ^V
    return
    
    ;///////////////////////
    prikazka3:
    FileRead, clipboard, C:\ahk\test3.txt
    Send ^V
    return
    
    ;///////////////////////
    - - - - - -

    - V.

  2. #2
    Registered User
    Join Date: Mar:2009
    Location:
    Posts: 169
    AutoIt, Send() (. ) .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |