Hey guys, got this little idea for an "assistive" script. Basically the only thing i want it to do is to press the proper number key for a certain answer in a dialogue window when the dialogue is active. so basically I'm going self-play but with a script quick skipping a certain dialogue now and then. I'm still very fresh to osbot and java scripting, so far I've only made a shop-buyer that quick hops between worlds, very basic stuff. The info and help I'm looking for is maybe an example/snippet that shows how to send keystrokes with osbot when a certain dialogue is open.
Hopefully this is not too much to ask for, if I manage to make something cool out of it I'll just share it here and give back to the forum for helping!
something like
dialogues.selectOption
but that instead of clicks with the mouse use the corresponding hotkey for the answer.