User Tag List

Results 1 to 2 of 2

Thread: How do I get the Window 'Type'

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Apr 2008
    Posts
    144
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    How do I get the Window 'Type'

    Hi all, I am attempting to get the 'type' of an open window. Specifically, if the window is a 'file explorer' window or not.

    I have managed to get the windows titles using the 'Windows Foreground Object' but I cant find anyway of detecting if the window is just a regular window (program) or one that belongs to the explorer.exe family.(File explorer)

    What is more, there doesn't seem to be anyway of determining the difference from the title alone as the titles of a File Explorer window are automatically assigned by Windows as the name of the current directory. Eg c:/myDirectory window would have the title 'myDirectory'.

    Is there any way I can do this? I looked at the Kernel object and the possibility of executing some message in the console but I cant figure any of it out.

    Hopefully someone can help!

    Thanks

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Apr 2008
    Posts
    144
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Okay. I used a little app called WinLister which displays all the classes of my windows. It seems that the class of all File Explorer windows is 'CabinetWClass'

    Although reaching this point was a miracle, from that point on it was quite easy.

    I used the 'Get And Set Window' extension to just check if the class of the forefront window matched 'CabinetWClass'. If it does then I know that this particular window an explorer window. Unfortunatley you seem to have to set it to the forefront to make the check but in my case this wasn't an issue.

    Hoorah.

Similar Threads

  1. xcode error: type = value->type;
    By Youthinkasido in forum Fusion 2.5
    Replies: 1
    Last Post: 1st April 2017, 10:02 PM
  2. Replies: 17
    Last Post: 25th April 2015, 04:40 PM
  3. Replies: 2
    Last Post: 9th October 2013, 05:26 AM
  4. How to make one type of enemy faster than another type?
    By Bittergamer1886 in forum Multimedia Fusion 2 - Technical Support
    Replies: 22
    Last Post: 11th May 2012, 04:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •