Click here to Skip to main content
14,924,336 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to use a timer to auto scroll a Web page drop down list.
I have managed to get focus on the Web page drop down list, and use a sendkeys statement to automatically scroll down the list.
However when this is running, I am unable to use any other app, because everything else that I try to use is also scrolling down too.
How can I run this to only scroll the web page drop down list, and not any other app.

What I have tried:

I am new to this, and cannot get this to work for me.
Any help or code would be very much appreciated
diginet0 22-Apr-21 9:11am
Which is the code You tried?
Member 12905907 22-Apr-21 10:02am
Hi diginet
The web page dropdown list has an ElementID called "meetings"
I first get the focus on the web page Element using the ID,then use the code below to scroll it down.
The code below,is put into a Timer control.
And a button_click to start the timer.

wb1.Document.GetElementById("meetings").Focus() 'works to get focus on race times
SendKeys.Send("^{DOWN}") 'Code to scroll down race times using a button to start the timer.
SendKeys.SendWait("-1") 'Wait until sendey has completed

When this is running,I am unable to use any other app on my pc (Excel,emails,web browser etc,etc),because they will also scroll downwards too.
My PC is unuseable until the scroll process has completed.
Member 12905907 22-Apr-21 10:18am
Hello diginet
I forgot to mention,the web page that I am currently using is:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900