Fur Posted January 27, 2006 Posted January 27, 2006 Every window made with AutoIt GUI has a class name of "AutoIt V3 GUI" I'd like to be able to somehow pass in a class name rather than always having to use the default. Are there any plans for such a thing? If I have to call RegisterClassEx() and CreateWindowEx() by hand I might as well just write my app in C++ Cheers! Roy
Valik Posted January 28, 2006 Posted January 28, 2006 Well, if you are capable enough to write it in C++, you should know that the answer to your question is no and why it wouldn't work like you wanted even if you could change the class name to something else. For example, where is the WindowProc going to come from?
Fur Posted January 30, 2006 Author Posted January 30, 2006 Hey, I dunno! You guys are always pulling off miracles around here! Didn't think it would hurt to ask
Jamal Mazrui Posted February 1, 2006 Posted February 1, 2006 I haven't tried this, but you might be able to use DllCall with the CreateWindowEx API function, using Null values for some parameters or building structures as needed with DllStructCreate. ☺
Valik Posted February 3, 2006 Posted February 3, 2006 I haven't tried this, but you might be able to use DllCall with the CreateWindowEx API function, using Null values for some parameters or building structures as needed with DllStructCreate.☺See my post above for hurdle #1.Fur, upon further reflection, it really wouldn't be hard to allow a user-defined string to be the class name but I see no legitimate purpose in adding this functionality. What is the reason you would like to see this feature implemented? Does it really matter what the class string is? Nobody ever sees it except somebody looking for it. Putting the obviousness of the previous sentence aside, what I mean is that the I don't really see how changing the class name is all that useful since it has no noticeable impact to anybody except the author of the script.
Sardith Posted July 15, 2006 Posted July 15, 2006 (edited) A Legitimate purpose, in my case would be for Anti-Spyware, some pick up the class name "Autoitv3" as a trojan, also in my case; Punkbuster and certin anti-hacks look at classname, then detect it as a hack. There are more, if some come to mind i'll be happy to edit my post. Jeff Edited July 15, 2006 by Sardith [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]
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