Jump to content

Recommended Posts

Posted

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

Posted

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?

Posted

Hey, I dunno! You guys are always pulling off miracles around here! Didn't think it would hurt to ask :lmao:

Posted

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.

Posted

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.

  • 5 months later...
Posted (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 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]

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