Jump to content

gui allways on top also in fullscreen game


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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."

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...