RoganDawes

Results 148 comments of RoganDawes
trafficstars

What do you mean by "Hold"? There is already a `delay()` command in HIDScript, if that is what you are after?

Ah, I see what you mean now. So, hid/keyboard.go has a function `PressKeySequence`, which emits the provided reports, followed by an empty report to indicate that all keys have been...

> @RoganDawes You are absolutely right. I think the best approach is with a keySequence. Do you have an idea how to achieve that? I think the approach that I...

> There may still be a requirement to add mappings for the numpad keys, though, I think. I didn't see them when I looked. Actually, the keypad keys are mapped...

No, I was just using the example that you gave. JavaScript can support variable argument length functions, and I'd hope that that could be mapped fairly sanely into Go, perhaps...

In truth, we'd probably be better served by just implementing `hold()` and `release()` functions, but I'm not sure how best to maintain the state across multiple underlying function calls. Perhaps...

Yes, that is correct. As mentioned above, `hid/keyboard.go:PressKeySequence()` accepts an array of reports (where a report is essentially the sequence of 8 bytes that you showed) to emit (excluding the...

Do you see a problem with the `keySequence` approach I suggested? That does exactly what you are suggesting, without the complicated syntax, or potentially confusing semantics. To be clear, the...

> @RoganDawes Did you have the time to continued the development of the coding? I thought perhaps you were going to have a go?

Yeah, I was thinking of running the two turtles in parallel, perhaps with a “Test” button to run it only in the browser, and an “Execute” button to send it...