summaryrefslogtreecommitdiffstats
path: root/index.ahk
diff options
context:
space:
mode:
authorbreadcat2013-08-20 12:51:10 +0100
committerbreadcat2013-08-20 12:51:10 +0100
commiteab47ccad2d166bed9662ec7761327143a2243e6 (patch)
tree134c6819ec61d2e5f9b9c66f28183415fb9e502d /index.ahk
parent1e33006f99c3664dce856bb83000efdc0e82b76d (diff)
downloadahka-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
Diffstat (limited to 'index.ahk')
-rw-r--r--index.ahk17
1 files changed, 13 insertions, 4 deletions
diff --git a/index.ahk b/index.ahk
index 74ca01e..38b9f58 100644
--- 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