Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>simulate keypresses

simulate keypresses

mic2100
03-15-2006, 03:16 PM
How could i simulate keypresses when a screen loads up.

the keys i need to simulate are:

ctrl + F1

but if this is not possible i can change the interface program to accept different key presses.

felgall
03-15-2006, 10:35 PM
That keypress would be intercepted by either the operating system or browser and would never reach the web page in the first place even if it were entered. Web pages have on ability to access anything outside of the browser window and therefore can't send a CTRL+F1 (Also you have no way to tell what your visitor has configured that key combination on their computer to do - on my computer it does nothing from within the browser window anyway - to simulate a key that does nothing just write no code).

mic2100
03-16-2006, 09:12 AM
let say for an instance that i have a site running on my work internal network, every computer has program running on it and i want to make it so that wen a page certain page opens it automatically dials the number, this can be achieved by highlighting the number and pressing a combination of keys.

Is there any combination i could use that would be passed to the web browser. I am quite new to javascript and don't really have a clue about most of it, so any help would be greatly received.

Beagle
03-16-2006, 04:03 PM
JavaScript inside a browser cannot accomplish what you are trying to do. The browser is a limited application, it can only do certain things.

What you're looking for, I think, is either a plugin/greasemonkey script for firefox OR an applet OR some kind of external application that reads your screen and interacts with the shell, kind of a like a screen capture program.

I'm not well versed in that area, but most people who write simple screen cap programs do so to make bots to play web games. You might want to try to find something like that on google.


 

TOP

Hyperthreading hurts s
HP sharpens blade PC l
Apple goes for Quad po
Itanium gets scaled do

For more info

HP sharpens blade PC l
Hyperthreading hurts s
can not call click() i
script does not work o
smart menu 
write to an html file 
FireFox doesn't recogn
Changing e.keyCode (e.
Clearing a range creat
UPDATE: My mouse over 

News Archive

onChange Help 
beforeload? vs onload.
Problem with document.
decreasing my javascri
Problem with \\ and \ 
how to stop scrolling?
Change Label Text Colo
Can I forward a page b
2 javascript functions
Validating a textbox 

Related stories:

Textarea onchange function
Horizontal window scrolling on mouseclick
Changing contents in one iFrame after another loads
how to pass the dom object of current html page to java
Scrolling Text Problem
Code works in Firefox but not in Internet Exploder
Having a problem deleting a cookie... can anyone help
Upload pic and text to new html file
Need help with two radio buttons controlling on Div hide/show

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics