Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

everyday scripts


  • Please log in to reply
3 replies to this topic
jaco9307
  • Members
  • 3 posts
  • Last active: Jul 06 2015 08:46 AM
  • Joined: 16 Apr 2015

easy navigation scripts:

 

ctrl+shift+v= copy marked and google it in the standard browser

ctrl+space= open website

alt+mouse wheel= volume control with visual feedback

left + rightclick=minimise current window

shift+ctrl+1-0=volume control

 

$^+v::
 
send, ^c
sleep 50
return
 
 
^space::
run, INSERT WEBSITE HERE
SoundBeep, 300, 150
return
 
 
 
^+1::
soundset, 10
SoundBeep, 300, 150
return
 
^+2::
soundset, 20
SoundBeep, 300, 150
return
 
^+3::
soundset, 30
SoundBeep, 300, 150
return
 
^+4::
soundset, 40
SoundBeep, 300, 150
return
 
^+5::
soundset, 50
SoundBeep, 300, 150
return
 
^+6::
soundset, 60
SoundBeep, 300, 150
return
 
^+7::
soundset, 70
SoundBeep, 300, 150
return
 
^+8::
soundset, 80
SoundBeep, 300, 150
return
 
^+9::
soundset, 90
SoundBeep, 300, 150
return
 
^+0::
soundset, 100
SoundBeep, 300, 150
return
 
 
; Left+Right Click to minimize Window v3
 
RButton::
LButton_used := GetKeyState("LButton", "P")
; MsgBox,,,LButton_used = %LButton_used% ; for trouble shooting
 
not_an_exception := true ; default value
    
    ;Start of Exceptions:
    /*
     
    */
    
    IfInString,winclass,Shell_TrayWnd ;put_ahk_class_here
        { 
        not_an_exception:=false
        }
    IfInString,winclass,put_the_ahk_class_here
        { ; example: Chrome_WidgetWin_1 - for chrome
        not_an_exception:=false
        }
    IfInString,winclass,LaunchUnrealUWindowsClient
        { ; example: Chrome_WidgetWin_1 - for chrome
        not_an_exception:=false
        }
        
    ; End of Exceptions
 
if(LButton_used)
{
    ; MsgBox,,, Minimize ; for testing
    MouseGetPos,,, WinUMID
    WinActivate, ahk_id %WinUMID% ; activate window below cursor
 
    WinGetClass, winclass, A
   
    
    
    
    If(not_an_exception==true)
        {
         WinMinimize, ahk_id %WinUMID% 
         return
        }
        else
            {
            Suspend on
            Send {RButton down}
            Keywait, RButton, Up, L
            
            Suspend off
            }
        
}
else
{
    Suspend on
    Send {RButton down}
    Keywait, RButton, Up, L
    Suspend off
}
 
 
 
return
 
 
;=================================
; Volume Control with Visual Feedback
;
!WheelUP::
!WheelDown::
 
mixer=Volume Mixer
mixeropened := false
 
Suspend, On
loop
{
alt_down := GetKeyState("LAlt", "P")
 
            if(mixeropened=false) ; executes only first time in loop
            {
                Run C:\Windows\System32\SndVol.exe
                Sleep 100
                
                WinGetPos,,, Width, Height,%mixer%
                WinMove,%mixer%,, (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2)
                
                WinActivate,%mixer%
                WinWait,%mixer%
                mixeropened := true
            }
             
 
 
 
if(alt_down=false)
{
Suspend off
WinClose,%mixer%
Exit
}
 
 
}
 


ashcraft
  • Members
  • 1 posts
  • Last active: May 02 2015 11:19 PM
  • Joined: 23 Apr 2015

Very useful!



mastahcez
  • Members
  • 12 posts
  • Last active: Oct 10 2015 09:49 PM
  • Joined: 20 Sep 2015

Cool, how would you go about modifying the the script so the volume is controlled in bigger steps?



Anoncheg
  • New members
  • 2 posts
  • Last active: Sep 25 2015 11:16 AM
  • Joined: 25 Sep 2015

XFCE4 desktop environment

ALSA sound card driver.

 

amixer -q sset Master 3%-      Alt+Page Down
amixer -q sset Master 3%+     Alt+Page Up
iceweasel               Ctrl+Alt+l
thunar                 Ctrl+Alt+H
tuxcmd                 Ctrl+Alt+G
xdotool click 3             Ctrl+l
xfce4-display-settings --minimal   Super+P
xfce4-display-settings - -minimal   Xf86Display
xfce4 -screenshooter -f -c      Print
xfce4-terminal            Alt+T
xfce4-terminal --geometry 100x50 Ctrl+Alt+T
xfdesMop--menu           Ctrl+Escape
xflock4                 Ctrl+Alt+Delete
xfrun4                 Alt+f2
 

 

GOCR used.