Jump to content

Set window class of compiled script


Recommended Posts

An application I use has a very simplistic addon module interface. It looks for a window class with the same name as the module executable (including the .exe), and sends windows messages to it.

I would like to write a module using AutoIT, but I cannot figure out how to set the window class for the compiled script. It this even possible?

Thanks to anyone that can help.

Link to comment
Share on other sites

I don't think you can change the class of a window at run-time but you CAN set the class name.

Instead of using AutoIt's built-in function GUICreate you could use the UDF _WinAPI_CreateWindowEx which allows you to set, among other things, the class of the main GUI.

Check out the MSDN entry for detailed information:

http://msdn.microsoft.com/en-us/library/ms632680(VS.85).aspx

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