summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter2014-05-17 11:24:13 +0100
committerPeter2014-05-17 11:24:13 +0100
commit5e7524f981e108aa5284de111343c51bfa8c12f2 (patch)
tree55a4f5eaf04ea3ce806ab2e5c5946eeaa9bc067c
parent3aa993e18f565f4a7cb399e938f0d80909bbd529 (diff)
downloadahka-5e7524f981e108aa5284de111343c51bfa8c12f2.tar.gz
ahka-5e7524f981e108aa5284de111343c51bfa8c12f2.tar.bz2
ahka-5e7524f981e108aa5284de111343c51bfa8c12f2.zip
Small improvements
Fixes firefox private window being shown as regular window Time/Date insertion sometimes broke and kept the winkey down with SendInput Some formatting changes.
-rw-r--r--ahk-assistant.ahk30
1 files changed, 15 insertions, 15 deletions
diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk
index fc42054..db4a2c3 100644
--- a/ahk-assistant.ahk
+++ b/ahk-assistant.ahk
@@ -24,7 +24,7 @@ SetNumLockState, AlwaysOn
^q::Send !{F4} ;quit most programs
#+q::Run notepad.exe "%A_MyDocuments%\Vault\docs\faulties.txt"
#w::Run firefox.exe
-#+w::Run firefox.exe -private
+#+w::Run firefox.exe -private-window
#e:: ;launch documents directory
if A_OSVersion in WIN_XP
{
@@ -83,25 +83,25 @@ Capslock::Backspace
XButton1::Send {Click 2} ;remap logitech m570 x1 to double click
XButton2::Send {MButton} ;remap logitech m570 x2 to wheel click
#Space:: ;date insert
- FormatTime, CurrentDateTime,, yyyy-MM-dd
- SendInput %CurrentDateTime%
+ FormatTime, CurrentDateTime,, yyyy-MM-dd
+ Send %CurrentDateTime%
return
#+Space:: ;date and time insert
- FormatTime, CurrentDateTime,, yyyy-MM-ddTHH:mm
- SendInput %CurrentDateTime%
+ FormatTime, CurrentDateTime,, yyyy-MM-dd HHmm
+ Send %CurrentDateTime%
return
#k:: ;split active and previous 2 windows side by side.
-{
- Shift("R")
- Send {AltDown}{Tab}{AltUp}
- Shift("L")
- Send {AltDown}{Tab}{AltUp}
- return
-}
+ {
+ Shift("R")
+ Send {AltDown}{Tab}{AltUp}
+ Shift("L")
+ Send {AltDown}{Tab}{AltUp}
+ return
+ }
Insert:: ;insert appends to clipboard
- newclipboard = %clipboard%
- Send, ^c
- clipboard = %newclipboard%`r`n%clipboard%
+ newclipboard = %clipboard%
+ Send, ^c
+ clipboard = %newclipboard%`r`n%clipboard%
return
#x:: ;hide/show taskbar toggle
if toggle := !toggle