; ANSI (Windows) codepage !!!! ; ; http://www.autohotkey.com/ ; ; ;-,-,'-; ;= ; ; ^ ctrl ; + shift ; ! Alt ; # win ; ;;;;;;;;;; ; ; Assign Ctrl-Alt-R as a hotkey to restart the script. ; ^!r::Reload ; ; paste current playing "[ artist - track ]" using winamp hotkey ; #k::SendInput [ #c^v ] ; ; paste current date ; #!d:: FormatTime, CurrentDateTime,, yyyy-MM-dd SendInput %CurrentDateTime% return ; ; paste current time ; #!f:: FormatTime, CurrentDateTime,, HH:mm:ss SendInput %CurrentDateTime% return ; ; tag ; ; - <|> !,::SendInput <>{left} ; - !.::SendInput {left} ; - close newline, indented #+.::SendInput {home 2}+{down}^c^v^v^v{up}^{right 2}{/}{up}{home 2}^{right}+{end}{delete}{space} ; - close just newline #+^.::SendInput {home 2}+{down}^c^v{enter}^v{up}{right}{/}{up}{space} ; - | messageboxed #ù:: InputBox, tagName, Tag, <[...]>, , , if ( tagName ) { AutoTrim, Off props = loop { InputBox, attr, %tagName% Attribute, <%tagName%%props% [...]> || [OK], , , if ( attr ) { InputBox, val, %tagName% %attr% value, <%tagName%%props% %attr%="[...]">, , , if ( val ) { props = %props%%A_Space%%attr%="%val%" } else { props = %props%%A_Space%%attr%="%attr%" } } else { break } } output = <%tagName%%props%> clipboard = %output% ; better than sendInput ? ClipWait sendInput ^v len := StrLen(tagName) + 3 Loop, %len% { SendInput {left} } AutoTrim, On } return ; ; ="|" for attributes an such ; ^=::SendInput `=`"`"{left} ; { ; | ; } !ù::SendInput {space}{{}{enter 2}{}}{up}{space} ; { ; | ; } !+ù::SendInput {space}{{}{enter}{home}{enter}{}}{home}{up}{space} ; ; win+delete = backspace : ) ; #delete::SendInput {backspace} ; ; ctrl + / = backspace ; ^NumpadDiv::SendInput {backspace} ; ; ctrl + * = delete ; ^NumpadMult::SendInput {delete} ; ; directions ; (disabled) ; ; ^Numpad4::SendInput {NumpadLeft} ; ^Numpad6::SendInput {NumpadRight} ; ^Numpad8::SendInput {NumpadUp} ; ^Numpad2::SendInput {NumpadDown} ; ^Numpad7::SendInput {NumpadUp}{NumpadLeft} ; ^Numpad9::SendInput {NumpadRight}{NumpadUp} ; ^Numpad1::SendInput {NumpadDown}{NumpadLeft} ; ^Numpad3::SendInput {NumpadDown}{NumpadRight} ; ^!Numpad4::SendInput {NumpadHome} ; ^!Numpad6::SendInput {NumpadEnd} ; ; fakof lokální nasatvení desetinný èárky! ; NumpadDot::. ; ; swap characters berofore and after cursor ; ; - a|b -> b|a #s::SendInput +{left}^x{right}^v{left} ; - ab|c -> cb|a #+s::SendInput +{right}^x{left 2}^v+{right}^x{right}^v{left} ; ; comments ; ; - <%-- | --%> ^+#,::SendInput <`%-- --`%>{left 5} ; - <%--| ^#,::SendInput <`%-- ; - --%>| ^#.::SendInput --`%> ; - #+!,::SendInput <{!}-- -->{left 4} ; - | #!.::SendInput --> ; // ; | ^+ú::SendInput // {left 3}{down} ^+!ú::SendInput {up}{del 3} ; /* ; */ #+ú::SendInput {home 2}/`* {home 2}{down}{enter}{up} `*/{down}{home 2} #+!ú::SendInput {up}{del 4}{up}{del 3} ; /* */ #^+ú::SendInput {home 2}/`* {end 2} `*/{home 2} #^+!ú::SendInput {home 2}{del 3}{end 2}{backspace 3}{home 2} ; ; indent / outdent ; !+right::SendInput {space}{left} !+left::SendInput {del} ^!+right::SendInput {space}{left}{down} ^!+left::SendInput {up}{del} ; ; swap lines ; !^+up::SendInput {home 2}+{down}^x{up}^v{up} !^+down::SendInput {home 2}+{down}^x{down}^v{up} ; ; chars ; ; - ` ^;::SendInput ``{space} ; - ~ !;::SendInput ~ ; - ° +;::SendInput °{space} ; - ï #^d::ï ; - Ï #+^d::Ï ; - ò #^n::ò ; - Ò #^+n::Ò ; - ó #^o::ó ; - Ó #+^o::Ó ; - nonbreakable space. BEWARE!!! : ) ^+space::  ; - ellipsis :*:...::… ;133 ; - hypens ; (disabled) ; :*:–-::— ;151 ; :*:--::– ;150 #ú::{ #)::sendinput {}} ; ; CMS ; ; - "|noescape" :*:|noe::|noescape ; - "|normalize" :*:|nor::|normalize ; - ${} ^+!ù::SendInput ${{}{}}{left} ; - ${|noescape} ^#+!ù::SendInput ${{}|noescape{}}{left 10} ; ; CSS ; ; - "!important;" :*:!;::{!}important; ; - background-color: # :*:bgc::background-color: {#} ;- border: 1px solid red; :*:bpr::border: 1px solid red; ;;;;;;;;;;;;; ; ; application windows toggles ; ;;;;;;;;;;;;; ; ; process explorer window toggle ; #p:: DetectHiddenWindows ON PostMessage 0x7e9, 1, 0x201,, ahk_class PROCEXPL DetectHiddenWindows OFF Return ; ; psi - im window toggle ; #o:: Process, Exist, psi.exe IfWinExist Psi ahk_pid %ErrorLevel% WinShow, Psi ahk_pid %ErrorLevel% WinActivate, Psi ahk_pid %ErrorLevel% IfWinExist * Psi ahk_pid %ErrorLevel% WinShow, * Psi ahk_pid %ErrorLevel% WinActivate, * Psi ahk_pid %ErrorLevel% return ; ; XAMPP window toggle ; #+x:: Process, Exist, xampp-control.exe IfWinExist XAMPP Control Panel Application ahk_pid %ErrorLevel% WinShow, XAMPP Control Panel Application ahk_pid %ErrorLevel% WinActivate, XAMPP Control Panel Application ahk_pid %ErrorLevel% return ; ; Free Download Manager window toggle ; #q:: DetectHiddenWindows, On Process, Exist, fdm.exe IfWinExist Free Download Manager ahk_pid %ErrorLevel% DetectHiddenWindows, Off IfWinNotExist Free Download Manager ahk_pid %ErrorLevel% { WinShow, Free Download Manager ahk_pid %ErrorLevel% WinActivate, Free Download Manager ahk_pid %ErrorLevel% } Else IfWinExist Free Download Manager ahk_pid %ErrorLevel% { WinMinimize, Free Download Manager ahk_pid %ErrorLevel% ; WinHide, Free Download Manager ahk_pid %ErrorLevel% } return ; ; outlook toggle ; #i:: DetectHiddenWindows, On IfWinNotExist, ahk_class rctrl_renwnd32 { Run, "C:\Program Files\Microsoft Office\OFFICE11\Outlook.exe" } Else { DetectHiddenWindows, Off IfWinNotExist ahk_class rctrl_renwnd32 { WinShow, ahk_class rctrl_renwnd32 WinActivate, ahk_class rctrl_renwnd32 } Else { IfWinExist, ahk_class rctrl_renwnd32 { WinMinimize, ahk_class rctrl_renwnd32 WinHide, ahk_class rctrl_renwnd32 } } } Return ; ; run sound volume ; #+v:: run C:\WINDOWS\system32\SNDVOL32.EXE return