Hi, I have a rollout with a few button which i want to link to any keyboard key for easy access. even shift or alt key will do. I am not sure how to link the rollout button with key.
on keyboard.shiftPressed() do
(btnnext.pressed())
Forum topic · General Scripting
By zahid hasan · 2020-05-27
Hi, I have a rollout with a few button which i want to link to any keyboard key for easy access. even shift or alt key will do. I am not sure how to link the rollout button with key.
on keyboard.shiftPressed() do
(btnnext.pressed())
Comments (8)
Comment policy
.
If you want to keep it simple then use a timer and check for any key combination on tick event
Using macros for such task is an overkill, imho.
Thank you.
I shall try to implement it, and let you know.
Its very basic dotnet, still i shall need a bit time to understand it properly and tweak.
Really appreciate your quick replies.
It is freezing max. I used it both in and out of Rollout body.
Am i doing it wrong?
.
of course it freezes max, it's just an example of the idea ;)
Use a timer control in your rollout and do these key-combination checks inside its tick event.
another example:
Thank You. Will try it tonight. :-)
It is working perfectly. Thanks a lot.
.
Create a macorscripts to press the keys on your toolbar.
For example:
Its a wonderful solution. Thank you Miauu.
All i have to do is assign hotkeys to that macro.