Jump to content
Sign in to follow this  
willichan

Set window class of compiled script

Recommended Posts

willichan

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.

Share this post


Link to post
Share on other sites
ACS

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

Share this post


Link to post
Share on other sites
willichan

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.