Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

A one instance

For general discussion related FlowStone

Re: A one instance

Postby Shoo » Wed Jul 18, 2012 1:24 pm

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!
Shoo
 
Posts: 33
Joined: Fri Sep 02, 2011 8:37 am
Location: Russia

Re: A one instance

Postby Morph » Wed Jul 18, 2012 2:16 pm

Here is a finished module:
OneInstanceOnly.fsm
(729 Bytes) Downloaded 1077 times
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
Last edited by Morph on Wed Jul 18, 2012 5:58 pm, edited 1 time in total.
Morph
 
Posts: 53
Joined: Tue Jul 13, 2010 1:59 pm

Re: A one instance

Postby Shoo » Wed Jul 18, 2012 4:22 pm

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.)
Shoo
 
Posts: 33
Joined: Fri Sep 02, 2011 8:37 am
Location: Russia

Re: A one instance

Postby Morph » Wed Jul 18, 2012 6:03 pm

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.
Morph
 
Posts: 53
Joined: Tue Jul 13, 2010 1:59 pm

Re: A one instance

Postby Shoo » Wed Jul 18, 2012 9:11 pm

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.
Attachments
OneInstanceWithParser.zip
(36.66 KiB) Downloaded 1028 times
Shoo
 
Posts: 33
Joined: Fri Sep 02, 2011 8:37 am
Location: Russia

Re: A one instance

Postby Morph » Thu Jul 19, 2012 6:02 am

Good idea! Here is another solution for the parser that seems more stable. I think there's no need to rename tasklist.

OneInstanceOnly2.fsm
(3.36 KiB) Downloaded 1080 times

Now the module can just be dropped into a schematic and should work also when renaming the EXE.
Morph
 
Posts: 53
Joined: Tue Jul 13, 2010 1:59 pm

Re: A one instance

Postby Shoo » Thu Jul 19, 2012 7:17 pm

Yes, It's work. :)
Shoo
 
Posts: 33
Joined: Fri Sep 02, 2011 8:37 am
Location: Russia

Re: A one instance

Postby MyDogRamsey » Sun Aug 19, 2012 4:55 am

What you can't make a simple API call in Flowstone? The windows API has efficient means of controlling windows..
MyDogRamsey
 
Posts: 12
Joined: Fri Jan 06, 2012 7:29 am

Re: A one instance

Postby Shoo » Mon Aug 20, 2012 11:45 am

How make API call in Flowstone?
Example, please...

PS:
No Ruby.
Shoo
 
Posts: 33
Joined: Fri Sep 02, 2011 8:37 am
Location: Russia

Re: A one instance

Postby MyDogRamsey » Mon Aug 20, 2012 3:12 pm

Shoo wrote:How make API call in Flowstone?
Example, please...

PS:
No Ruby.

Yes, how do you make api calls? With Ruby I suppose?
MyDogRamsey
 
Posts: 12
Joined: Fri Jan 06, 2012 7:29 am

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 52 guests