Walrus Posted April 16, 2015 Share Posted April 16, 2015 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 More sharing options...
SadBunny Posted April 16, 2015 Share Posted April 16, 2015 Can you show a reproducer? (A short example of code that shows what you try and what is not working?) Because this: run("notepad.exe") run("notepad.exe") ... starts two notepads just fine. Walrus 1 Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
Walrus Posted April 16, 2015 Author Share Posted April 16, 2015 (edited) 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 April 16, 2015 by Walrus Link to comment Share on other sites More sharing options...
MikahS Posted April 16, 2015 Share Posted April 16, 2015 Do you by chance have this: _Singleton() in your code? As, this will only allow 1 instance of a script to run. Walrus 1 Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy 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 More sharing options...
caramen Posted April 16, 2015 Share Posted April 16, 2015 (edited) 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 April 16, 2015 by caramen Walrus 1 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 - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Walrus Posted April 16, 2015 Author Share Posted April 16, 2015 Ok, i tried it on another pc with admin permissions and all ways are good, thank you for help, all is working fine @caramen Now it's working. Link to comment Share on other sites More sharing options...
caramen Posted April 17, 2015 Share Posted April 17, 2015 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 - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now