Code: Select all
Loop
{
if (WinExist("Volume")) and if (WinActive("Volume"))
Send, {Right}
WinWaitClose
}
if WinWaitClose, ahk_class REAPERwnd
ExitApp
Code: Select all
Loop
{
if (WinExist("Volume")) and if (WinActive("Volume"))
Send, {Right}
WinWaitClose
}
if WinWaitClose, ahk_class REAPERwnd
ExitApp
Code: Select all
#Persistent ; Keeps a script permanently running
SetTitleMatchMode 2 ; A window's title can contain WinTitle anywhere inside it to be a match
SetTimer, WatchPeaper, 1500 ; change the frequence here. Smaller number causes more cpu-load in average
return
WatchPeaper:
if (WinNotExist("ahk_class REAPERwnd"))
exitapp
return
Code: Select all
Loop
{
if (WinExist("Volume")) and if (WinActive("Volume"))
Send, {Right}
WinWaitClose
}
#Persistent ; Keeps a script permanently running
SetTitleMatchMode 2 ; A window's title can contain WinTitle anywhere inside it to be a match
SetTimer, WatchPeaper, 1500 ; change the frequence here. Smaller number causes more cpu-load in average
return
WatchPeaper:
if (WinExist("ahk_class REAPERwnd"))
exitapp
return
No problem. EVERYBODY was beginner. (Somebody still are ... )nappies wrote:... Sorry I'm not at all strong in scripts ...
divanebaba wrote:Hello nappies.No problem. EVERYBODY was beginner. (Somebody still are ... )nappies wrote:... Sorry I'm not at all strong in scripts ...
As I don't know, what "Volume" is, I just can look for your ahk_class REAPERwnd.
To run my solution, you did not need to merge both scripts. Use only my code.
Little timer tutorial.
A timer is just a label, you can trigger with settimer.
In my example script, settimer, WatchPeaper, 1500 means, that every 1500 ms (1.5 s) the label called "WatchPeaper" is executed.
Users browsing this forum: just me, roysubs, scriptor2016, zerox and 269 guests