From: Brandon
I did not force the canvas to request focus. You always needed to click inside the frame for it to allow you to type. The only thing I changed was the Alt-Menu which messed up quite a lot. Is there a reason you don't want to click before typing? With SMART Disabled all input goes through.
I guess I can patch that but I'm not sure if it is really necessary.
My main concern is that when I have a script running that will use the keyboard to either click the action bar or perform other functions, Alt+tab-ing out of SMART is going to stop that script from running, because the keyboard clicks won't go through. I usually bot while baby sitting the script, and I continually Alt+tab in and out of SMART to check on it.
I mentioned the SMART disabled portion because I thought maybe it would be useful info (and I wanted to be thorough and not miss anything) because it acts differently, where pressing ALT again while SMART is enabled will return function to keyboard presses through SMART, but pressing ALT doesn't fix the issue when SMART is disabled. Sorry if that was irrelevant information.
With Smart Enabled:
If I Alt+Tab out of Smart then click back in or Alt+Tab back in, the keyboard presses from my scripts will stop functioning (except the enter key, and whatever is typed in the RS chat box) so for example:
if I have a script:
typeSend('1', false);
to click the action bar. Slot 1 won't be activated.
However, If I have the script type "1" in the chat box like so:
TypeByte(VK_ENTER);
typeSend('1');
The "1" will be typed in the chat box.
Thirdly If i have a script doing both, typing 1 in the Chat box and sending first, then pressing 1 for the action bar like so:
TypeByte(VK_ENTER);
typeSend('1');
typeSend('1', false);
The first "1" will be typed, but the second "1" will not activate slot 1 in the Action bar
Now, If I Alt+Tab out of SMART, then come back which ever way I choose, then press Alt once, on the keyboard. The scripts from the previous example will all yield the results they are supposed to.
All of the previous was done with SMART enabled, which is what I care about.
I have also noticed that holding down ALT (without Alt+Tab-ing out of SMART) while running the scripts will yield the same results as the first set of attempts.
Is there any solution to that problem? Is this only happening to me?
If there Isn't a fix I'll just try to avoid using Alt Tab while botting. Thank you for all your help, I really appreciate it!