Page 15 of 23

Re: COMatePLUS version 1.2

Posted: Wed May 25, 2011 9:16 pm
by TerryHough
Looking at Comate for use with SAPI. Tried the example but I get no response. Anybody
know why?

Code: Select all

;/////////////////////////////////////////////////////////////////////////////////
;***COMate***  COM automation through iDispatch.
;*===========
;*
;*Sapi demo by ts-soft.
;/////////////////////////////////////////////////////////////////////////////////

IncludePath "..\"
XIncludeFile "COMatePLUS.pbi"

EnableExplicit 

Define.COMateObject obj = COMate_CreateObject("SAPI.SpVoice") 

If obj 
  obj\Invoke("Speak('PureBasic, feel the pure Power')") 
  obj\Release() 
EndIf

Re: COMatePLUS version 1.2

Posted: Thu May 26, 2011 7:45 am
by srod
I had this problem as well a while ago. The demo worked fine and then it stopped! I can only assume that I installed something which cocked up some system library or setting etc. Never did get to the bottom of it. Since reinstalling Vista following a nasty virus, it all works fine again!

Re: COMatePLUS version 1.2

Posted: Wed Jun 15, 2011 6:46 pm
by Bernard
Hello,

I would like to merge somes cells :

Code: Select all

ExcelObject\SetProperty("Range(Cells(1,' + DebutJour + ')\Cells(1,' + (i-1)+debutColonnes + '))\MergeCells = #True ")
DebutJour = 91
(i-1)+debutColonnes = 104

How can I do

Thanks

Re: COMatePLUS version 1.2

Posted: Sat Jul 23, 2011 11:45 am
by Artus
Hi,

it's horrible, i searched, in google, for one hour und i didn't find any right tutorial for using Word via OLE Automation -.-
Has anybody a tutorial to create a table ,then a table in table and add a picture.
Or a good site with the Word-OLE-Reference? The "msdn" have no list of all commands.
I like to know all options, and not only to make it because it give the result, i like to know waht do each command.
I hope somebody can help me.

Thanks
Arthur

Re: COMatePLUS version 1.2

Posted: Sat Jul 23, 2011 2:47 pm
by DoctorLove
Artus wrote:Hi,

it's horrible, i searched, in google, for one hour und i didn't find any right tutorial for using Word via OLE Automation -.-
Has anybody a tutorial to create a table ,then a table in table and add a picture.
Or a good site with the Word-OLE-Reference? The "msdn" have no list of all commands.
I like to know all options, and not only to make it because it give the result, i like to know waht do each command.
I hope somebody can help me.

Thanks
Arthur

Its simple.
Open up WORD, then record your macro what you are planning to do in WORD. Like adding tables and pictures. Then Stop the marco recorder and check the MACRO. There you will see all the commands you need.

If thats not enough, Then open up WORD and check the visual basic help file in the Visual basic editor for WORD.

Good luck!

Re: COMatePLUS version 1.2

Posted: Sat Jul 23, 2011 4:12 pm
by Artus
It's not so simple!
1. I can't record all
2. I still don't know to convert right to the PB COMatePlus

Re: COMatePLUS version 1.2

Posted: Mon Aug 08, 2011 10:50 pm
by MisterDr
Cannot download COMatePlus :?

"No input file specified. " when I go to the your site.

Re: COMatePLUS version 1.2

Posted: Tue Aug 09, 2011 11:46 am
by Kiffi
MisterDr wrote:Cannot download COMatePlus :?
http://www.purecoder.net/comate.htm

Greetings ... Kiffi

Re: COMatePLUS version 1.2

Posted: Wed Nov 09, 2011 1:20 am
by leodh
Hi srod,

Is there going to be PB4.6 version of ComatePlus 1.2 or does the PB 4.5 version work with PB 4.6

Cheers

Re: COMatePLUS version 1.2

Posted: Wed Nov 09, 2011 8:44 am
by srod
The existing version should work fine. Nothing has changed in PB 4.6 that I know of which will upset COMatePLUS. I have been using ADOmate (which uses COMatePLUS) with PB 4.6 without a problem.

By all means let me know if you do find a problem.

Re: COMatePLUS version 1.2

Posted: Fri Nov 11, 2011 1:22 pm
by kinglestat
I have a question

I have tried to use comateplus with word...and some things work...other don't...obviously very green about these advanced things for my poor brain
But one thing which I want to fix is the search & replace feauture. Maybe somebody has an example of how to use this with comateplus?
Would be greatly appreciated

cheers

Re: COMatePLUS version 1.2

Posted: Fri Nov 25, 2011 8:30 am
by infratec
Hi srod,

since I have to use COM objects in the near future, I just downloaded COMatePlus.
During my fisrt test I discovered, that I have to increase the first Delay() in Demo_SendKeys.pb
else nothing works.
Original:

Code: Select all

oWScript\Invoke("Run('calc')") 
  Delay(100) 
Modified:

Code: Select all

oWScript\Invoke("Run('calc')") 
  Delay(300)
Maybe my new PC is to fast :mrgreen:

Bernd

Re: COMatePLUS version 1.2

Posted: Fri Nov 25, 2011 9:51 am
by srod
Well that will teach you to buy a flash new machine! :)

Re: COMatePLUS version 1.2

Posted: Wed Jan 18, 2012 5:15 pm
by rtamely

Re: COMatePLUS version 1.2

Posted: Thu Jan 19, 2012 5:10 am
by Yogi Yang
rtamely wrote:http://www.nxsoftware.com webpage is out?
Web page not working.