473,379 Members | 1,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

global keyboard events

Hello,

I'm trying to capture all keyboard events from some different web page
layouts: framesets with different stuff, like flash or whatever !
The problem I am getting is that only focused documents get those
events, and even worse, if an "object" like a swf clip gets the focus,
all keyboard events are only sent to that object. What I would like is
to be able to get the events to a particular script/function so I can
handle them globally.
I know there may be some security stuff, like domain of different
frames or this kind of things ... but all the pages/elements will be
on the same server/folder. So,
is there any way to have all events routed to a particular function
easily ? Or is it necessary to explicitly route them on each frame to
the particular place we want them to go; and is there a way to avoid
those plugins eating the events ?

Thanks !

Pat
Jul 20 '05 #1
2 3391
Patricio Stegmann hu kiteb:
Hello,

I'm trying to capture all keyboard events from some different web page
layouts: framesets with different stuff, like flash or whatever !
The problem I am getting is that only focused documents get those
events, ... is there any way to have all events routed to a particular function
easily ? Or is it necessary to explicitly route them on each frame to
the particular place we want them to go; and is there a way to avoid
those plugins eating the events ?


As I understand it, the definition of focus is that the focused object
is the object that interacts with the various input devices. So making a
page without intercepts the keyboard without having focus is logically
impossible.

Suppose I am running my favourite word processor in the foreground and
your web page in the background. Why do you want to intercept
mynovel.doc that I am writing while websurfing? It strikes me that this
kind of script, if possible, could be used for stuff far more nefarious
than reading my novel as I write it.

I may, of course, be wrong here. Perhaps you aren't writing spyware.
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk
Jul 20 '05 #2
"Fabian" <la****@hotmail.com> wrote in message news:<bq*************@ID-174912.news.uni-berlin.de>...
Patricio Stegmann hu kiteb:
Hello,

I'm trying to capture all keyboard events from some different web page
layouts: framesets with different stuff, like flash or whatever !
The problem I am getting is that only focused documents get those
events, ...

is there any way to have all events routed to a particular function
easily ? Or is it necessary to explicitly route them on each frame to
the particular place we want them to go; and is there a way to avoid
those plugins eating the events ?


As I understand it, the definition of focus is that the focused object
is the object that interacts with the various input devices. So making a
page without intercepts the keyboard without having focus is logically
impossible.

Suppose I am running my favourite word processor in the foreground and
your web page in the background. Why do you want to intercept
mynovel.doc that I am writing while websurfing? It strikes me that this
kind of script, if possible, could be used for stuff far more nefarious
than reading my novel as I write it.

I may, of course, be wrong here. Perhaps you aren't writing spyware.
--


Hi Fabian,

Believe me, I am not writing any kind of spyware or whatever !!!
Actually we are developping some web applications (elearning apps)
that use extensive interactivity and offer some nice tools for the
learner. Tha whole applications are driven via an API which controls
many aspects of the pages. And browsers and standards are enough
secure to disallow any kind of tricks. I know I could do what I want
by explicitly route events to that API but it would be easier if there
was any kind of syntax for this.
I understand what you say about "independance of objects" but in a web
page it is kind of different because in my case there is ONE window,
and DOM allows frames to talk to each other ...
Hope there is some kind of solution to this ...

Pat
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Marek Mand | last post by:
How to use generated keyboard events? What I am trying here to do is in onkeyup event handler http://www.hot.ee/idaliiga/braggart/createEventTest.htm generate a (shift)TAB keydown so the...
13
by: lost hope | last post by:
hi, i have a very simple html page with a global variable, a function to increment its value, and a form that calls the function. however, what happens is that every time i click the image, the...
2
by: wesmanjunk | last post by:
does anyone know how to generate keyboard events in another application? like public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam); can be used for mouse...
1
by: Víctor | last post by:
Hello, I'm doing a kind of Windows TaskBar application and I've found a problem. When I want to show open application's buttons I need to search in each Process running at PC and system becomes...
0
by: luc.saffre | last post by:
Hello, I thought that I should ask here for comments on a blog entry that I wrote some weeks ago. I am sure that other people have been thinking about this, but I didn't yet find them. The...
0
by: Gamey | last post by:
I have an application that NEEDS (don't ask) to handle additional mouse and keyboard processing during DoDragDrop. Normally, DoDragDrop kindly squashes all keyboard and mouse events. Alternate,...
3
by: wbyeats | last post by:
Hi, I would like to enable my VC++ application to capture general mouse and keyboard events (click, double-click, key press) that occur outside of my application's frame (eg. clicking inside the...
9
by: Gandalf | last post by:
I use WX on windows XP and I try to generate an event when the user is clicking the keyboard while the application frame is not in focus. All I manged to do were while the application frame is in...
13
by: andypb123 | last post by:
Hello, The onchange event fires in IE6 in a SELECT element when scrolling through the list with the up and down arrows on the keyboard. In Firefox it only fires after you hit the enter key, which...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.