Jump to content
Sign in to follow this  
slideawayz

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

Recommended Posts

slideawayz

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

Share this post


Link to post
Share on other sites
nfaustin

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]

Share this post


Link to post
Share on other sites
slideawayz

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 :)

Share this post


Link to post
Share on other sites
nfaustin

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]

Share this post


Link to post
Share on other sites
Melba23

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


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
nfaustin

Ok.

Try read this if it would help you.


[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]

Share this post


Link to post
Share on other sites
BrettF

Share this post


Link to post
Share on other sites
slideawayz

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

Share this post


Link to post
Share on other sites
jvanegmond

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.

Share this post


Link to post
Share on other sites
Melba23

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

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
slideawayz

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 :)

Share this post


Link to post
Share on other sites
Fend

I would be interested to look at your nostale bot code...I have spent some time writing code for nostale.


I like cookies?

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.