Thursday 10 March 2016

Windows: .bat files and keyboard macros

Windows: .bat files and keyboard macros





Sample.ahk
---------
; la lineas que empiezan por punto y como  (;) o llevan ( ; ), se considieran comentarios
; desde el ;  -- https://autohotkey.com/docs/commands/_CommentFlag.htm
;
; Está puesto en el inicio:  https://www.autohotkey.com/docs/FAQ.htm#Startup
;

; -- https://autohotkey.com/board/topic/69611-conditional-singleinstance-force/
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#SingleInstance force

; para los symbolos ^&# ver https://autohotkey.com/docs/Tutorial.htm#s21
;
; Symbol Description
;  # Win (Windows logo key)
;  ! Alt
;  ^ Control
;  + Shift
;  &  An ampersand may be used between any two keys or mouse buttons to combine them into a custom hotkey.
;

;tutorial
#!j::
     Send, My First Script{enter}
Return


No comments:

Post a Comment