summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--appspecific.ahk4
-rw-r--r--index.ahk17
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
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