Jump to content

Run same script some times.


Recommended Posts

Hi, is there a way to run the same script for example 2 times at the same time?

I mean run script example.exe second time when script is already open (by AutoIt function)

So, for example i'm having 2 scripts:

manager.exe (au3)

script.exe (au3)

In manager.exe i'm having button "Start" with function Run("script.exe") and this is working, but only for one script at same time.

Sorry for my english,

Walrus.

Link to comment
Share on other sites

Func Start()

    run("script.exe")

EndFunc

It it running only 1 script.exe (i'm pressing startbutton 10+times)

Maybe i need open it with admin permissions, can i do it in autoit? Or just #RequireAdmin keyword in script.exe?

Edited by Walrus
Link to comment
Share on other sites

Do you by chance have this:

_Singleton()

in your code? As, this will only allow 1 instance of a script to run.

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

You can try this and say me if that work:

Func Start()

    run("script.exe"&" /separate")

EndFunc

This is a windows atribut to run a process on a separate process ID this allow to use different user for the same process. It depend witch kind of process you try to run together with same name.

For exemple if you try this with "Explorer.exe"

You'll have the permition to run Multiple explorer.exe instance. only if you use the "/separate" atribut. Give me feedback plz

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

So plz mark your topic solved :) thx bye

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...