Hey guys. Building a touchscreen HMI that has a password field input. I was using the keyPressed function scripting with the VK_ENTER keyCode to swap windows once the right value is entered. It works great with a physical keyboard, but not with the virtual keyboard that pops up. Any suggestions? Thanks in advance
The keypress listener requires a hardware device. You would need something like this in the propertyChange handler:
if event.propertyName == "text" and event.source.text=="CorrectPassword":
DoSomeStuff()
else:
DoSomeOtherStuff()
Wow, sorry for not replying sooner. Never got notified, thought I checked for replies.
Anyways, worked like a charm!!! THANK YOU very much. Cleans up my HMI and scripting a lot.