Hello Guest it is April 27, 2024, 10:04:51 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dobrzann

Pages: 1
1
I think the simplest way is an add this Keyboard InputsToggle() here:

Code: [Select]
-------------------------------------------------------
--  PLC First Run
-------------------------------------------------------

if (testcount == 1) then --Set Keyboard input startup state
    local iReg = mc.mcIoGetHandle (inst, "Keyboard/Enable")
    mc.mcIoSetState(iReg, 1) --Set register to 1 to ensure KeyboardInputsToggle function will do a disable.
    KeyboardInputsToggle() -- This make KeyboardInputsToggle disable
    prb.LoadSettings()

    KeyboardInputsToggle() --This make KeyboardInputsToggle enable


Or try add KeyboardInputsToggle() to UP and DOWN script of Enable button.

Pages: 1