Wonderware Intouch Scripting - Keyboard Input

I am looking for a way to capture keyboard input data and store it in a tag. Something like ‘MessageTag = System.In.NextLine();” From there I can parse the string and use part of it for a lookup. Using InTouch 10.1.301

I have a keystroking badge reader I’d like to use for logins. Here’s the first order idea:
- The reader inserts characters before the badge ID which call a key script.
- Take the remaining data from the input and store it in a tag
- Pull the ID number from the tag and use it as a parameter to a QuickFunction that looks up a username and password and returns those values
- Then set the $OperatorEntered = username & $PasswordEntered = password

Any thoughts on storing the ‘keyboard’ input in a tag or the overall agenda would be appreciated.
 
I use a lot of the RF Ideas units that do USB keyboard emulation.
I set the string to have a Control-F12 and Control-F11 keys as the preamble. Then in Wonderware I setup a Control-F12 key script to pop open a small window that's below the screen line. On that window the is a text entry field activated by the Control-F11. Then when that text entry field tag is <> "" it then clears the tag and then calls the quick function to login (if logged out) or logout (if logged in) that person.


The little popup screen is only seen for a split second at the bottom of the current screen.
 

Similar Topics

Hi everyone, I am currently working on an older machine that uses Wonderware InTouch 10.1. Unfortunately, the original installation media is no...
1
Replies
253
Views
Hello, I have an install of Intouch 2020 R2 with patch 01 on a windows 10 machine. Running for about 2 years. The ssd became nearly full (500Gb)...
0
Replies
491
Views
Hi all, I'm trying to setup communications with an S7 PLC and I'm struggling to find the correct syntax for the Intouch Tag/Item name. I've gone...
3
Replies
1,027
Views
Good Morning All, I have been tasked to figure out the process to upgrade a perpetual license for 'OEM InTouch 2014R2 Runtime 60000 Tag with I/O'...
5
Replies
1,856
Views
I’m a beginner with InTouch. I used DBDump to easily create new tags, but when I try to use DBLoad to import them back into the program, I get an...
2
Replies
1,082
Views
Top