Hi,
What system information is available about the PC, tablet, etc?
Thanks,
Ken
In web, the navigator object can return system information.
You can as such get info from:
uses
web;
showmessage(window.navigator.platform);
showmessage(window.navigator.userAgent);
showmessage(window.navigator.vendor);
showmessage(window.navigator.oscpu);
Thanks, that's just what I wanted.
Sorry but can't access
window.navigator.vendor or window.navigator.oscpu!
Sorry, I overlooked that this is a Firefox specific property, it isn't generally available.
So, it would only work in the following way
asm
alert(window.navigator.oscpu);
end;
in a Firefox browser
Thanks Bruno. I decided to have a go at adding an external script,
https://clientjs.org and was very pleasantly surprised at how easy this
was to do. I'll reiterate the steps in case anyone else needs to do
this:
1. Download client.min.js.
2. Edit the projects html file and add <script type="text/javascript" src="client.min.js"></script>.
3. Add client.min.js to the project.
4. Create a procedure to use it e.g.
procedure TMainForm.GetSystemInfo;
var
CPU:String;
begin
asm
var client = new ClientJS();
var CPU = client.getCPU();
end;
lbSysInfo.Items.Add('CPU='+CPU);
end;