Posted 08 March 2014 - 03:15 AM
This code isn't working I cant see why
its part of this and this
It prints fine but doesnt run the os.shell bit
its part of this and this
It prints fine but doesnt run the os.shell bit
while true do
event, side, xPos, yPos = os.pullEvent("monitor_touch")
print(event .. " => Side: " .. tostring(side) .. ", " ..
"X: " .. tostring(xPos) .. ", " ..
"Y: " .. tostring(yPos))
if yPos == 13 and xPos >= 10 and xPos <= 15 then
os.shell("TankMon") -- end the function
end
end
end