Jump to content


Photo

C O M 4 Gm - Create Com Objects And Call Functions


  • Please log in to reply
2 replies to this topic

#1 freaked

freaked

    freak up!

  • New Member
  • 890 posts

Posted 02 July 2009 - 08:24 AM

COM4GM is a dll I wrote to call functions from COM objects in a very VBA style.
You can use this stuff to automate stuff, like Word , as shown in the example.
The scripts documented extensively and the samples work. Please note the some functions such as getting properties have yet to be worked out properly.
The next version will each these functions as well as support for threads.

[Download]

[Download Source]

Sample
com_init();
com_createObject("SAPI.SpVoice.1",1);
com_callFunction(1,".Speak(%s)","cI know GMRA can do this and much more =P");
com_freeObject(1);

Edited by freaked, 02 July 2009 - 08:24 AM.

  • 0

#2 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts
  • Version:Unknown

Posted 02 July 2009 - 09:35 PM

GMRA and GMAX both has this functionality. However, you gave me an idea :whistle:.

Yes, I think this would be useful when people need a smaller dll just to do this.
  • 0

#3 newbie013

newbie013

    GMC Member

  • GMC Member
  • 96 posts
  • Version:GM8

Posted 06 October 2010 - 03:48 PM

Speech doesn't work but doesn't give errors. Word gives only errors... And IE starts up but doesn't go to gmc.yoyogames.com but instead it goes to http://./ please can you fix this :$ ??
  • 0