Hey I am trying to make a script that will make specific windows always stay on top if they are open, its to be used for a single singon system where people are prompted to input user info first time they open the specific applications, but the problem is that the window open in the top left corner and therefore is easy to miss, and if they do click on anything else the prompt disappear behind the active windows.
So far i have made this and it works quite well, but I would like it to trigger on all windows starting with New Logon for
other then that it would be nice if it could move the window to the center of the screen.
---------------------------------------------------------------------------------------------------------
#NoTrayIcon
#Persistent
SetTimer, alwaysontop, 250
return
alwaysontop:
{
IfWinExist New Logon for xxxxxxxxxxxxxxxxx
{
WinSet, AlwaysOnTop, On
}
}
return
---------------------------------------------------------------------------------------------------------
Thanks in advance! :-)
use a wildcard in a IfWinExist
Started by
tjerner
, Jun 12 2012 10:40 AM
1 reply to this topic
#1
Posted 12 June 2012 - 10:40 AM
#2
Guests
Posted 12 June 2012 - 10:47 AM
Just use
New Logon for also look at Sets the matching behavior of the WinTitle parameter in commands such as WinWait.
Source: http://www.autohotke...leMatchMode.htm




