Developed or developing a new product in PureBasic? Tell the world about it.
SeregaZ
Enthusiast
Posts: 628 Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:
Post
by SeregaZ » Fri Mar 20, 2015 7:03 am
thanks a lot
it just virtual flag "saved"? no creation any temp-exel files on hdd?
Marc56us
Addict
Posts: 1600 Joined: Sat Feb 08, 2014 3:26 pm
Post
by Marc56us » Fri Mar 20, 2015 10:10 am
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
leodh
Enthusiast
Posts: 164 Joined: Sun Nov 06, 2005 6:07 am
Location: Perth Western Australia
Post
by leodh » Wed May 27, 2015 6:31 am
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
Regards
Leo
Falko
Enthusiast
Posts: 271 Joined: Sat Oct 04, 2003 12:57 pm
Location: Germany
Contact:
Post
by Falko » Sun Sep 06, 2015 11:09 am
Thank you very much, Thomas.
Kiffi
Addict
Posts: 1484 Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9
Post
by Kiffi » Sun Sep 06, 2015 11:32 am
Thanks a lot!
Greetings ... Peter
Hygge
Little John
Addict
Posts: 4775 Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany
Post
by Little John » Sun Sep 06, 2015 11:36 am
Thank you, Thomas!
According to the
PureBasic Team Blog , for 64 bit programs additionally
Get/SetWindowLong_() should be replaced with
Get/SetWindowLongPtr _() .
davido
Addict
Posts: 1890 Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK
Post
by davido » Sun Sep 06, 2015 11:53 am
@ts-soft ,
Thank you.
DE AA EB
ts-soft
Always Here
Posts: 5756 Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany
Post
by ts-soft » Sun Sep 06, 2015 12:26 pm
@Little John
I think, there was a Macro that do it for me but i have it changed!
PureBasic 5.73 |
SpiderBasic 2.30 |
Windows 10 Pro (x64) |
Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Little John
Addict
Posts: 4775 Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany
Post
by Little John » Sun Sep 06, 2015 1:56 pm
Thanks again, Thomas!
ThoPie
User
Posts: 47 Joined: Sat Aug 22, 2009 6:49 pm
Post
by ThoPie » Mon Sep 07, 2015 10:16 am
Thank you for your work, Thomas!
srod
PureBasic Expert
Posts: 10589 Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...
Post
by srod » Tue Feb 16, 2016 2:56 pm
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.
I may look like a mule, but I'm not a complete ass.
RSBasic
Moderator
Posts: 1228 Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:
Post
by RSBasic » Tue Feb 16, 2016 3:12 pm
I'm not at home yet. I upload the file at 6pm-7pm.
IdeasVacuum
Always Here
Posts: 6426 Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:
Post
by IdeasVacuum » Tue Feb 16, 2016 4:01 pm
...Berlin or Ibiza time?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
davido
Addict
Posts: 1890 Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK
Post
by davido » Tue Feb 16, 2016 4:48 pm
@srod ,
Thank you, very much.
Will the new version still work with older versions of PureBasic?
Or will it be necessary to keep both?
DE AA EB