Jump to content
Sign in to follow this  
tom13

Random Window Title

Recommended Posts

tom13

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:

Share this post


Link to post
Share on other sites
tom13

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

Share this post


Link to post
Share on other sites
Uten

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

Share this post


Link to post
Share on other sites
tom13

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

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.