commit 5e7524f981e108aa5284de111343c51bfa8c12f2
parent 3aa993e18f565f4a7cb399e938f0d80909bbd529
Author: Peter <sendforththegunboats@gmail.com>
Date: Sat, 17 May 2014 11:24:13 +0100
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.
Diffstat:
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git 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