10-11-2018, 02:44 PM
Realise that I had made a school-boy error with the above code, so while I can get the lines of code to run now, the created object appears to be of a "collection" type (I'm assuming this because the only methods available to it are Add, Item, Count and Remove which are obviously collection methods).
My expectation was that it would create a window object and give me access at runtime to the methods of a window (.exists).
Here is the updated code:
My expectation was that it would create a window object and give me access at runtime to the methods of a window (.exists).
Here is the updated code:
Code:
Function SpiceClassCreation
set SpiceClassCreation = new SPICEApplication
End Function
Class SPICEApplication
Public SPICEWindow
Sub Initialise
Set SPICEWindow = Description.Create
SPICEWindow("Type").value = "SwfWindow"
SPICEWindow("swfname").value = "ShellUI"
SPICEWindow("regexpwndtitle").value = "SPICE (Environment: Syst)"
SPICEWindow("is owned window").value = False
SPICEWindow("is child window").value = False
check = SPICEWindow.Exists
End sub
End Class