Jump to content
Sign in to follow this  

GUI Control does not accept TAB

Recommended Posts

Normally, when we want to move the cursor from one GUI control to another by keyboard, we use TAB.

eg: from InputBox created by GUICtrlCreateInput to another InputBox created by the same function.

Why on my GUI, TAB is not functioning like it should be?

When I press TAB, it doesn't move to another control, instead it play a beep sound.

My GUI contain 1 parent and few child GUI.

Some few child GUI accept TAB to move around control, but most child GUI dont.

Unfortunetely, I cant post the code or create a producer.

Is anybody ever in the same situation? Weird :

Share this post

Link to post
Share on other sites


ChildGUI is created  using GUICreate("", 50,50, $iLeftWidth + 2, $iT, $WS_POPUP, -1, $hMainGUI)

Control in ChildGUI which has no problem with TAB STOP has a identical STYLE and EXSTYLE with control is ChildGUI that has a problem with TAB STOP,

verified using:

$Style = _WinAPI_GetWindowLong(GUICtrlGetHandle($hWnd), $GWL_STYLE)
$ExStyle = _WinAPI_GetWindowLong(GUICtrlGetHandle($hWnd), $GWL_EXSTYLE)


So it has nothing to do with STYLE and EXSTYLE.

I found that sometime the TAB STOP works, after I move around on those different ChildGUI and randomly click on those controls.

What can caused this?

Share this post

Link to post
Share on other sites

I solved this. I found that if I navigate manually through each child GUI and press TAB few times on that GUI, the TAB is working, so when the script start,

I'm using ControlSend to navigate it

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...