Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iCal support in QM
#1
Wondering if any examples could be given of building a program that will utilize iCal files(.ics)...

This looks like it will prove useful for developing:
http://www.codeproject.com/KB/macros/iCalendar1.aspx

Thank you,
Jimmy Vig
#2
Down loaded:
http://downloads.sourceforge.net/dday-ic...g_mirror=0

Tried to load type library with QuickMacros...and got error message:
Code:
Copy      Help
-------------------
Quick Macros                  |X|
-------------------
Results:

Components: failed
Library: failed

Why does this happen when trying to load dll's for me?

Well, guess I'll have to wait for help, I'm kind of stuck in the mud for now.
#3
Are you sure it is COM component? QM does not support .NET components.

Quote:DDay.iCal is an iCal (RFC 2445) class library for .NET 2.0 and above.
#4
will qm ever support .NET components?
does it support anything other then COM?
thanks.
#5
Quote:will qm ever support .NET components?
no

Quote:does it support anything other then COM?
only dll functions and COM
#6
Phewy! Well..Guess I'm back to square one again.
#7
Well I'm working on parsing iCal (.ics) files...

Here's what I've got so far, but there are a couple of things that don't work right
Macro
Code:
Copy      Help
out
str s.getfile("$desktop$\Schedule.ics")
s.findreplace("[] ")
ARRAY(str) arr = s
for(int'i 0 arr.len)
,ARRAY(str) arr1
,tok(arr[i] arr1 -1 ":")
,sel arr1[0]
,,case ["BEGIN"]
,,for(int'i2 0 20)
,,,ARRAY(str) EVENT
,,,tok(arr[i+i2] EVENT -1 ":")
,,,,sel EVENT[0]
,,,,,case ["END"]
,,,,,out arr[i+i2]
,,,,,break
,,,,,case else
,,,,,_s.from(EVENT[0] ":" EVENT[1]) err
,,,,,out _s
,,out "-----"

I can't figure out how to use this section for example:
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;CN=First Last;X-NUM-GUESTS=0:mailto:jimmyvig@gmail.com
Format changes for the above bit that I can't figure out how to account for.

Also the the beginning doesn't parse well because the way case ["END"] works:
Code:
Copy      Help
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Calendar Name
X-WR-TIMEZONE:America/Chicago
BEGIN:VTIMEZONE
TZID:America/Chicago
X-LIC-LOCATION:America/Chicago
BEGIN:DAYLIGHT
TZOFFSETFROM:-0600
TZOFFSETTO:-0500
TZNAME:CDT
DTSTART:19700308T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT

Thanks for help,
Jimmy Vig
#8
---------QM Forum->Resources->Executing PHP code in QM:---------
Quote:Although PHP usually is used in web servers, it also can be used in your computer. You only have to download and install PHP, which is as easy as installing QM or any other program.
http://www.quickmacros.com/forum/showthr...p?tid=1960

Php scripting help:
Quote:These functions can be used to execute PHP code in QM.
SETUP
1. Download PHP. I recommend to download Windows Binaries -> PHP 5.X.X installer.
2. Run the setup program. Choose to install all extensions, or at least Activescript. Web server is not necessary.
3. Register c:\program files\php\ext\php5activescript.dll as a COM component.
You can register it using the Type Libraries dialog (menu Tools -> Type Libraries) or RegisterComComponent.
If registration fails, restart QM and try to register again.
If registration fails, try to copy php5activescript.dll from ext to the parent folder (php) and register it.
download
"http://php.net/downloads.php"
more info
"http://www.google.com/search?q=php+activescript"
Downloaded from:
http://us2.php.net/get/php-5.2.8-win32-i...m/a/mirror
Installed everything during the install procedure

Tried to register c:\program files\php\ext\php5activescript.dll in QuickMacros, but file does not exist.
Here is a list of files in C:\Program Files\PHP\ext\
Code:
Copy      Help
C:\Program Files\PHP\ext\php_bz2.dll
C:\Program Files\PHP\ext\php_curl.dll
C:\Program Files\PHP\ext\php_dba.dll
C:\Program Files\PHP\ext\php_dbase.dll
C:\Program Files\PHP\ext\php_exif.dll
C:\Program Files\PHP\ext\php_fdf.dll
C:\Program Files\PHP\ext\php_gd2.dll
C:\Program Files\PHP\ext\php_gettext.dll
C:\Program Files\PHP\ext\php_gmp.dll
C:\Program Files\PHP\ext\php_imap.dll
C:\Program Files\PHP\ext\php_interbase.dll
C:\Program Files\PHP\ext\php_ldap.dll
C:\Program Files\PHP\ext\php_mbstring.dll
C:\Program Files\PHP\ext\php_mcrypt.dll
C:\Program Files\PHP\ext\php_mhash.dll
C:\Program Files\PHP\ext\php_mime_magic.dll
C:\Program Files\PHP\ext\php_ming.dll
C:\Program Files\PHP\ext\php_mysql.dll
C:\Program Files\PHP\ext\php_mysqli.dll
C:\Program Files\PHP\ext\php_oci8.dll
C:\Program Files\PHP\ext\php_openssl.dll
C:\Program Files\PHP\ext\php_pdo.dll
C:\Program Files\PHP\ext\php_pdo_firebird.dll
C:\Program Files\PHP\ext\php_pdo_mysql.dll
C:\Program Files\PHP\ext\php_pdo_oci.dll
C:\Program Files\PHP\ext\php_pdo_oci8.dll
C:\Program Files\PHP\ext\php_pdo_odbc.dll
C:\Program Files\PHP\ext\php_pdo_pgsql.dll
C:\Program Files\PHP\ext\php_pdo_sqlite.dll
C:\Program Files\PHP\ext\php_pdo_sqlite_external.dll
C:\Program Files\PHP\ext\php_pgsql.dll
C:\Program Files\PHP\ext\php_pspell.dll
C:\Program Files\PHP\ext\php_shmop.dll
C:\Program Files\PHP\ext\php_snmp.dll
C:\Program Files\PHP\ext\php_soap.dll
C:\Program Files\PHP\ext\php_sockets.dll
C:\Program Files\PHP\ext\php_sqlite.dll
C:\Program Files\PHP\ext\php_sybase_ct.dll
C:\Program Files\PHP\ext\php_tidy.dll
C:\Program Files\PHP\ext\php_xmlrpc.dll
C:\Program Files\PHP\ext\php_xsl.dll
C:\Program Files\PHP\ext\php_zip.dll

---------------------PHP Calendar Information---------------------
In searching for things came across this:
http://phpicalendar.net/
Downloaded:
http://downloads.sourceforge.net/phpical...g_mirror=0

I think this will be the route that I will take...But I am in over my head right now! Definitely need help! Thanks.
Jimmy Vig
#9
PHP 5.2.8 does not install activescript.
Download it:
Executing PHP code in QM


Forum Jump:


Users browsing this thread: 1 Guest(s)