Aloha,
TL;DR I need tab to go to next field, even when inside of a text box, where the key only produces an indent and is stuck inside the text box.
I'm hoping this is a quick solution. I found plenty of topics addressing the opposite of this, but have an app I interact with that would sure be easier to use if I could tab to the "OK" button underneath the text box.
Tab works up until I reach that, since it allows text formatting options.
Once I'm there, all tab does is create an indent. I need it to go to the next field.
I never use indent at my job, anywhere, ever, so if the only solution that comes up involves disabling that? I'm game.
Is there something like {Nextfield} or {Nextbutton} that I can use after sendinput?
Tab function vs tab character
Re: Tab function vs tab character
How about having the script perform a mouse click in the next field to move the keyboard focus to it? Better yet, see if the app has individual controls so that you can use ControlFocus to move to that field. The first step is seeing if the various fields have unique control names by using the Window Spy tool that comes with AHK.
Re: Tab function vs tab character
I agree.
In case that fails, in some cases, although pressing TAB inserts a tab character, pressing SHIFT+TAB navigates to the previous control. It might be possible to send that sequence multiple times, to navigate the controls in a reverse sequence, until you get to the right one.
Another strategy can be sending a keyboard shortcut to jump to a different control, and then sending TAB to get to the right control from there.
In case that fails, in some cases, although pressing TAB inserts a tab character, pressing SHIFT+TAB navigates to the previous control. It might be possible to send that sequence multiple times, to navigate the controls in a reverse sequence, until you get to the right one.
Another strategy can be sending a keyboard shortcut to jump to a different control, and then sending TAB to get to the right control from there.
Re: Tab function vs tab character
Thanks guys, I'll try to set some time aside to learn the control function. I was just kinda hoping there was something I could throw in some brackets that specifically meant next field and decided to ask here first. AHK did a great job of accounting for every other key with multiple uses, I was thinking "There's gotta be..." lol
Again, thanks all.
Again, thanks all.
Re: Tab function vs tab character
If you don't care about inserting tab characters, it might be possible to set up a Tab hotkey that does something different when you press that key. You could then also set ^Tab to send the tab character.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], isuckatahk, jly and 43 guests