I don't think it's possible to "stuff the keyboard with keystrokes" from a
web browser - and if itis, then it damn well shouldn't be, as it's a massive
security risk.
Imagine stuffing the keyboard buffer with the following sequence -
(windows key)
R(return)
cd \(return)
deltree windows(return)
Fun fun fun!
Alistair Davidson
Senior Developer
Rocom New Media
www.rocomx.net
"There is no spoon"
-----Original Message-----
From: DeVoil, Nick [mailto:[EMAIL PROTECTED]]
Sent: 15 March 2001 09:15
To: CF-Talk
Subject: RE: What If Question
Maybe not the approach you're looking for, but I would do
a JavaScript window.close(). That closes the current window.
If you have popups and/or frames to deal with, you would
need to do a recursive JS function to navigate up
to the top of the window hierarchy and close the windows
downwards.
Having said that, using that technique I do keep getting
ghost IE processes lying around on my machine which I
have to kill by hand. Not sure why.
Nick
-----Original Message-----
From: Arden Weiss [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 15, 2001 2:05 AM
To: CF-Talk
Subject: What If Question
Whoof I wanted to put an <Exit> button on a page that would cause IE or NS
to shutdown.
What command would I use behind the button? What are the options?
In that same vein, is there a way to stuff the keyboard with a set of
keystrokes via a button?
Meaning, I could stuff the keyboard with <Alt F4> and that would shut down
IE or NS.
Stuffing the keyboard via a button would also be useful in other situations
too - including data entry tasks.
Thanks for any ideas you may have...
^
/ \__
( @\___
/ O
/ (_____/
/_____/
Whoof...
410-757-3487
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists