Jump to content

Button to launch


VicToMeyeZR
 Share

Recommended Posts

yes..

 

System_ ("MyExternalExe.Exe")

 

or better use this..first type in

 

Extern "Win32"
Function WinExec (lpCmdLine:Byte Ptr, nCmdShow:Int)
End Extern

 

and then just do this

WinExec("MyExternalExe.exe",10) 

 

and thats it..or if you need cross platform compatibility, you can do this

openurl("MyExternalExe.exe")

 

Link to comment
Share on other sites

or when you want wait to end of executed program, try this:

 

...
'Execute application
	Local process:TProcess = CreateProcess(app)
	Repeat
		Local error:String = process.err.ReadLine()
		If error <> "" Then
			Notify error
		EndIf
		If process.Status() = 0 Then Exit
	Forever

...

 

Where app is path/name of exec. program.

[HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64

[sW] Blide Plus, BlitzMax, Delphi, C++, 3DWS 5.53, Leadwerks 2.xx

 

76561197970156808.pngAndyGFX.png

Link to comment
Share on other sites

Thanks guys.. Finally getting the swing of BMX.. Its not as bad as I thought..

 

Building a game patcher with it, and so far its been pretty impressive.

 

 

openURL() to open a program. Thats just funny. lol :)

AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD

76561197984667096.png

Link to comment
Share on other sites

 

Building a game patcher with it, and so far its been pretty impressive.

 

I just noticed that didn't come out right. I meant BM, not my program. lol.

 

I still kind of suck at it, but with all the libraries, it's pretty easy to build simple applications like this.

AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD

76561197984667096.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...