Jump to content

how to make script that when run it will become 2 process


Recommended Posts

i saw some program that when i run it, it will exact to 2 process.

example

i have script name "robot.exe"

when i run it, i see "attack.exe" and "loot.exe" in task manager

how i do this in autoit, i would really appreciate some help

Thank you :)

ps.sorry for my bad english

Link to comment
Share on other sites

Just run the exe if you have other exe to run, like:

Run("name.exe")

[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]
Link to comment
Share on other sites

Just run the exe if you have other exe to run, like:

Run("name.exe")

thank you , nfaustin

but like some script i see it have only 1 script in directory but when run it become 2 or 3

i want to make script like this becuase i go to public my nostale bot, but it wouldn't cool if it has many exe in directory :)

Link to comment
Share on other sites

i want to make script like this becuase i go to public my nostale bot, but it wouldn't cool if it has many exe in directory :)

I don't get your point here..

[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]
Link to comment
Share on other sites

  • Moderators

slideawayz,

One simple method to achieve what you want is to use FileInstall().

Create your 2 .exe files using separate scripts. Then create a third script and FileInstall the 2 .exe files. Your third script will be able to extract these .exes, run them and then exit.

Voila - 2 processes created by a single script (and a bit of lateral thought!)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Link to comment
Share on other sites

Ok.

Try read this if it would help you.

i had tried this udf but it doesnt work

here is my script

test.exe

#AutoIt3Wrapper_useupx=n
#AutoIt3Wrapper_run_after=C:\ResHacker.exe -add %out%, %out%, file1.exe, rcdata, TEST_BIN_1, 0
#AutoIt3Wrapper_run_after=upx.exe --best --compress-resources=0 "%out%"

#include "res.au3"
 
_ResourceSaveToFile("C:\file1.exe", "TEST_BIN_1", 0, 0, 1)

file1.exe

while 1
tooltip("I love you",0,0)
sleep(1000)
wend

when I run "test.exe" it execute "file1.exe" instead of copy it to C:/

Edited by slideawayz
Link to comment
Share on other sites

slideawayz, you can't have one process have multiple names. What it probably does is mentioned above, it writes a new process and then launches that. This is, for simple projects, never required. You shouldn't be doing this in multiple processes, just learn to code everything in one script. And while you are it, learn to type English.

Link to comment
Share on other sites

  • Moderators

slideawayz,

And your example does work if you use the correct datatype (because I have just tried it!):

#AutoIt3Wrapper_run_after=C:\ResHacker.exe -add %out%, %out%, file1.exe, rcdata, TEST_BIN_1, 0

_ResourceSaveToFile("C:\file1.exe", "TEST_BIN_1", 10) ; $RT_RCDATA = 10

M23

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

slideawayz,

And your example does work if you use the correct datatype (because I have just tried it!):

#AutoIt3Wrapper_run_after=C:\ResHacker.exe -add %out%, %out%, file1.exe, rcdata, TEST_BIN_1, 0

_ResourceSaveToFile("C:\file1.exe", "TEST_BIN_1", 10) ; $RT_RCDATA = 10

M23

Thank you, Melba23

I got it to working now

Thank you to all of you for helping me :)

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...