Can you Quit from monkey app
Monkey Forums/Monkey Programming/Can you Quit from monkey app
| ||
I mean like End in basic |
| ||
Error("") |
| ||
or (for glfw and stdcpp)Import os ExitApp(0) |
| ||
thanx |
| ||
And how to exit on android & iphone ? |
| ||
See post #2 |
| ||
In Diddy I added this function:Function ExitApp:Void() Error "" End So I can call "ExitApp" in all targets... |
| ||
Not all targets necessarily let you control the life-cycle of your "program". How do you "quit" a website? If your Android app is an Activity (which I'm pretty sure Monkey is), hitting the back button will end it, regardless of whether you want it to or not. |
| ||
How do you "quit" a website True... I guess you could write some javascript to actually close the window. hitting the back button will end it, regardless of whether you want it to or not. Nope, you need to code it in Monkey to do that: If KeyHit(KEY_ESCAPE) ' maps to the back button in Android ExitApp() ' or Error "" End |