Page 1 of 1

How to detect the operative system?

Posted: Mon Aug 19, 2019 2:20 pm
by Juan Carlos
Is there a instruction for one applet cans dectect the system where it is run? for example an applet to run a game or tool and if the system where it is run is 68k don't use one png mouse pointer and if the same applet is running on MorphOS detect it and use one png mouse pointer.

Re: How to detect the operative system?

Posted: Mon Aug 19, 2019 3:04 pm
by plouf
check out

t = GetVersion()
If t.platform = "Win32" Then Error("Sorry, Win32 is not supported yet!")

Re: How to detect the operative system?

Posted: Tue Aug 20, 2019 12:01 pm
by Juan Carlos
Thank you for your help, it works as I ask it, I forget this instruction. Again thank you.