Jump to content

Recommended Posts

Posted

Hi,
i am looking for an automatism that runs a script that changes the title of a process window, to see if it is a 32- or 64-bit process:

For example:

Run calc.exe from %systemroot%system32calc.exe -> Change title to "Rechner (64)"

Run calc.exe from %systemroot%syswow64calc.exe -> Change title to "Rechner (32)"

For command Windows, there is a Registrykey "HKEY_CURRENT_USERSoftwareMicrosoftCommand ProcessorAutorun".
Each command window that is opened processes this key.
You can provide this key with a command file to do things like show if command is opened in admin or noadmin-mode.

An Adaptation to 32/64 mode for all process Windows would be great.

Any ideas to do this in Autoit?


 

Posted

Have you tried at all to code this?

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Posted (edited)

Not yet, but earlier I wrote a script that changes window titles, that's not the problem.
Taking wmi or other tools to enumerate processes doesnot show architecture Information of the process.
I think you have to use Windows api calls (IsWow64Process) http://msdn.microsoft.com/en-us/library/windows/desktop/ms684139%28v=vs.85%29.aspx
I would like to take VBScript (AutoitX) to do that, if possible.
But I don't have any plan how to realize an process-autorun function.

Operating System does not provide any function for this.
An idea is to take a wmi eventhandler .ExecNotificationQueryAsync.
I have some working VBScripts anywhere.
 

Before I begin, theory should be full ...

Coding Enhancement for Command Windows exists, this is only a little .cmd, without Autoit.

Edited by MZXPTLK
Posted

In the help file there is a Win32 function which states if a PID is a 64-bit process.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Posted

For the record, I wasn't in a position to easily search the help file or website, otherwise I would have provided the function straight away.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...