;-_- HELP section shortCUTTER.tk -_- Project by 4rtist.com based on the o.s.Autohotkey.com + _L project ;if you found this CODE-page @ google, switch to 1mm.de, it describes better the shortCUTTER.tk#_app ;TROUBLE shooting ;-_-if you got an error message, delete the last shortcut line, save and click/activate again the .ahk file ;ADDITIONAL code ;-_-place code snippets and shortcuts @ the end of this file or create a new .ahk file ;How to set up "one after another key " shortcuts for URLs + pathes ;scroll down to the file end, use ALT + 1 -_- modify "KEYS" -_- OPTION :*: =fire the shortcut with the latest char. ;MORE AIMS assigned to a shortcut. ;start @ the end of this file with the ALT + 1 shortcut and create more url lines. ;You can use in the 1st line all shortcut syntaxes before "::" ::keys, :*:keys, ~keyname, ~x & y, ^x, !x, #x, ^!x, ;########### -_-KEY names-_- ########## ;1)MOUSE: Lbutton mbutton rbutton xbutton1 xbutton2 (1=back 2=forward) ;2)SIMPLIFIED modifier: !=ALT ^=ctrl #=win +=shift i.e. ^x:: ^!x:: ;3)FX: F1 - F24 ;4)NUMPAD keys with numbers and the default "numlock on" state CODE: SetNumlockState ON or ALWAYSON ; Numpad0-numpad9 numpaddot ;5)NUMPAD keys with numbers and numlock OFF CODE: SetNumlockState OFF or ALWAYSOFF ; numpadup numpadins n.p.end ..add ..sub ..del ..pgdn ..pgup ..home ..clear ;6)NUMPAD keys not affected by numlock on/off ; numpadenter numpadsub numpadadd numpadmult numpaddiv ;7)up bs+backspace space esc tab Ins End Del Home Down Right ScrollLock CapsLock NumLock ; lctrl lwin lalt lshift rwin ralt rctrl rshift ; PgUp PgDn Down Left Right ScrollLock CapsLock NumLock ;8) PrintScreen CtrlBreak Pause ; Break -Since this is synonymous with Pause, use ^CtrlBreak in hotkeys instead of ^Pause or ^Break. ;9) MULTIMEDIA ; Browser_Back b._Forward .._Refresh .._Stop .._Search .._Favorites .._home ; Volume_Mute Volume_Down Volume_Up ; Media_Next Media_Prev Media_Stop Media_Play_Pause ; Launch_Mail Launch_Media Launch_App1 Launch_App2 ;####NOTE#### the Autohotkey.exe will not load the help section, so you can keep it. ; With the shortcut x & y you can access the help text in a default ff opera chrome window/tab #singleinstance force Menu,Tray,NoStandard Menu,Tray,add,&EDIT the script with a double click on the H tray icon,EDIT Menu,Tray,Default,&EDIT the script with a double click on the H tray icon Menu,Tray,add,&shortCUTTER.tk -key names -help -tips , x+y Menu,Tray,add,&exit,exit return exit: exitapp EDIT: Run Notepad %A_ScriptFullPath% Return x+y: ; = tray menu link run 33 return !x:: ; ALT + x shortcut for the multilineText AutoTrim Off ClipboardOld = %ClipboardAll% Clipboard = Send ^c ClipWait 1 if ErrorLevel return StringReplace, multilineText, Clipboard, ``, ````, All StringReplace, multilineText, multilineText, `r`n, ``r, All StringReplace, multilineText, multilineText, `n, ``r, All StringReplace, multilineText, multilineText, %A_Tab%, ``t, All StringReplace, multilineText, multilineText, `;, ```;, All Clipboard = %ClipboardOld% gui, font, s9, Verdana Gui, Add, Edit, x6 y10 w60 h20 vabbr Gui, Add, Text, x76 y13 w590 h20 , ABBREVIATION use ascii/unicode char. The replacement requ. ENTER Space , [ ] at the end Gui, Add, CheckBox, x20 y40 w20 h20 vast Gui, Add, Text, x46 y44 w630 h20 , tick the box if you wish to fire the replacement with the latest abbreviation char. Gui, Add, Edit, x6 y76 w670 h20 vphrase,%multilineText% Gui, Add, Text, x310 y116 w390 h20 , You can assign url's to abbreviations, click the H tray icon Gui, Add, Text, x5 y101 h10 , editable FULL PHRASE ``r = linebrake Gui,Add,Button,x266 y110 w40 h30,add Gui, Show, x178 y123 h140 w686, define abbreviations for multiline TEXT Return GuiClose: reload Return ButtonADD: Gui,Submit,nohide if abbr = { MsgBox You forgot to provide an abbreviation in the 1st input box. This is an important step return } StringReplace, ast, ast, 1, *, All StringReplace, ast, ast, 0,, All FileAppend , `n:%ast%:%abbr%::%phrase%, %A_ScriptFullPath% MsgBox, The abbreviation + the phrase entered has been added to the end of the .ahk file. Reload Return !c:: ; ALT + c shortcut for the urls/pathes Send ^c ClipWait 1 if ErrorLevel ; ClipWait timed out. return StringReplace, Clipboard, Clipboard, %Clipboard%, "%Clipboard%", All SetTimer, MoveCaret1, 10 InputBox, pathShortcut, shortCUTTER.tk new WEB or PATH shortcut, change x & y in the input box to a key name i.e. f6 INS or to a different key combination i.e. SPACE or Lbutton insted of x `n ALT CTRL WIN shortcuts !x:: ^x:: #x::`n`nFor HELP + all key names and instructions how to assign more "PATHES" to a shortcut click the H tray icon,,,,,,,,~x & y::run %Clipboard% if ErrorLevel return IfInString, pathShortcut, ~x & y::run { MsgBox You didn't changed the default shortcut x & y. Repeat the 2 steps return } FileAppend, `n%pathShortcut%, %A_ScriptFullPath% Reload Sleep 200 MsgBox, 4,, The shortcut just added appears to be improperly formatted. Would you like to open the script for editing? Note that the bad shortcut is at the bottom of the script. IfMsgBox, Yes, Edit return MoveCaret1: IfWinNotActive, shortCUTTER.tk new WEB or PATH shortcut return Send {Home}{Right 2} SetTimer, MoveCaret1, Off return ~x & y::run http://1mm.de/shortcutter.ahk capslock::@ rctrl::send {#}{enter} !1::send {:}{*}{:}Keys{:}{:}`rrun http{:}//`rreturn {left 24}