Page 21 of 23

Re: COMatePLUS version 1.2

Posted: Fri Mar 20, 2015 7:03 am
by SeregaZ
thanks a lot :)

it just virtual flag "saved"? no creation any temp-exel files on hdd?

Re: COMatePLUS version 1.2

Posted: Fri Mar 20, 2015 10:10 am
by Marc56us
SeregaZ wrote:i try to close exel file without save, some kind of force closing.
Add DisplayAlerts = #False before 'Quit' command.
Like this:
ExcelObject\SetProperty("Application\DisplayAlerts = #False")

Code: Select all

XIncludeFile "COMatePLUS.pbi"

Define.COMateObject ExcelObject, WorkBook
ExcelObject = COMate_CreateObject("Excel.Application")

If ExcelObject
    If ExcelObject\SetProperty("Visible = #True") = #S_OK
        WorkBook = ExcelObject\GetObjectProperty("Workbooks\Add")
            If WorkBook
                ExcelObject\SetProperty("Cells(1,1) = 'Hello'")
                ExcelObject\SetProperty("Cells(1,2) = 'from'")
                ExcelObject\SetProperty("Cells(1,3) = 'COMate!'")
                ; --- Wait 3 sec
                Delay(3000)
                ExcelObject\SetProperty("Application\DisplayAlerts = #False") 
                ; -----------------------------------------------------------
                ExcelObject\Invoke("Quit()") 
                WorkBook\Release()
        EndIf
    EndIf
    ExcelObject\Release()
Else
    MessageRequester("COMate -Excel demo", "Couldn't create the application object!")
EndIf 
I found it here (by searching 'Quit' on VBA)
'If you've set the DisplayAlerts property to False, you won't be prompted to save any unsaved data'
https://msdn.microsoft.com/en-us/librar ... 11%29.aspx

:wink:

Re: COMatePLUS version 1.2

Posted: Wed May 27, 2015 6:31 am
by leodh
Hi All,

Just like to know if anyone has been able to check the Outlook sent box to see if an email has been sent using Comate plus.

I have a written an application that sets up an auto populated Outlook Email and allows the user to add any further text to the email before sending.

If they decide to send or cancel the email, I have no easy way of knowing. I thought if I could check the sent box for emails sent to whomever programmatically, it would allow the program to make the appropriate responses.

If anyone has any examples of how this is done that they could show me It would be great.

Thanks
Leo

Re: COMatePLUS version 1.2

Posted: Sun Sep 06, 2015 11:00 am
by ts-soft
Here a fixed version for pb5.40 +, only the COMatePLUS.pbi
https://dl.dropboxusercontent.com/u/308 ... tePLUS.pbi

Re: COMatePLUS version 1.2

Posted: Sun Sep 06, 2015 11:09 am
by Falko
Thank you very much, Thomas.

Re: COMatePLUS version 1.2

Posted: Sun Sep 06, 2015 11:32 am
by Kiffi
ts-soft wrote:Here a fixed version for pb5.40 +, only the COMatePLUS.pbi
https://dl.dropboxusercontent.com/u/308 ... tePLUS.pbi
Thanks a lot! Image

Greetings ... Peter

Re: COMatePLUS version 1.2

Posted: Sun Sep 06, 2015 11:36 am
by Little John
Thank you, Thomas!

According to the PureBasic Team Blog, for 64 bit programs additionally Get/SetWindowLong_() should be replaced with Get/SetWindowLongPtr_(). ;-)

Re: COMatePLUS version 1.2

Posted: Sun Sep 06, 2015 11:53 am
by davido
@ts-soft,

Thank you.

Re: COMatePLUS version 1.2

Posted: Sun Sep 06, 2015 12:26 pm
by ts-soft
@Little John

I think, there was a Macro that do it for me but i have it changed!

Re: COMatePLUS version 1.2

Posted: Sun Sep 06, 2015 1:56 pm
by Little John
Thanks again, Thomas!

Re: COMatePLUS version 1.2

Posted: Mon Sep 07, 2015 10:16 am
by ThoPie
Thank you for your work, Thomas!

Re: COMatePLUS version 1.2

Posted: Tue Feb 16, 2016 2:56 pm
by srod
Purebasic 5.42.

COMatePLUS has been modified to work with PB 5.42. See RSBasic's backup site for the download - though it may not be uploaded yet. :)

Re: COMatePLUS version 1.2

Posted: Tue Feb 16, 2016 3:12 pm
by RSBasic
I'm not at home yet. I upload the file at 6pm-7pm. :)

Re: COMatePLUS version 1.2

Posted: Tue Feb 16, 2016 4:01 pm
by IdeasVacuum
...Berlin or Ibiza time? :D

Re: COMatePLUS version 1.2

Posted: Tue Feb 16, 2016 4:48 pm
by davido
@srod,
Thank you, very much.

Will the new version still work with older versions of PureBasic?
Or will it be necessary to keep both?