From f0301194a401d85a861aa80a4889ec3de063e324 Mon Sep 17 00:00:00 2001 From: breadcat Date: Sat, 17 Aug 2013 15:26:55 +0100 Subject: Cleanup, comments, restore Win7 specific code Removed some legacy or broken code Added comments to some environment setup Added back Win7 specific code due to OS detection not being passed to hotkeys --- index.ahk | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/index.ahk b/index.ahk index b0626ec..38f30d8 100644 --- a/index.ahk +++ b/index.ahk @@ -1,14 +1,11 @@ -; ^ctrl #Win !Alt +Shift +; ^ctrl #win !alt +shift ;environment #NoEnv #SingleInstance,Force -ws_MinHeight = 25 -SetWinDelay, -1 -SetBatchLines, -1 -if A_OSVersion in WIN_NT4,WIN_95,WIN_98,WIN_ME,WIN_XP { -SetWorkingDir, %A_MyDocuments% } Else { -SetWorkingDir, C:\Users\%A_UserName% } +SetWinDelay, -1 ;don't delay window opening +SetBatchLines, -1 ;run script as fast as possible +SetWorkingDir, C:\Users\%A_UserName% ;keystates SetCapsLockState, AlwaysOff @@ -18,12 +15,16 @@ SetNumLockState, AlwaysOn ;hotkeys #q::Run notepad ^q::Send {ALTDOWN}{F4}{ALTUP} ;quit most programs +^!q::Run "AppData\Local\Chromium\User Data\Default\User StyleSheets\Custom.css" ;chrome global css #w::Run "C:\Program Files (x86)\Chromium\chrome.exe" #+w::Run "C:\Program Files (x86)\Chromium\chrome.exe" -incognito +#e::Run explorer C:\Users\%A_UserName%\Downloads ;won't work with relative paths, has to be absolute +#+e::Run explorer C:\Users\%A_UserName%\Dropbox ;won't work with relative paths, has to be absolute +^!e::Run ::{20d04fe0-3aea-1069-a2d8-08002b30309d} ;my computer ^!r::Run mstsc ;remote desktop connection #t::Run C:\cygwin\bin\mintty.exe - #+t::Run cmd -#u::return +#p::Run "Dropbox\conf\putty.exe" #c::Run calc #\::SendMessage 0x112, 0xF170, 2, , Program Manager ;win+\ - screen standby RAlt & j::ShiftAltTab @@ -45,8 +46,8 @@ XButton2::Send {MButton} ;wheel click ::(tm)::™ ;change screen res (resswitch.exe - http://www.naughter.com/qres.html) -^!+UP::run "%A_ScriptDir%\resswitch.exe" /WIDTH:1920 /HEIGHT:1080 -^!+DOWN::run "%A_ScriptDir%\resswitch.exe" /WIDTH:1280 /HEIGHT:720 +^!+UP::run %A_ScriptDir%\resswitch.exe /WIDTH:1920 /HEIGHT:1080 +^!+DOWN::run %A_ScriptDir%\resswitch.exe /WIDTH:1280 /HEIGHT:720 ;date/time insertion #space:: @@ -66,7 +67,7 @@ Insert:: return ;includes -#Include, %A_ScriptDir%\appspecific.ahk -#Include, %A_ScriptDir%\tiling.ahk -#Include, %A_ScriptDir%\mousewin.ahk -#Include, %A_ScriptDir%\secret.ahk ;os specific, contains personally identifiable data. +#Include, %A_ScriptDir%\appspecific.ahk ;application specific hotkeys +#Include, %A_ScriptDir%\tiling.ahk ;win+numpad tiling +#Include, %A_ScriptDir%\mousewin.ahk ;control windows like kde does +#Include, %A_ScriptDir%\secret.ahk ;personally identifiable data -- cgit v1.2.3