Jump to content
Sign in to follow this  
marauder

script for when window appears do this..

Recommended Posts

marauder

Hey. Is there a way to make a script look for when a window is CREATED? I have a simple script which continuously looks for if a window is there and performs an action, but this of course is repeated while the window is active. I only want it to do something when the window is CREATED.

Thanks

Share this post


Link to post
Share on other sites
LxP

You could do something along these lines:

Edit: Removed. Larry's speak is better. Or you might try something like:

while (1)
    winWait("title", "text")
   ; my instructions here
    winWaitClose("title", "text")
wEnd
Edited by LxP

Share this post


Link to post
Share on other sites
marauder

Thanks a million guys! By the way, Larry, I've only asked 1 other question on this forum before which was about a year ago and you were also the first to reply then with an answer. Nice work!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×