lopolop Posted August 15, 2006 Share Posted August 15, 2006 anyone have any idea on how to rename the Autoit3.exe process? I wanted to make it like A random 5 letters. Link to comment Share on other sites More sharing options...
SlimShady Posted August 15, 2006 Share Posted August 15, 2006 That's so evil. Link to comment Share on other sites More sharing options...
lopolop Posted August 15, 2006 Author Share Posted August 15, 2006 (edited) uh... no its not for a evil purpose at all im making something for a game and its been said that the game searches Window Titles and Processes.. so why not rename it? Edited August 15, 2006 by lopolop Link to comment Share on other sites More sharing options...
azeazezar Posted August 15, 2006 Share Posted August 15, 2006 just compile it ^^ Link to comment Share on other sites More sharing options...
lopolop Posted August 15, 2006 Author Share Posted August 15, 2006 what u mean? Link to comment Share on other sites More sharing options...
CoePSX Posted August 15, 2006 Share Posted August 15, 2006 Assuming it's compiled with the name of Script.exe This will copy the compiled exe to a random 5 letters name in the same folder, and run it. $OriginalName = "Script.exe" If StringRight(@AutoItExe, 10) = $OriginalName Then $Name = @ScriptDir & "\" For $i = 1 To 5 ;<-- number of letters $Name &= Chr(Random(97, 122, 1)) Next $Name &= ".exe" FileCopy(@AutoItExe, $Name, 1) Run($Name) Else ;;Do stuff to do here! EndIf It's not process renaming, but it does what you want. [quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"]╔══════════════════════════════╗║░░██░░░░░░░░██░░███░░░████░░░█║║░█░░█░░██░░█░░█░█░░█░█░░░░█░█░║║░█░░░░█░░█░████░███░░░██░░░█░░║║░█░░█░█░░█░█░░░░█░░░░░░░█░█░█░║║░░██░░░██░░░██░░█░░░░███░█░░░█║╚══════════════════════════════╝[/font] Link to comment Share on other sites More sharing options...
kjmarket Posted August 15, 2006 Share Posted August 15, 2006 Once you compile a script to an exe, the process shows up named whatever the executable is named. So if you named it iexplore.exe, it would show up as iexplore. Pink Floyd - The Wall Link to comment Share on other sites More sharing options...
lopolop Posted August 15, 2006 Author Share Posted August 15, 2006 (edited) ok ic thanks alot! But would i be able to do this at the start of my script then Delete the Original so it wont keep creating and creating every time it is ran.. Edited August 15, 2006 by lopolop Link to comment Share on other sites More sharing options...
lopolop Posted August 18, 2006 Author Share Posted August 18, 2006 (edited) im having a problem with this... Shouldn't this work with a compiled autoit script? But for some reason it opens up a Run Dialog thing with only being able to choose Au3 files, but when i check the settings.ini it shows the File as The original name .au3 and not .exe $ProcName = IniRead("Settings.ini", "Settings", "ProcName", "") $ProcState = IniRead("Settings.ini", "Settings", "ProcState", "") If $ProcessChange = 1 Then If $ProcState = 1 Then IniWrite("Settings.ini", "Settings", "ProcState", "0") If FileExists($ProcName) Then FileDelete($ProcName) Else $Name = @ScriptDir & "\" For $i = 1 To 5 $Name &= Chr(Random(97, 122, 1)) Next $Name &= ".exe" FileCopy(@AutoItExe, $Name, 1) $ScriptName = @ScriptName IniWrite("Settings.ini", "Settings", "ProcName", $ScriptName) IniWrite("Settings.ini", "Settings", "ProcState", "1") Run($Name) Exit EndIf EndIf [EDIT] i found out the problem.. I had a restart button when you set the program to change the process and that was set au3... So all is working well Edited August 18, 2006 by lopolop 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