As you have noticed, there is another exe: XHEManager in program root version 4.0.12. With the help of scripts the execution in multithreaded mode can be greatly simplified. Despite the fact that the Manager can copy the folder with the program by special option from the File menu, there is more economical and simple way, which will be described below.
Let's start with the preparation of the script. Find (or add to the right script top, if that line isn’t exists) variable “$xhe_host ="127.0.0.1:7010" ”; for script running without any problems, you need to replace the port in that line to a variable "$argv[1]”.
This line will look like this: “$xhe_host ="127.0.0.1:".$argv[1]”; If it is planned to use the restart at the script ($app-> restart), then the variable “$ argv [1]” also should be replaced with the arguments “$params” and “$ port”. That is, the function will look like this: “$app-> restart($scriptpath ="",$argv [1], $argv [1])”;
The results of our manipulations allow passing to the script all the necessary for the work data, so it only needs to add the task through the manager. It is needed to check the program path at menu "Add", to point the script path and to set the port number at line "Port". Quantity of desired threads can be determined by clicking on the appropriate check mark.
After all done, you can start the flows you need, separating them by “ctrl” and click the button "Run". Manager will open the needed number of program copies in turn and will train scripts.
The pause time between starting the program copies can be set in Preferences.- The button "Stop all" closes all running the Emulator copies, but don’t stop the work of their scripts.
- You can learn more about the purpose of a button from the pop reference, if you stop the cursor on it.