diff options
author | breadcat | 2015-04-19 13:47:29 +0100 |
---|---|---|
committer | breadcat | 2015-04-19 13:47:29 +0100 |
commit | 1aa9623655eed23e8818fc930a7b189c6b6c48c4 (patch) | |
tree | 135370ebb4a27382beae0e4e90553f99662c480d | |
parent | a62b6fa6954ed61c199315756bac847e458aa3d9 (diff) | |
download | ahka-1aa9623655eed23e8818fc930a7b189c6b6c48c4.tar.gz ahka-1aa9623655eed23e8818fc930a7b189c6b6c48c4.tar.bz2 ahka-1aa9623655eed23e8818fc930a7b189c6b6c48c4.zip |
Small improvements
Added a couple of functions, improvements, casing changes etc.
-rw-r--r-- | ahk-assistant.ahk | 16 | ||||
-rw-r--r-- | functions.ahk | 23 |
2 files changed, 33 insertions, 6 deletions
diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk index 1ca7b48..b6f0c40 100644 --- a/ahk-assistant.ahk +++ b/ahk-assistant.ahk @@ -33,7 +33,8 @@ SetNumLockState, AlwaysOn #t::launchTerminal() #+t::Run cmd ^!t::pasteTelephone() -#y::send,{end}{shift down}{home}{shift up}{del}https://www.youtube.com/watch?v={ctrl down}v{ctrl up} ;create youtube link from ID +#Enter::dialTelephone() +#y::send {end}{shift down}{home}{shift up}https://www.youtube.com/v/^v ;create youtube link from ID and bypass age restrictions ^!b::Run %programfiles%\TeamViewer\Version9\TeamViewer.exe ^!v::Run %programfiles%\TightVNC\tvnviewer.exe #p::Run "%ProgramFilesX86%\PuTTY\putty.exe" ;putty @@ -47,8 +48,8 @@ RAlt & j::ShiftAltTab RAlt & k::AltTab CapsLock::BackSpace !^0::Send {Volume_Mute} ;C-A-0 volume mute toggle -!^-::Send {Volume_Down} ;C-A-- volume down -!^=::Send {Volume_Up} ;C-A-+ volume up +!^-::Send {Volume_Down 3} ;C-A-- volume down +!^=::Send {Volume_Up 3} ;C-A-+ volume up ^!+Up::run %A_ScriptDir%\resswitch.exe /WIDTH:1920 /HEIGHT:1080 ;1080p screen resolution ^!+Down::run %A_ScriptDir%\resswitch.exe /WIDTH:1280 /HEIGHT:720 ;720p screen resolution XButton1::Send {Click 2} ;remap logitech m570 x1 to double click @@ -59,6 +60,10 @@ Insert::appendClipboard() ^!Space::toggleAudioDevice() !LButton::kdeMove() !RButton::kdeResize() +RAlt & Up::MouseMove, 0, -1, 2, R +RAlt & Down::MouseMove, 0, 1, 2, R +RAlt & Left::MouseMove, -1, 0, 2, R +RAlt & Right::MouseMove, 1, 0, 2, R ;tiling #Up::WinMaximize, A @@ -178,6 +183,11 @@ Ralt & e::typeAcuteE() ;awful, awful workaround ^!+n::explorerNewFile() #IfWinActive +#IfWinActive ahk_class ShockwaveFlashFullScreen ;full screen flash + Ralt & Enter:: ;overflow + Alt & Enter::flashFullscreen() ;leave flash full screen with a keyboard command +#IfWinActive + #IfWinActive ahk_class FontViewWClass ;font previewer CapsLock::Send !{F4} ;quit #IfWinActive diff --git a/functions.ahk b/functions.ahk index 1221c7d..0e66990 100644 --- a/functions.ahk +++ b/functions.ahk @@ -67,11 +67,11 @@ appendClipboard() { pasteTelephone() { StringReplace, clipboard, clipboard, +44, 0, All ;translate intl codes - StringReplace, clipboard, clipboard, %A_Space%,, All ;remove Spaces + StringReplace, clipboard, clipboard, %A_Space%,, All ;remove spaces StringReplace, clipboard, clipboard, %A_Tab%, `,, All ;remove tabs StringReplace, clipboard, clipboard, `,,, All ;remove commas - StringReplace, clipboard, clipboard, `r,, All ;remove Lines - StringReplace, clipboard, clipboard, `n,, All ;remove Lines + StringReplace, clipboard, clipboard, `r,, All ;remove lines + StringReplace, clipboard, clipboard, `n,, All ;remove lines StringReplace, clipboard, clipboard, -,, All ;remove hyphens StringReplace, clipboard, clipboard, (,, All ;remove lbracket StringReplace, clipboard, clipboard, ),, All ;remove rbracket @@ -81,6 +81,16 @@ pasteTelephone() { Return } +dialTelephone() { ;lg phone-link + ClipSaved := ClipboardAll + Send, ^c + StringReplace, clipboard, clipboard, +44, 0, All ;translate intl codes + Run, dial://%clipboard% ;must enable internet dialling to work + Clipboard := ClipSaved + ClipSaved = + Return + } + typeSyncDocs() { If A_OSVersion in WIN_XP { @@ -146,6 +156,13 @@ cmdPaste() { ;C-v / S-insert pastes into cmd Return } +flashFullscreen() { ;double click the window + CoordMode, Mouse, Relative + MouseMove, 250, 250 + Send {Click 2} + Return + } + explorerUp() { ;up one folder If A_OSVersion in WIN_XP { |