Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 5:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Direct X version identification
PostPosted: September 4th, 2006, 10:39 am 
Offline

Joined: November 10th, 2004, 5:21 pm
Posts: 26
Location: Cranwell, Lincolnshire
Is there any way to detect and display the version of Direct X currently installed on a PC(via an Opus XE 5.5 publication).


For this message John Beal has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: redistry data
PostPosted: September 4th, 2006, 1:33 pm 
Offline

Joined: November 11th, 2004, 1:43 pm
Posts: 172
Location: Buckinghamshire, UK
not sure if dxdiag option to output data to file, that would be a better solution I guess since other info are contained in that output. in rue of that,
You can use the registry information and associate the version value for directX with info from table at this site http://www.hardwaresecrets.com/article/95


e.g. HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/DirectX/Version

on my machine, the value Version number is 4.08.01.0881, which gives the version DirectX 8.1


For this message eomc40 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Ident continued:
PostPosted: September 4th, 2006, 2:48 pm 
Offline

Joined: November 10th, 2004, 5:21 pm
Posts: 26
Location: Cranwell, Lincolnshire
Thanks very much for your reply,
Sorry to be a bit basic, the technique works fine but how do I get it to work with Opus - do I type in a script for an action button and if so what would it look like, also how do I get the info found into a variable.
Regards
John


For this message John Beal has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: September 4th, 2006, 3:30 pm 
Offline

Joined: November 28th, 2004, 6:05 am
Posts: 141
Location: USA
Hi John

A script action would look like this

//==========================
var LongVer = ReadRegistryKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\DirectX", "Version")
version= LongVer.substring(3,7)
//==========================

the variable <version> would then hold the version number

HTH
Chris

_________________
Opus Resources and Services


For this message Chris Jones has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Continued
PostPosted: September 4th, 2006, 3:53 pm 
Offline

Joined: November 10th, 2004, 5:21 pm
Posts: 26
Location: Cranwell, Lincolnshire
Chris,
It worked a treat - thank you so much for your time.
Regards
John


For this message John Beal has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 88 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group