11
Mach4 General Discussion / Re: Mach 4 Exit button for touchscreen
« on: December 19, 2019, 12:34:43 PM »
Ok so i'm trying to get mach to recognize an Enter keypress. Here is the code i found pertaining to keypress in LUA. I have a textbox that i want to enter code and when i press the enter key i want the code to run as an MDI command. The code below is supposed to recognize when an enter key is pressed, I have all this in the On Modify Script of the textbox. When i write something in the textbox and press enter nothing happens. What is the purpose of the On Modify Script, and the On Update Script?
while true do
if keyPress(13)==true then
wx.wxMessageBox("You Just Pressed Enter")
end
end
while true do
if keyPress(13)==true then
wx.wxMessageBox("You Just Pressed Enter")
end
end