Jump to content

Always on top?


Faleira
 Share

Recommended Posts

I currently made a script, that from time to time opens a window that sontantly changes images, pauses the window, and scans how many white pixels there are. I've envountered a problem, when i left it running for a little while to test, and came back, and realise that an error message from my Aim had been placed where the program opens up. Instead of just control clicking, and getting rid of the error, is there a way i could perhaps just make sure that the window i have with the shifting images gets set 'always on top' above all else?

[quote]If whenever you feel small, useless, offended, depressed, and just generally upset always remember......you were once the fastest and most vicious sperm out of hundreds of millions![/quote]

Link to comment
Share on other sites

you might try WinSetOnTop

you can also use the extended style $WS_EX_TOPMOST when creating your gui, that will give you the same effect without the extra line of code. I have a few scripts i made here at work that i use as topmost, but i have checks in their While loops that set transparency based on the active window name, just because there are times that i want to access other windows (and see the whole window) without minimizing my script. That really has nothing to do with your request, but it's something i like to do whenever i make something topmost, just to stop it from getting in the way while i'm still working.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...