Courtesy of hutchfx (from 6 years ago), I found two methods for determining the available COM ports on a windows machine in livecode: One uses brute force (attempting to open each one and relying on the error you get if it doesn't exist), and the other, queries of the windows registry.
Code: Select all
put queryRegistry("HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM") into field "my field"
Could there be some sort of administrative lock-down that would prevent LiveCode from accessing the Windows registry? I tried to run LiveCode as an administrator to test this, but with no luck.
Help, please!
Tom