#1
|
|||
|
|||
I want a window to retake focus everytime
I want a window to retake focus ever single time he loses it.
So for example: I have 2 windows open: Notepad and Calculator. Now I want Notepad to retake focus everytime I click on the Calculator. How can I do this? |
#2
|
|||
|
|||
Re: I want a window to retake focus everytime
a very very simple ahk script might look like this:
SetTitleMatchMode, 2 ~LButton::WinActivate,Notepad not sure thats really what you want though? |
#3
|
|||
|
|||
Re: I want a window to retake focus everytime
Looks like that might do the trick yes,
but then I still have to push the left-button, but that will be no problem, but this exact script doesnt work. |
#4
|
|||
|
|||
Re: I want a window to retake focus everytime
loop
WinActivate, Notepad |
#5
|
|||
|
|||
Re: I want a window to retake focus everytime
Thanks shnk and HalvSame,
this works perfect for me [img]/images/graemlins/laugh.gif[/img] : ================================ loop IfWinExist, Untitled - Notepad WinActivate ================================ |
|
|