Cimplicity

Guest

Guest
G
Hello,

I have cimplicity 4.01 Service pack 4. I also have a bar code scanner that is plugged in the Keyboard port of the computer. The question is that when Cimplicity opens a screen, how can focus be given to a text box? This is so that when the bar code scanner scans that it will place the alphanumeric text into the text box. The only way that I have found to place focus is with the mouse or tab key and hitting enter. I would like to have it automatic.
Thank you
 
Can't you make the object the lowest numbered in the tab order? Every time the screen gets activated, the object with the lowest numbered tab order gets focus.

Alternatively, you can create a script that runs on the 'form activate' event. The script can give focus to the object.

Either of those options would be a way to do it if you were writing your code in VB. I know that Cimplicity's scripting language is not VB Script. It is supposed to be 'VB compliant', but it was created independently of Microsoft, so there's no guarantee that it will behave the same way as identical code written in VB.
 
hi,
as Steve already said, you can use :
Event....ScreenOpen to call a
Procedure.... to run a
Script.....to set your focus

Right click on screen, select properties, navigate using tabs

I would suggest making script first, then procedure, then event.

Chris
 
Hello,
Thanks for the replies. The next question I probably should ask is how to access the properties of the text box in script. If their is a way to identify the textbox and the properties so that one is selected. I might need to refocus on this box also at a later time. So far the only way that I have found is to use sendkey {tab} {enter} but this seems sloppy.
 
Hi, I use ver 5 and have attached a simple project.. no comms & no points.
See if you can copy screen text.cim and examine it for your use.

I use buttons to write 'Hello' or 'Goodbye'

Cheers, Chris
 
Thanks Chris for the file. I still need to find how to get focus of the text box. For example, If you press the Hello button, the text Hello comes up in the text box, now type for example <space> Your Name The typing needs to be done without using the mouse to place focus on the text box.
 

Similar Topics

Hi all, I am having issues accessing my Cimplicity software - the site code changed after re-install and I am no longer able to attain a new key...
Replies
10
Views
158
Hello everyone! This is my first time posting, though I have been to this site a few times hunting for some random problem like we all do. I...
Replies
4
Views
171
Hi good day Everyone, I have a cimplicity v10 project with 7 to 8k tags communicating with AB PLC through OPC and Rslinx classic. I have this...
Replies
3
Views
214
Hi All, I am trying to program some new Versamax micro PLCs through PAC using some programs saved in our archive however whenever i go to import...
Replies
2
Views
123
Hi All, Im using Cimplicity 8.2. after the last restart Server Scada, the PTDL_RP process can not running. so Process can not be login to database...
Replies
2
Views
156
Back
Top Bottom