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
-
Fasasoftware
- Posts: 203
- Joined: Mon Oct 31, 2011 9:36 pm
-
Contact:
Post
by Fasasoftware » Tue Jul 01, 2014 7:50 pm
hi to all...
is there a script either for win32/64 and macOSX 64 to retrieve the details info (fingerprint) of the computer i'm using???
for example , memory, cpu, freq....etc...??? and put it in a field??
I thank you in advance,
Best regards,
lestroso

-
richmond62
- Livecode Opensource Backer

- Posts: 10100
- Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Tue Jul 01, 2014 8:52 pm
Have a look in the Dictionary at:
systemversion
-
AndyP
- Posts: 634
- Joined: Wed Aug 27, 2008 12:57 pm
-
Contact:
Post
by AndyP » Tue Jul 01, 2014 9:40 pm
On Windows you can get the Active System HD serial with the the code below.
In a button;
on mouseUp
put $systemdrive into tSysDrive
//string for the shell command
put "vol " & tSySDrive into tDriveInfo
//the last word of the returned info is the ACTIVE SYSTEM HD Serial
set the hideConsoleWindows to true
put the last word of shell(tDriveInfo) into tHDSerial
answer "HD Serial is " && tHDSerial with "OK"
end mouseUp
Also try;
put $COMPUTERNAME
put shell("net view")
put shell("net user")
Andy .... LC CLASSIC ROCKS!
-
Fasasoftware
- Posts: 203
- Joined: Mon Oct 31, 2011 9:36 pm
-
Contact:
Post
by Fasasoftware » Tue Jul 01, 2014 10:09 pm
thanks a..lot....but i need if possible a script either for mac and win...
can you help plese??
thanks,
lestroso
-
AndyP
- Posts: 634
- Joined: Wed Aug 27, 2008 12:57 pm
-
Contact:
Post
by AndyP » Wed Jul 02, 2014 6:59 am
I don't have a mac, but I think you can use this format for command.
put shell("echo $system_profiler")
put shell("echo $system_profiler SPParallelATADataType")
I believe this will get you the HD Serial
put shell("echo $system_profiler SPParallelATADataType | grep Serial")
Andy .... LC CLASSIC ROCKS!
-
richmond62
- Livecode Opensource Backer

- Posts: 10100
- Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Wed Jul 02, 2014 8:02 am
Why do I have a funny feeling you want this information so you can tether an application to a
particular computer?
This is very awkward, just like password protecting and so on; and, probably, more trouble than
it is worth.
Remember the ONLY thing that is constant in a computer is its MAC address.
Last edited by
richmond62 on Fri Jul 04, 2014 9:18 am, edited 1 time in total.
-
Fasasoftware
- Posts: 203
- Joined: Mon Oct 31, 2011 9:36 pm
-
Contact:
Post
by Fasasoftware » Wed Jul 02, 2014 9:28 am
I thank you to everybody....now it's all clear.. thanks a lot
Best regards,
Lestroso