Page 5 of 39

Posted: Sat Sep 06, 2008 11:09 am
by srod
Is there any chance to do so?
I am sure there is! :wink:

Haven't time at the minute, being no expert on the agent! :wink:

I'll get this COMate update released and then have a look at the Agent as time allows. :)

Posted: Sat Sep 06, 2008 11:14 am
by DoubleDutch
Just seen this - looks great... :D

But can't find the download link - just got:
COM automation

Whoops...
on the website?

Edit:

Just done a refresh - now the link is on the side.
(using IE v8b2)

Posted: Sat Sep 06, 2008 11:15 am
by srod
Download link is on the right hand side of that same page!!!

There will be an update within an hour or so which will pretty much invalidate the current version anyhow!

Posted: Sat Sep 06, 2008 11:17 am
by DoubleDutch
Your too quick - just edited the post. lol

The link wasn't there on the first check - using IE v8b2

There now though, maybe a strange html problem?

Posted: Sat Sep 06, 2008 11:22 am
by srod
Unlikely, it's only a simple html page. Yes the css is quite involved, but nothing that IE shouldn't be able to handle. Works fine here on IE7.

Posted: Sat Sep 06, 2008 1:01 pm
by srod
Update - version 1.1.0. 6th Sept. 2008.
My thanks to all those who have tested out the first version of COMate and to SFSxOI in particular for creating some nice WMI demos.

Changes for this new version include :
  • Addition of a 'BYREF' parameter type-modifier. This is for calling methods (VB) in which certain parameters have been declared with the 'ByRef' modifier. For many COM objects it is not enough to simply pass the address of a variable, you will also need to use this new modifier. Particularly true for components created in VB.
  • COMate can now house ActiveX controls. See the demo programs and the help manual for details. I haven't added 'Event sinks' yet for trapping events/messages sent by such controls, but it is only a matter of time! :wink: Consider this part to be in 'beta' stage because I took a slightly different approach here than PureDispHelper and so it remains to be seen whether more than just a handful of ActiveX controls will function correctly?
  • Have totally rewritten the command parser and various utility functions in order to increase the speed. DispHelper does not utilise such a parser and so will of course generally run faster. Increasing the speed has been accomplished by simply removing all PB string functions from the aforementioned functions and replacing with memory buffers and 'in place' alteration (via pointers) of strings. Tests on my machine of these functions (when stripped from COMate) show a x50 increase in speed. Take this with a pinch of salt though! It remains to be seen what effect (if any) these new routines will have, speed-wise, on COMate itself. :)
    This new version is now to be known as COMate-Turbo! :wink:
  • Have included a slightly modified version of mk-soft's / ts-soft's excellent 'VariantHelper' utility within the COMate-Turbo download, because there was a slight bug with the 'SafeArray' macros. Some COM methods/properties will return a SafeArray (yuk!) See the 'Demo_IPAddresses.pb' demo for an example of dealing with a return from a COM method in the form of a SafeArray.
    NOTE that the VariantHelper utility can only deal with SafeArray's of one dimension. Beyond this you are on your own! :wink:
See the nxSoftware site for the download.

Posted: Sat Sep 06, 2008 2:12 pm
by srod
@Michael Vogel : Have you tried the "Visible" property?

Code: Select all

Debug GenieObject\GetIntegerProperty("Visible")
This returns -1 (for being visible) 0 for hidden. If you hide the agent then you do have to wait until it has completely vanished before the "visible" property will return 0.

Posted: Sat Sep 06, 2008 3:36 pm
by ts-soft
:D thx for the update

the example: "Demo_MonitorInfo.pb" shows only the dimension of my
secondary monitor but should this show all monitors?

Posted: Sat Sep 06, 2008 3:38 pm
by srod
Probably! :)

Have to ask SFSxOI about that.

Try switching Win32_DesktopMonitor for Win32_DisplayConfiguration.

Posted: Sat Sep 06, 2008 3:48 pm
by ts-soft
sry, it shows the primary display, not the secondary

Posted: Sat Sep 06, 2008 4:25 pm
by SFSxOI
Oh WoW! An update already. That is just more then excellent ! Thank you very much srod. :)

Just tried out the new version, it is indeed faster.

I spent almost 10 hours yesterday playing around with it, my wife thought I was nuts 'cause when something worked she would hear me gleefully chuckling about it. She stuck her head into the room a few times and said "Are you OK ?" :)

I've already started digging out some past and recent projects that used converted C++ code and i'm re-doing them with COmate.

Posted: Sat Sep 06, 2008 4:30 pm
by srod
SFSxOI - could you please take a look at the monitors WMI example which I took from an example you posted. ts-soft reports that it does not list his secondary monitor!

Posted: Sat Sep 06, 2008 5:12 pm
by Sparkie
srod, I was going to take a look at COMate but none of your Quick links (freeware) are working for me.

COMate link opens new page but it says
COM automation
Woops...
All other links s are 404/not found. :(

(IE6 and Firefox3)

Posted: Sat Sep 06, 2008 5:13 pm
by srod
Right hand side of the page with 'whoops' on it should be a download link.

Posted: Sat Sep 06, 2008 5:16 pm
by Sparkie
:oops: Thanks. Thought that was a link to a download page for PureBasic 4.2.