OpenProcess?
BlitzMax Forums/BlitzMax Programming/OpenProcess?
| ||
I've searched on Google, tried OpenProcess and CreateProcess, but they don't seem to exist anymore.. Are those functions just not supported anymore? Or is it something completely different for executing another program? |
| ||
Are you importing pub.freeprocess? Is that lib what you mean? |
| ||
I guess so, can you give me an example of using it? EDIT: I got this so far.. Strict Framework Brl.Blitz Import PUB.FreeProcess Local Proc:TProcess = TProcess.Create("C:\WINDOWS\System32\mspaint.exe", 0) Delay 6000 Proc.Terminate() End How about sending and receiving data between two blitzmax programs? |
| ||
Have a look at the TProcess type. There are 2 streams which you can use as pipes between the 2 programs, eg: you can write and read from the called process' input and output streams. |
| ||
How can I get the functions in the freeprocess module to have syntax highlighting? |
| ||
I don't know. It should highlight all module functions, but it doesn't work to me too. Maybe try to rebuild modules. |
| ||
Tried that already :( |
| ||
I think it's a bug with the ide, because i think i've read somewhere that having the module it's commands are highlighted. Or maybe the ide highlights only commands which are documented. |
| ||
Add them to <install>\doc\bmxmods\commands.txt? |
| ||
Yes, it works. Thanks. |
| ||
Thanks tony. |
| ||
http://www.blitzbasic.com/Community/posts.php?topic=53709 |