Test for QT

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Test for QT

Post by bidgeeman » Mon Nov 02, 2009 10:34 pm

Hi.
I was wondering if it were possible to "Test" for Quicktime under windows and tell a user they need to install it if it is not there? I'm using the External QT in a stack.

Many thanks
Bidge

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon Nov 02, 2009 11:14 pm

Hi Bidge,

If you enter QT in the search field of the dictionary, you will see a small number of relevant hits. One of the relevant entries says:
On Mac OS and Windows systems, if QuickTime is not installed, the QTVersion function returns 0.0. Otherwise, it returns the QuickTime version number.
Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Mon Nov 02, 2009 11:21 pm

Thanks Mark. Much appreciated mate.
:D

Regards
Bidge

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Tue Nov 03, 2009 12:41 am

Would the QTversion script work ok in the stack script? Would it check for QT on startup?

Thanks
Bidge

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Nov 03, 2009 12:44 am

Bidge,

I don't know, because I don't know what your script looks like.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Tue Nov 03, 2009 12:50 am

Hi Mark.
I just put tis in the main stack

Code: Select all

the QTVersion
if the QTVersion < 3 then answer "You need QuickTime 3.0 or later."
Would this check for QT on startup of the exe?

Cheers
Bidge

Post Reply