diff options
author | breadcat | 2013-08-20 12:51:10 +0100 |
---|---|---|
committer | breadcat | 2013-08-20 12:51:10 +0100 |
commit | eab47ccad2d166bed9662ec7761327143a2243e6 (patch) | |
tree | 134c6819ec61d2e5f9b9c66f28183415fb9e502d | |
parent | 1e33006f99c3664dce856bb83000efdc0e82b76d (diff) | |
download | ahka-eab47ccad2d166bed9662ec7761327143a2243e6.tar.gz ahka-eab47ccad2d166bed9662ec7761327143a2243e6.tar.bz2 ahka-eab47ccad2d166bed9662ec7761327143a2243e6.zip |
Small improvements
Add comments
Add OS dependent Chromium global CSS
Replaced absolute paths with relative ones
-rw-r--r-- | appspecific.ahk | 4 | ||||
-rw-r--r-- | index.ahk | 17 |
2 files changed, 15 insertions, 6 deletions
diff --git a/appspecific.ahk b/appspecific.ahk index 7ee960a..fef2de9 100644 --- a/appspecific.ahk +++ b/appspecific.ahk @@ -77,7 +77,7 @@ ;chrome/chromium #IfWinActive ahk_class Chrome_WidgetWin_1 - ^+w::Send ^w + ^+w::Send ^w ;quit window closes tab ^q::Send ^w ;quit now closes tab, the two keys are too close for this sort of thing ^d::Send ^f ;useless bookmark > useful find ^+h::Send ^tchrome://chrome/settings/clearBrowserData{Enter} ;delete history page @@ -88,4 +88,4 @@ !z::Return ;disable delete first char of line 'feature; ^Down::Send {Down} ; disable shift line down feature ^Up::Send {Up} ; disable shift line up feature -#IfWinActive
\ No newline at end of file +#IfWinActive @@ -22,17 +22,26 @@ SetNumLockState, AlwaysOn #q::Run notepad ^q::Send !{F4} ;quit most programs #+q::Run notepad.exe "C:\Dropbox\docs\faulties.txt" -^!q::Run "AppData\Local\Chromium\User Data\Default\User StyleSheets\Custom.css" ;chrome global css +^!q:: ;chromium global CSS +if A_OSVersion in WIN_XP + { + Run notepad.exe "%A_AppData%\..\Local Settings\Application Data\Chromium\User Data\Default\User StyleSheets\Custom.css" + } + Else + { + Run "AppData\Local\Chromium\User Data\Default\User StyleSheets\Custom.css" ;chrome global css + } + Return #w::Run "C:\Program Files (x86)\Chromium\chrome.exe" #+w::Run "C:\Program Files (x86)\Chromium\chrome.exe" -incognito #e:: ;launch documents directory if A_OSVersion in WIN_XP { - Run explorer C:\Documents and Settings\%A_UserName%\Documents ;won't work with relative paths, has to be absolute + Run explorer %A_MyDocuments% } Else { - Run explorer C:\Users\%A_UserName%\Downloads ;won't work with relative paths, has to be absolute + Run explorer %A_MyDocuments%\..\Downloads } Return #+e:: ;launch dropbox directory @@ -42,7 +51,7 @@ if A_OSVersion in WIN_XP } Else { - Run explorer C:\Users\%A_UserName%\Dropbox ;won't work with relative paths, has to be absolute + Run explorer %A_MyDocuments%\..\Dropbox } Return ^!e::Run ::{20d04fe0-3aea-1069-a2d8-08002b30309d} ;my computer |