Custom PureBasic Window Class names instead of WindowClass_1
Posted: Wed Aug 08, 2007 5:55 pm
This may or may not be a silly idea, I'm no expert (sadly) and it is somewhat windows spesific so...
Fred any chance of letting us define a custom name for the window class
rather than WindowClass_1 ?
Several programs use the windowclass to find a program.
Like for example a shoutcast player I made, and trying to get the thing to work with Foxytunes (plugin for Firefox that fetches title etc and uses windowclass name to fetch it)
Unfortunately all PureBasic programs has WindowClass_1
so a reminder/notes program I got is mistaken for the player, etc etc.
The really cool thing with window classes is they are supposedly unique within the system.
And one could for example (from a external program) use FindWindow_("MyProgramClassName",#Null)
to fetch the handle to the programs main window.
Maybe a function like this could be added?
SetDefaultWindowClassName("MyProgramClassName")
Which PB would use when it does it's RegisterClass stuff later.
At the very least use something else than WindowClass_1
use PureBasic_1 or similar for some stealth promoting
Fred any chance of letting us define a custom name for the window class
rather than WindowClass_1 ?
Several programs use the windowclass to find a program.
Like for example a shoutcast player I made, and trying to get the thing to work with Foxytunes (plugin for Firefox that fetches title etc and uses windowclass name to fetch it)
Unfortunately all PureBasic programs has WindowClass_1
so a reminder/notes program I got is mistaken for the player, etc etc.
The really cool thing with window classes is they are supposedly unique within the system.
And one could for example (from a external program) use FindWindow_("MyProgramClassName",#Null)
to fetch the handle to the programs main window.
Maybe a function like this could be added?
SetDefaultWindowClassName("MyProgramClassName")
Which PB would use when it does it's RegisterClass stuff later.
At the very least use something else than WindowClass_1
use PureBasic_1 or similar for some stealth promoting
