Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
i dont know if this can be done
is it possible to have or create a php script to
move the mouse pointer (windows) to a disired position
on a web page then left click to activate for example a hyper link ?
can some one please point me in the right direction
for the php command that can do this or a ready made
php script that can do this.
the reason why im doing this is
a family member has disabilities
and i want to make his life a tiny bit
better by having some partial automation
when he is on the internet.
what i notice is he visits 1 particular website or spend
most of his time there each day. he tends to read a lot from the
site but after a few hours eye strain and fingers becomes
tired so what i thought was this.
all operations will be done localy on his machine.
first, he goes to his favorite site and begin reading
then after 45 - 60 minutes maybe java/php could move the
mouse pointer to the next topic by clicking.
i already done a few local programs for him to get his teeth
into with php but this mouse automation thingy is giving me
grief.
do you think that java script and php could be the solution here
and if so can you still point me in the right direction ?
I think you are looking at this from the wrong angle Your always going to find it hard to manipulate the client machine. Think of security implications if a website could control your mouse/keyboard!
Better yet,
1. capture the contents of the page using file_get_contents(), or cURL, or the other many file handling functions.
2. capture the next link you want to visit using regular expression (we also have a regex forum here)
3. set javascript's setTimeout to redirect to next link using the link captured in regular expression after x minutes
4. display the contents of the page you captured in step 1