Jump to content

GuiCreate() optional class name?


Fur
 Share

Recommended Posts

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++ :lmao:

Cheers!

Roy

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 5 months later...

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 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]

Link to comment
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
 Share

  • Recently Browsing   0 members

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