Click here to Skip to main content
15,917,174 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi
I want to write a application project Which can simulate mouse scroll

Please guide me...

Thanks All
Posted
Updated 28-Nov-13 9:33am
v2
Comments
Zoltán Zörgő 28-Nov-13 15:07pm    
You said webpage, and you tagged your question with c#. Please clarify the link between these two. I have a feeling, that you haven't old us relevant information.
amirpooya 28-Nov-13 15:26pm    
I just want to start my application Minimized Then send mouse position on webpage
then

run my cod in my timer to simulate mouse scroll
[no name] 28-Nov-13 15:25pm    
use jQuery scroll ..
Member 10370658 28-Nov-13 15:45pm    
Friend
Write your logic here or explain in detail what you are going to express?
amirpooya 29-Nov-13 4:54am    
Full Description :
I am working in a company And each day I Should download information from the site in large numbers (300 files) .Because the work is repetitive and constant So it is necessary to write a program that will automatically repeat for get all the files from the site Without user intervention . I have no problem with clicking mouse by Api But Sometimes it is necessary to redirect the web page move to the up or down

how do it by Api Or Other Solution ؟

1 solution

Simple with javascript:

<button onclick="scrollWin()">Click me to scroll Vertically!</button>


XML
<script>
function scrollWin()
{
window.scrollTo(0,10);
}
</script>



Here scrollTo(0,10) has 2 arguments.

> First argument to scroll Horizontally
> Second argument to scroll Vertically

 
Share this answer
 

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