You should try to use the whole code from my previous post, just copy and paste it.
Once you run the program, see if you get any errors and if not then try all 3 combinations of keys one at the time (SHIFT+A, SHIFT+B, SHIFT+C).
This is what you should know in general:
- PLCAddressClick field of the BasicButton should have address like B3:0/0
- Text field of the BasicButton can have any text in it. If you put "&" before any specific letter or number then that letter/number can be used together with ALT key on the keyboard to perform Click.
- When using the code to perform write then you have to use format like SerialDf1forSLCMicroCom1.write("B3:0/0", "1"). This line of code needs to be placed inside a sub (just like Archie explained it in previous posts).