Sign in to follow this  
Followers 0
Leopardfist

GUI Always on top windows setting

3 posts in this topic

Hi,

I tried setting my GUI to be "always on top" window by using this code below, but it isnt working. Can anyone tell me what I did wrong?

global $main=guicreate("test", 300, 80, 50, 10, -1, "$WS_EX_TOPMOST")

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

The style does not need quotation marks. (edit: also make sure to include windowsconstants.au3 in your script.)

It should read

#include <WindowsConstants.au3>
global $main=guicreate("test", 300, 80, 50, 10, -1, $WS_EX_TOPMOST)
Edited by allSystemsGo

Share this post


Link to post
Share on other sites

awesome! THANKS!

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  
Followers 0