commit eab47ccad2d166bed9662ec7761327143a2243e6
parent 1e33006f99c3664dce856bb83000efdc0e82b76d
Author: breadcat <sendforththegunboats@gmail.com>
Date: Tue, 20 Aug 2013 12:51:10 +0100
Small improvements
Add comments
Add OS dependent Chromium global CSS
Replaced absolute paths with relative ones
Diffstat:
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git 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
diff --git a/index.ahk b/index.ahk
@@ -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