Jump to content

Recommended Posts

Posted

I was wondering, is it possible to change the default class name in an AutoIt program to something other than "AutoIt v3 GUI", without modding AutoItSC.bin, and if there is no other option, how?

Posted

No, you can't change the class of an existing window, and changing the class before it is created requires access to the code do it. That part of the AutoIt binary is not accessible to the user.

:x

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Posted (edited)

Than you need to switch to a other code/language. Simple.

(Seems a other language was found, whiteout ditching AutoIt.)

Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Posted (edited)

I am quite aware of that option, I have C# and AutoIt versions of this app, but conveniently neither language supports custom window class names (and I lost the source for the C# version anyway...).

I had an idea though, would it be possible to make a GUI with windows API through autoit? The reason I need a custom class name is so I can emulate the windows live messenger window to capture 'now playing' song information from media players.

EDIT: why didnt I think of this before? _WinAPI_CreateWindowEx(), duh.

Edited by zeffy
Posted

EDIT: why didnt I think of this before? _WinAPI_CreateWindowEx(), duh.

Good catch. I actually reviewed the WinAPI.au3 functions in the help file for this topic, but was looking for changes to an existing window, and so scanned right past that.

:x

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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
×
×
  • Create New...