Holding a number key button down for a few seconds
Asked by
Alsabit Siyyid
Hello, for my particular software, I need to hold down the "1" key for at least 3 seconds to form a binding and save a new view of the screen. I tried the following code to do this:
keyDown("1")
wait(5)
keyUp()
When I do that, Sikuli functions as if I simply pressed the button once as opposed to actually holding down the button for 5 seconds.
I've even added other mouseMove commands in between the key commands to see if that made a difference but it did not. Do you know how I could solve this issue?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Alsabit Siyyid for more information if necessary.
To post a message you must log in.