PDA

View Full Version : KB: Determining the Operating System (OS)


Desmond
10-03-2003, 12:07 PM
<HTML> <HEAD> <TITLE>AutoPlay Media Studio 5.0 Knowledge Base</TITLE> </HEAD> <BODY> <h3>Determining what Operating System (OS) is Being Used</h3> <b>Document ID: IR10074</b> <hr> The information in this article applies to: <ul> <li>AutoPlay Media Studio 5.0 Standard Edition</li> <li>AutoPlay Media Studio 5.0 Professional Edition</li> </ul> <hr> <h3>SUMMARY</h3> <p>This article describes how to determine what Operating System (OS) is Being Used.</p> <h3>DISCUSSION</h3> <p>AutoPlay Media includes an action to detect what OS the user is running.<br> <br> Add the following script to any event in your application to store the user's OS version in a variable OS_Name:<br> <br> <code>OS_Name = "OS Name: " ..System.GetOSName();<br></code> <br> Please note that AutoPlay has another built in function: System.GetOsVersionInfo(), which returns the version information of the user's operating system in a table. This action is available in the Pro Edition Only. </p> <h3>MORE INFORMATION</h3> <p>For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:</p> <ul> <li><b>Program Reference | Actions | System | System.GetOSName</b></li> </ul> <p>KEYWORDS: AutoPlay Media Studio 5.0, Operating System, OS, System, Version </p> <hr> <FONT SIZE=1> Last reviewed: October 3, 2003<br> Copyright © 2003 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br> </FONT> </BODY> </HTML>

werther
01-25-2005, 11:41 AM
background image enlarged when determining OS
I wrote a simple script to determin the os on the first page proload,and then page jump to the right page, but the page(the one system automaticlly jump to)'s backgound image was enlaged itself, i don't know why this happened? :rolleyes
but

os_name = System.GetOSName();
if (os_name == "Windows 2000") then
Page.Jump("Main Menu-2k-2");
elseif (os_name =="Windows XP") then
Page.Jump("ARP-1700-1 - 3");
elseif (os_name =="Windows 98" or os_name =="Windows 95" or os_name =="Windows Me") then
Page.Jump("Main Menu-98-2");
else
Page.Jump("Main Menu-1");
end