Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Run C:\Windows\System32\SndVol.exe
- Sleep 200
- WinSet, AlwaysOnTop, toggle, ahk_class #32770
- WinMove, ahk_class #32770,, 1307, 396, 100, 100
- +::
- WinSet, AlwaysOnTop, toggle, ahk_class #32770
- q::
- PixelGetColor, AlteColor, 1486, 643
- Loop,
- {
- Sleep 2000
- Send, 1
- Sleep 4500
- PixelSearch, Px, Py, 60, 111, 1352, 583, 0x161F5C, 30, Fast
- if ErrorLevel
- {
- movemouse = 0
- }
- else
- {
- movemouse = 1
- }
- if(movemouse = 1)
- {
- MouseMove, %Px%+15, %Py%+15, 50
- }
- Sleep 100
- Loop 900000
- {
- PixelGetColor, currentcolor, 1486, 643
- if (currentcolor=AlteColor)
- {
- }
- else
- {
- Sleep 50
- Click, Right
- Sleep 500
- break
- }
- }
- }
- WaitPixelColor(p_DesiredColor,p_PosX,p_PosY,p_TimeOut=0,p_GetMode="",p_ReturnColor=0) {
- l_Start := A_TickCount
- Loop {
- PixelGetColor, l_OutputColor, %p_PosX%, %p_PosY%, %p_GetMode%
- If ( ErrorLevel )
- Return ( p_ReturnColor ? l_OutputColor : 1 )
- If ( l_OutputColor = p_DesiredColor )
- Return ( p_ReturnColor ? l_OutputColor : 0 )
- If ( p_TimeOut ) && ( A_TickCount - l_Start >= p_TimeOut )
- Return ( p_ReturnColor ? l_OutputColor : 2 )
- }
- }
- Escape::
- ExitApp
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement