Jump to content
Sign in to follow this  
daniel02

gui allways on top also in fullscreen game

Recommended Posts

daniel02

Hi all,

I want my autoit gui to be allways on top, also in a game which is running in fullscreen mode. The autoit script is showing position data and has a stop and start button.

Is there a possiblity?

Thanks in advance

Daniel

Share this post


Link to post
Share on other sites
CodyBarrett

look into the GUIsetstyle() functions.. and guicreate() sections of the helpfile

Share this post


Link to post
Share on other sites
Yashied

Hi all,

I want my autoit gui to be allways on top, also in a game which is running in fullscreen mode. The autoit script is showing position data and has a stop and start button.

Is there a possiblity?

Thanks in advance

Daniel

Not sure, but I think that without DirectX here can not do.

Share this post


Link to post
Share on other sites
sias

I attempted to write a script that placed a small dot on the screen to help with aiming in certain games. Unfortunately it didn't work in most of the games I tried as the $WS_EX_TOPMOST does not seem to work in conjunction with full screen games. Regardless, here is the script I wrote if you want to see how it is done or mess around with it.

; Dot in center of screen, and "almost" always on top


#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

HotKeySet("{Escape}", "_dummy")
HotKeySet("^+Z", "_Exit")


$maingui =guicreate("dot", 3, 3, @desktopwidth/2-1.5, @desktopheight/2-1.5, BitOR($WS_POPUP, $WS_BORDER), BitOR($WS_EX_TOPMOST, $WS_EX_TOOLWINDOW))
guisetstate()
WinSetOnTop("dot", "", 1)
GUISetBkColor(0xffff33)

while 1
sleep(100)
WinSetOnTop("dot", "", 1)
$msg = guigetmsg()
Select
    Case $msg = $gui_event_close
        Exit
        EndSelect
WEnd
Func _dummy()
    ;dummy func
EndFunc
Func _Exit()
    Exit
EndFunc  ;==>_Exit

"The true measure of a man is how he treats someone who can do him absolutely no good."

Share this post


Link to post
Share on other sites
daniel02

Hi all,

yes it it a directx game. So is it possible to "forward" the auoit gui somehow into the directx game?

Thanks

Daniel

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  

×