Sign in to follow this  
Followers 0
Arcix

GUI Layered Windows

10 posts in this topic

I am trying to make a GUI window that will always appear in front, and that is layered, so that while playing a game, you are able to see it in a corner. I have experimented with some of the GUI exStyles, but none of them seem to give me what I want, and there is really no explanation on a lot of them. If somebody can give me a push in the right direction, perhaps by explaining what $WS_EX_LAYERED does exactly, it would be greatly appreciated.

Share this post


Link to post
Share on other sites



did you see

winSetOnTop()

in help

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

did you see

winSetOnTop()

in help

8)

Thx it seems to work =D The window allways stays in the front. However... I still can't get it to display at the same time as my game is displaying. That's why I was wondering if there was some way to layer the window in order to make is see-able while a game is active.

Share this post


Link to post
Share on other sites

there are many games that wont allow other windows on top and ... others that wont allow autoit to run as a game-bot

that seems to be happening more and more

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

I know that something like this works for the game I am talking about, because I have seen it done. It is not autoit, but I also know that autoit scripts are not blocked because I tried a simple send key script and it worked. =/

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

are we going to guess all day...

or are you going to tell us what game ( online or not )

and show us what you have so far in scripting... so we can help you

?????

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

Sorry ^^ I am talking about Gunbound:WC (http://www.softnyx.net), and it is an online game. I want to make a pixel bot, but so far, I have not made any of the pixel functions, and am just trying to get this layered window thing to work so I can have some sort of interface to interact act with while in game. So, the code I have so far is something like:

#include <GUIConstants.au3>

GUICreate("Window", 200, 100)

$Label = GUICtrlCreateLabel("Just a window",10,10)

GUISetState(@SW_SHOW)

WinSetOnTop("Window","",1)

While 1

$msg = GUIGetMsg()

WEnd

Share this post


Link to post
Share on other sites

many times people who use/make game bots utilize

HotKeySet()

the is no GUI over the game screen, however, the "keys" do the function in the game

i will see if i can get your gui--onTop

you look/search help for HotKeySet()

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

yea... it goes on top to start.... but i cant get into a game ( not a member )

#include <GUIConstants.au3>

$file_name = "http://www.softnyx.net"
Run(@ComSpec & " /c Start " & $file_name, "", @SW_HIDE)

Sleep(2000); wait for window

GUICreate("Window", 200, 100)
$Label = GUICtrlCreateLabel("Just a window", 10, 10)
GUISetState(@SW_SHOW)

WinSetOnTop("Window", "", 1)

While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then Exit
    
WEnd

you can make the internet explorer an "imbeded Object" see help search for more info

#include <GUIConstants.au3>
; Simple example: Embedding an Internet Explorer Object inside an AutoIt GUI
;
; The full example is available in the test\ActiveX directory (TestXInternet.au3)
;
; See also: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/objects/internetexplorer.asp

$oIE = ObjCreate("Shell.Explorer.2")

; Create a simple GUI for our output
GUICreate ( "Embedded Web control Test", 640, 580,(@DesktopWidth-640)/2, (@DesktopHeight-580)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUIActiveX      = GUICtrlCreateObj   ( $oIE,     10, 40 , 600 , 360 )
$GUI_Button_Back    = GuiCtrlCreateButton   ("Back",     10, 420, 100,  30)
$GUI_Button_Forward = GuiCtrlCreateButton   ("Forward", 120, 420, 100,  30)
$GUI_Button_Home    = GuiCtrlCreateButton   ("Home",    230, 420, 100,  30)
$GUI_Button_Stop    = GuiCtrlCreateButton   ("Stop",    330, 420, 100,  30)

GUISetState ()    ;Show GUI

$oIE.navigate("http://www.autoitscript.com")

; Waiting for user to close the window
While 1
    $msg = GUIGetMsg()
    
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $GUI_Button_Home
            $oIE.navigate("http://www.autoitscript.com")
        Case $msg = $GUI_Button_Back
            $oIE.GoBack
        Case $msg = $GUI_Button_Forward
            $oIE.GoForward
        Case $msg = $GUI_Button_Stop
            $oIE.Stop
    EndSelect
    
Wend

GUIDelete ()

Exit

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Oops, I think I led you on the wrong track when I gave you the link to the website. The game itself is actually a downloadable client, and is not an applet on that website. I just gave that site as a source of some information about the game. Sorry that I am taking up so much of your time with this >.<

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