simulating a hardware key press via pocket IE?

  • Thread starter Thread starter Milsnips
  • Start date Start date
M

Milsnips

hi there,

any word on if and how this is possible? Say there is a button on the
pocketIE form, and i when clicked i want it to simulate a hardware button
being pressed - eg. barcode scan button.

Any feedback appreciated.
thanks,
Paul
 
I guess that you could do it with some JavaScript and an ActiveX control (to
do the actual key simulation). If I were you, I'd look at whether this is
really useful and is really a requirement, as such a system is a lot to
maintain.

Paul T.
 
Thanks for your reply,

Yeh its not a solution i'd choose to go with either, however there are some
out there programming web based PDA solutions that are run via a browser
application, thats the main reason i was asking.
I assumed that ActiveX would most likely do the trick for this too.
thanks,
Paul

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:[email protected]...
 
OK, but why do you need to push keys into the keyboard buffer? We have a
number of users of our devices that are running Web-based applications and
I've never been asked for this.

Paul T.

Milsnips said:
Thanks for your reply,

Yeh its not a solution i'd choose to go with either, however there are
some out there programming web based PDA solutions that are run via a
browser application, thats the main reason i was asking.
I assumed that ActiveX would most likely do the trick for this too.
thanks,
Paul

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:[email protected]...
I guess that you could do it with some JavaScript and an ActiveX control
(to do the actual key simulation). If I were you, I'd look at whether
this is really useful and is really a requirement, as such a system is a
lot to maintain.

Paul T.
 
To tell you the truth i'm not too sure, i can only assume someone might want
to do something like print a report to a mobile printer via the web based
app - something like that?

At the moment i'm printing in my c# mobile windows forms app by sending data
to the serial port, i guess something like this can only be done by passing
the data to an activeX control and letting it communicate with serial port.

regards,
Paul

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:%[email protected]...
OK, but why do you need to push keys into the keyboard buffer? We have a
number of users of our devices that are running Web-based applications and
I've never been asked for this.

Paul T.

Milsnips said:
Thanks for your reply,

Yeh its not a solution i'd choose to go with either, however there are
some out there programming web based PDA solutions that are run via a
browser application, thats the main reason i was asking.
I assumed that ActiveX would most likely do the trick for this too.
thanks,
Paul

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> wrote in message news:[email protected]...
I guess that you could do it with some JavaScript and an ActiveX control
(to do the actual key simulation). If I were you, I'd look at whether
this is really useful and is really a requirement, as such a system is a
lot to maintain.

Paul T.

hi there,

any word on if and how this is possible? Say there is a button on the
pocketIE form, and i when clicked i want it to simulate a hardware
button being pressed - eg. barcode scan button.

Any feedback appreciated.
thanks,
Paul
 
Seems like that would be accomplished with JavaScript, although you couldn't
send characters directly to the serial port, of course. Seems like you
should be able to trigger printing from the browser that way, although you
might not have a driver for your printer, of course. Yes, an ActiveX
control, suitably scripted with JavaScript, is probably the easiest way to
do this.

It doesn't seem like triggering a hardware keypress has anything to do with
this, no?

Paul T.

Milsnips said:
To tell you the truth i'm not too sure, i can only assume someone might
want to do something like print a report to a mobile printer via the web
based app - something like that?

At the moment i'm printing in my c# mobile windows forms app by sending
data to the serial port, i guess something like this can only be done by
passing the data to an activeX control and letting it communicate with
serial port.

regards,
Paul

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:%[email protected]...
OK, but why do you need to push keys into the keyboard buffer? We have a
number of users of our devices that are running Web-based applications
and I've never been asked for this.

Paul T.

Milsnips said:
Thanks for your reply,

Yeh its not a solution i'd choose to go with either, however there are
some out there programming web based PDA solutions that are run via a
browser application, thats the main reason i was asking.
I assumed that ActiveX would most likely do the trick for this too.
thanks,
Paul

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> wrote in message I guess that you could do it with some JavaScript and an ActiveX control
(to do the actual key simulation). If I were you, I'd look at whether
this is really useful and is really a requirement, as such a system is a
lot to maintain.

Paul T.

hi there,

any word on if and how this is possible? Say there is a button on the
pocketIE form, and i when clicked i want it to simulate a hardware
button being pressed - eg. barcode scan button.

Any feedback appreciated.
thanks,
Paul
 
Hi Milsnips,

I need your help, i am developing a PDA application and we have one
requirement that while we press a button on a form(screen) in my application
, then Device hot key(which is called Button 5, used for scanning - for HP
device), should
start scanning.

Any idea , how can i achieve it?

Thanx and waiting for your reply.

Mahendra
 
keybd_event() should be able to do this. Read the archives for a P/Invoke
wrapper. Are you sure that there's not an API that you can call to start
scanning? It seems pretty brittle to force a particular key into the input
stream.

Paul T.
 
With a key, though? Seems like someone wasn't thinking about the poor guy
who has to write a program to control it, especially if that key is
configurable...

Paul T.
 
Back
Top