Guest AX5 Posted December 24, 2009 Share Posted December 24, 2009 (edited) Hi i made a simpel starter 4 a game but when i start it i get buggs and the game dosent showe Loggin windows.:Print Screens:.1.2.3.4.#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_icon=..\..\..\..\Desktop\blue.ico #AutoIt3Wrapper_outfile=Start Hero Online.exe #AutoIt3Wrapper_Res_Description=Nexxozsoft #AutoIt3Wrapper_Res_Fileversion=0.9.0.0 #AutoIt3Wrapper_Res_LegalCopyright=Nexxozsoft #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Hero Online Starter", 220, 148, 278, 165) $Button1 = GUICtrlCreateButton("Start", 118, 100, 94, 40) $Label1 = GUICtrlCreateLabel("ero Online.", 32, 35, 162, 43) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 Run("C:\Netgame\Hero_Online\Hero.exe !TianDiHuangLauncher~#") EndSwitch WEnd Edited December 24, 2009 by AX5 Link to comment Share on other sites More sharing options...
james3mg Posted December 24, 2009 Share Posted December 24, 2009 It seems to be a problem with the program you're launching, not your script. Your script is basic enough, and seems to be all right. Check the switches you're using to launch the external program to make sure they're correct. Also, you may want to consider exiting your script after it launches the game. "There are 10 types of people in this world - those who can read binary, and those who can't.""We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true." ~Robert Wilensky0101101 1001010 1100001 1101101 1100101 1110011 0110011 1001101 10001110000101 0000111 0001000 0001110 0001101 0010010 1010110 0100001 1101110 Link to comment Share on other sites More sharing options...
Guest AX5 Posted December 25, 2009 Share Posted December 25, 2009 The same thing happens Link to comment Share on other sites More sharing options...
bogQ Posted December 25, 2009 Share Posted December 25, 2009 (edited) Do ShellExecute ( "C:\Netgame\Hero_Online\Hero.exe" , "! TianDiHuangLauncher ~#" , "C:\Netgame\Hero_Online\" , "open" ) work? This part i dono if its correct, try "~#" " ~ #" "~ #" " ~#" did you try to see if you can start shortcut directly? Edited December 25, 2009 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
Fire Posted December 25, 2009 Share Posted December 25, 2009 Try execute it : Run("cmd.exe /c C:\Netgame\Hero_Online\Hero.exe " & "!TianDiHuangLauncher~#","",@SW_HIDE) [size="5"] [/size] Link to comment Share on other sites More sharing options...
Guest AX5 Posted December 26, 2009 Share Posted December 26, 2009 Problem Fixed Thanks all Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 26, 2009 Share Posted December 26, 2009 The game probably need the working dir set! See the second parameter for Run(). .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now