How to determine if a device is touchscreen in Lotus Script in Registry

118 views Asked by At

Currently, I am using

var = Evaluate({@RegQueryValue("HKEY_LOCAL_MACHINE";"ControlPanel";"InputConfig")})

to determine if the machine is touchscreen. However, this does not return any value, which leads me to believe it either does not work, or I am calling it wrong. Any advice would be appreciated. Thanks.

1

There are 1 answers

2
Tode On

Did you check your registry using regedit?

I just checked: For my "normal" Laptop this key is not available at all, thus returning an empty string is correct. If I use the exact same code to access a definitely existing variable, then it returns the value:

Dim var as Variant
var = Evaluate({@RegQueryValue("HKEY_CURRENT_USER";"Console";"WindowSize")})
Messagebox var(0)

In addition the right return value depends on "where" you run the code. If you call an agent, then that might run on the server, and returns the registry value of the server. Same is true for any Webcode (Server Side JavaScript, e.g.): It will always return the servers value.