Sign in to follow this  
Followers 0
sumanthupar

How to send TAB function to an inactive window

3 posts in this topic

Hi,

Anyone knows how to send TAB Function to an inactive window...can we use controlsend to do this...if so please let me know hoe to do .

TIA

Share this post


Link to post
Share on other sites



Hi sumanthupar,

  Yes, according to the help file it is possible:

ControlSend() works in a similar way to Send() but it can send key strokes directly to a window/control, rather than just to the active window.

ControlSend() is only unreliable for command prompts as that works differently to normal windows (seems to check physical states rather than accepting the keystroke messages). For normal windows ControlSend() should be way more reliable than a normal Send() - and yes it does send shift, ctrl, alt etc.

 

Use the window info tool to get some info about your window and then add this info to the ControlSend Parameter.

Give it a shot and come back if you get stuck.

Bill

Share this post


Link to post
Share on other sites

Thanx...for the suggestion..it's working fine for me...

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  
Followers 0