Hello and thank you for reply
I did it, but not 100%, while the screen is loading the output signal switched on (one time).
It should do that only if I press the external Button
Here is the Code
---------------------------------------------------------------
-- Tool IN / OUT
---------------------------------------------------------------
[mc.ISIG_INPUT3] = function (state)
	if (state == 1) then
		local inst = mc.mcGetInstance();
		local IOName = mc.OSIG_OUTPUT5 --Save the name of the Signal (as stored inside of Mach4)
		local ActivateSignalTime = 1000 --Time in milliseconds that we want the signal to be active.
		local hReg = 0 --The handle to the signal
		local rc = 0
		hSig, rc = mc.mcSignalGetHandle(inst, IOName)
		if (rc ~= 0) then --There was error	
			mc.mcCntlSetLastError(inst, "There was an error")
		else
			rc = mc.mcSignalSetState(hSig, 1) --Turn the output on
				if (rc ~= 0) then --There was error	
					mc.mcCntlSetLastError(inst, "There was an error")
				else
					wx.wxMilliSleep(ActivateSignalTime) --Sleep for the commanded time (so that the output stays on as long as we want).
					rc = mc.mcSignalSetState(hSig, 0) --Turn the output off
						if (rc ~= 0) then --There was error	
							mc.mcCntlSetLastError(inst, "There was an error")
						end
				end
		end
	end
end,
Please, can somebody help me to fix this problem?
Greetings
Oliver