Home› Programming
Discussion
Back to discussions page
zoddman
Posts: 10 Apprentice
Popups and wiring |
51 views
|
Answered | |
/ Most recent by zoddman
in Programming
|
2 comments |

in Programming
Best Answers
-
matthewd92 Founding Pro, Tactile Sensor Beta Testers Posts: 1,267 Handy
1. Yes there is a way to do this, you would call the popup as script as you can make the popup non blocking then so then the rest of the code can execute, you would then simply use a wait statement to wait on the input. The tricky part is closing the popup as there is not a built in script for doing that. Here is one that would work though;def closePopup(): socket_open("127.0.0.1",29999,"popup")<div><div> socket_send_string("close popup", "popup")</div><div> socket_send_byte(10,"popup")</div><div> socket_close("popup")</div></div>end
On the robot your code would look something like this#Do Something popup("Put some message here and wait for input") wait(forSomeInput) closePopup()
2. I do not know of anyway to change the type of inputs or outputs on the robot. I do know though that the outputs on the arm are different than the cabinet. You sink the outputs on the arm.