View Full Version : Display system info

02-24-2004, 02:26 PM
I've been unable to locate this, it seems so simple that I just know I've skipped over it during my search but...

I want to be able to display some basic system info.

OS, CPU speed, RAM, Time, Date, etc.

I understand how to get the values and make them variables
i.e. System.GetOSName and Registry.GetValue
It's just displaying them that has me stumped.

Once I can do this I have bigger plans involving taking that system info along with some user input and mailing it all back to the office using the Blat DLL. But, I will work out each piece of the puzzle one hunk at a time.


02-24-2004, 02:43 PM
Here are the ones we support:

System.GetDate (http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/System.GetDate.htm)
System.GetDisplayInfo (http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/System.GetDisplayInfo.htm)
System.GetLANInfo (http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/System.GetLANInfo.htm)
System.GetOSName (http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/System.GetOSName.htm)
System.GetOSVersionInfo (http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/System.GetOSVersionInfo.htm)
System.GetTime (http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/System.GetTime.htm)

Beyond that you may have to create a custom DLL or Action plugin to get more.

02-24-2004, 02:53 PM
There are several ways you can display the information.

Dialog.Message (http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/Dialog.Message.htm)
Label.SetText (http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/Label.SetText.htm)
Input.SetText (http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/Input.SetText.htm) Paragraph.SetText (http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/Paragraph.SetText.htm)

For your use and not for a published project.
Debug.Print (http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/Debug.Print.htm)

You may want to look at storing the information in a table and then you can use a for loop to enumerate the table and display each item. I often do this to test and make sure that I am getting what I need.

tbvariable = {"item1", "item2", "item3", "item4"}
for index,value in tbvariable do
Dialog.Message("title", "This is index"..index.."\r\nWhich has a value of "..value")

Something to that end anyways.

02-25-2004, 08:32 AM
Thanks for your help, both.

The Label.SetText is what I was looking for.

I am a bit surprised that displaying system info isn't a little more straight forward but hey, as long as you can do it.

In case anyone else comes looking for the same info, I've attached the basic function in action...