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.