Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Select drop down element with VBScript

Reply
 
Old 09-21-2008   #1 (permalink)
LuisE


 
 

Select drop down element with VBScript

I need to activate an application (List Grabber) window that only contains a
dropdown from which I want two select the second element.

I tried using sendkeys {Tab} to activate the dropdown but it doesn't work

Thanks in advance

My System SpecsSystem Spec
Old 09-21-2008   #2 (permalink)
Al Dunbar


 
 

Re: Select drop down element with VBScript

Did your script wait long enough after activating the application for it to
be ready to process the keyboard input? And did the application window have
focus at the time?

/Al

"LuisE" <legonzales@xxxxxx> wrote in message
newsFC9247E-198C-4157-A50E-D571DC8E0E87@xxxxxx
Quote:

>I need to activate an application (List Grabber) window that only contains
>a
> dropdown from which I want two select the second element.
>
> I tried using sendkeys {Tab} to activate the dropdown but it doesn't work
>
> Thanks in advance

My System SpecsSystem Spec
Old 09-21-2008   #3 (permalink)
LuisE


 
 

Re: Select drop down element with VBScript

Thanks Al
Yes, it does, the problem is that when I manually activate the window and
try Tab, Enter, Arrows none of them work, it only responds when I use the
mouse



"Al Dunbar" wrote:
Quote:

> Did your script wait long enough after activating the application for it to
> be ready to process the keyboard input? And did the application window have
> focus at the time?
>
> /Al
>
My System SpecsSystem Spec
Old 09-22-2008   #4 (permalink)
Al Dunbar


 
 

Re: Select drop down element with VBScript


"LuisE" <legonzales@xxxxxx> wrote in message
news:34F79F42-84A5-4FE6-80D1-C0A9E9ED317D@xxxxxx
Quote:

> Thanks Al
> Yes, it does, the problem is that when I manually activate the window and
> try Tab, Enter, Arrows none of them work, it only responds when I use the
> mouse
If the application does not handle actual keyboard input, it seems highly
unlikely that it would respond favourably to simulated keyboard input.

You will need to look for a mouse input simulator - unfortunately, there is
no sendkeys equivalent (sendmice) available in WSH.

What kind of application is this? It certainly does not adhere to the
concept of accessibility if its only interface is with the mouse.


/Al
Quote:

> "Al Dunbar" wrote:
>
Quote:

>> Did your script wait long enough after activating the application for it
>> to
>> be ready to process the keyboard input? And did the application window
>> have
>> focus at the time?
>>
>> /Al
>>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to do No hang up VBScript (nohup for VBScript) VB Script
Select Files - Disable or Enable Full Row Select Tutorials
Multiple File Select and Select All Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46