- Joined
- Aug 7, 2013
- Messages
- 262
- Thread Author
- #1
Like the Camera, I would want the Keyboard to have concurrent functions.
They should meet the following criteria:
They should meet the following criteria:
- I want to type at humanlike speed on a different thread
- I want to be able to pause/halt the message that is currently being typed
- I want to be able to cancel/stop the message that is currently being typed
- Keyboard.passivelyType(String message) - see: Threaded function renaming
Keyboard.passivelyType(String message, int interrupt) - possible values include Keyboard.PAUSE and Keyboard.STOP, this function would interrupt anything being typed.
- Keyboard.clear(int times) - Presses backspace x times
- Keyboard.clear(Condition condition) - Keeps calling clear(1) while condition returns true
- Keyboard.clear(Condition condition, int limit) - Limits the clear function from being called too often
- Keyboard.stop(int clear) - Stops whatever is being typed; cannot be resumed
- Keyboard.pause - Pauses whatever is being typed
- Keyboard.resume - Resumes whatever was being typed