Jump to content

Is it possible to Embedded a .exe such as a game?


Recommended Posts

Untested:

#Include <WindowsConstants.au3>
#include <WinAPI.au3>
#Include <Constants.au3>
$hGUI = GUICreate("Test", 500, 500)
GUISetState()
Run("Path to game here.exe");Change the path to your EXE
Sleep(2000);Just to make sure the game is open
$hHandle = WinGetHandle("TItle of game window")
_WinAPI_SetWindowLong($hHandle, $GWL_STYLE, BitOr($WS_POPUP, $WS_VISIBLE))
_WinAPI_SetParent($hHandle, $hGUI)
Do
    Sleep(200)
Until GUIGetMsg() = -3
Link to comment
Share on other sites

No I didn't ill try that.

I changed the title. it didnt work

kwarizmi posted here a nice embedding of a cmd.exe. Try it, maybe it'll help for you :)

dworldI'm new in autoit, but I like it. My mind is open to the new things.

Link to comment
Share on other sites

Don't you just mean, writing a script that INCLUDES the game executable?

Try looking up FileInstall() - it will put the installed file into your compiled script and unpack it to a location of your choice when you run the exe.

Roses are FF0000, violets are 0000FF... All my base are belong to you.

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