Running 2 scripts at the same time.

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
EnderFFX
Pro Scripter
Posts: 92
Joined: Mon Mar 08, 2004 6:17 am

Running 2 scripts at the same time.

Post by EnderFFX » Wed Jul 23, 2008 4:42 pm

Is this possible? I want to run one script that only gathers data and saves that data to a databse.

The second script will run logic and control mouse movements.

Is this possible? Is it possible to save data from the first script to a location that the second script could instantly grab it? (not the database, but somewhere quicker)

Thank you!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Jul 23, 2008 5:57 pm

Yes. The best way is probably to compile them both to EXEs. Only one will be able to simulate a user (send mouse events, keyboard events etc). You will have a nightmare on your hands if both try to do that. You could use a text file, ini file, or registry for transferring data between them.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

EnderFFX
Pro Scripter
Posts: 92
Joined: Mon Mar 08, 2004 6:17 am

Post by EnderFFX » Wed Jul 23, 2008 6:21 pm

mtettmar wrote:Yes. The best way is probably to compile them both to EXEs. Only one will be able to simulate a user (send mouse events, keyboard events etc). You will have a nightmare on your hands if both try to do that. You could use a text file, ini file, or registry for transferring data between them.
I knew two problems simulating output would be horrible unless there was a way to parallel program it. (pass control back and forth and have one of the other lock out while one is paused)

That would be way too much of a nightmare. :)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts