zeffy Posted December 16, 2010 Share Posted December 16, 2010 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? Link to comment Share on other sites More sharing options...
PsaltyDS Posted December 16, 2010 Share Posted December 16, 2010 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. 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 Link to comment Share on other sites More sharing options...
zeffy Posted December 17, 2010 Author Share Posted December 17, 2010 That's lame :| I need to be able to change the class name for the project I'm working on. Link to comment Share on other sites More sharing options...
MvGulik Posted December 17, 2010 Share Posted December 17, 2010 (edited) Than you need to switch to a other code/language. Simple.(Seems a other language was found, whiteout ditching AutoIt.) Edited December 17, 2010 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 ... Link to comment Share on other sites More sharing options...
zeffy Posted December 17, 2010 Author Share Posted December 17, 2010 (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 December 17, 2010 by zeffy Link to comment Share on other sites More sharing options...
PsaltyDS Posted December 17, 2010 Share Posted December 17, 2010 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. 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 Link to comment Share on other sites More sharing options...
James Posted December 17, 2010 Share Posted December 17, 2010 Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ 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