Page 2 of 3
Re: A one instance
Posted: Wed Jul 18, 2012 1:24 pm
by Shoo
Morph wrote:The TaskList command can make a list of instances of a given program. Then compare if the lines of text exceeds more than that of one program then kill the process. I can build example if needed.
Yes! An example is a best help!
DSP wrote:Another idea would be to setup inter application communication using UDP and the network modules.
This is a very interesting idea! But I am weak in the networks, and therefore need an example. Please!
Re: A one instance
Posted: Wed Jul 18, 2012 2:16 pm
by Morph
Here is a finished module:
It uses tasklist that comes with Windows Vista or later.
For Windows XP or older be sure you have tasklist.exe in your system32 folder. It can be downloaded here:
http://www.computerhope.com/download/winxp.htm
Re: A one instance
Posted: Wed Jul 18, 2012 4:22 pm
by Shoo
A nice tool!
I did not have it, and I do not know about it. I download it. Thank you!
But the example does not work. Do not start even the first instance.
After compiling in a FlowStone (Launch on completion) - OK, and standalone Example.exe - is not run (your message).
I deleted the tasklist.txt temp file - do not start anyway.
But the idea is understandable, I debug it myself.
Thank you!
(Sorry this is a Google translate text.)
Re: A one instance
Posted: Wed Jul 18, 2012 6:03 pm
by Morph
Yes, i forgot the list of module .dll files depends on the OS, so it can not be compared like that. But using a combination of find and find reversed seems to work. I have updated the file above, try download it again.
Re: A one instance
Posted: Wed Jul 18, 2012 9:11 pm
by Shoo
Yes, this time I was engaged in the same
I was able to automatically detect the application name.
You can rename an application, but it still identifies itself.
I renamed tasklist.exe, because the parser is tuned up strictly to it's format of output; with the other versions may be not work.
Re: A one instance
Posted: Thu Jul 19, 2012 6:02 am
by Morph
Good idea! Here is another solution for the parser that seems more stable. I think there's no need to rename tasklist.
Now the module can just be dropped into a schematic and should work also when renaming the EXE.
Re: A one instance
Posted: Thu Jul 19, 2012 7:17 pm
by Shoo
Yes, It's work.

Re: A one instance
Posted: Sun Aug 19, 2012 4:55 am
by MyDogRamsey
What you can't make a simple API call in Flowstone? The windows API has efficient means of controlling windows..
Re: A one instance
Posted: Mon Aug 20, 2012 11:45 am
by Shoo
How make API call in Flowstone?
Example, please...
PS:
No Ruby.
Re: A one instance
Posted: Mon Aug 20, 2012 3:12 pm
by MyDogRamsey
Shoo wrote:How make API call in Flowstone?
Example, please...
PS:
No Ruby.
Yes, how do you make api calls? With Ruby I suppose?