Jump to content

Random Window Title


 Share

Recommended Posts

Hey,

I've recently started with AutoIT and I have to admit that it's very nice :(

At the moment I'm looking for a way to let my AutoIt script change it's title and process name automatically, but I couldn't find an answer. Can you help me?

If that's not possible, then something like this would be good too:

1. open script

2. duplicate script and assign it a random name

3. start new, duplicated script

4. quit current script

Thanks in advance :shocked:

Link to comment
Share on other sites

I made this:

$OriginalName = "AutoIt3.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
MsgBox(16, "Hello", "it should not show AutoIt3.exe now!")
EndIf

But it doesn't works, i'm doing something wrong?

The name of my script is script.au3 by the way

Link to comment
Share on other sites

:( Give me one good reason you want to do this?

It's stupid to write pranks like this! Even worse when you have to ask people to do it for you. Try to build your skills with some constructive work rather than dumb stuff like this. :shocked:

Codeplan (although stupid in it's simplisity) for a self modifying virus

1. open script

2. duplicate script and assign it a random name

3. start new, duplicated script

4. quit current script

Link to comment
Share on other sites

:( Give me one good reason you want to do this?

It's stupid to write pranks like this! Even worse when you have to ask people to do it for you. Try to build your skills with some constructive work rather than dumb stuff like this. :shocked:

Codeplan (although stupid in it's simplisity) for a self modifying virus

Lol no, it's to bypass a game's detection methods against some bot i'm trying to make

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