OpenProcess?

BlitzMax Forums/BlitzMax Programming/OpenProcess?

plash(Posted 2006) [#1]
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?


splinux(Posted 2006) [#2]
Are you importing pub.freeprocess?
Is that lib what you mean?


plash(Posted 2006) [#3]
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?


splinux(Posted 2006) [#4]
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.


plash(Posted 2006) [#5]
How can I get the functions in the freeprocess module to have syntax highlighting?


splinux(Posted 2006) [#6]
I don't know.
It should highlight all module functions, but it doesn't work to me too.
Maybe try to rebuild modules.


plash(Posted 2006) [#7]
Tried that already :(


splinux(Posted 2006) [#8]
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.


tonyg(Posted 2006) [#9]
Add them to <install>\doc\bmxmods\commands.txt?


splinux(Posted 2006) [#10]
Yes, it works.
Thanks.


plash(Posted 2006) [#11]
Thanks tony.


kfprimm(Posted 2006) [#12]
http://www.blitzbasic.com/Community/posts.php?topic=53709