Is it possible to simulate a mouse in Android? Essentially do a software mouse, is what I mean. I have a special Bluetooth device and I'd like to know if it's possible to make an app that could use input from that device and then move and act as a mouse on screen. If it is possible, where would I start as someone who isn't new to programming in Java, but is pretty much new to Android programming?
You may create new MotionEvent instances and dispatch them on the target view with View.dispatchGenericMotionEvent
But playing with these kind of events can be tricky, you need to generate events the same way the system would do it, if you don't you may have unpredictable behaviors
Related
Right, I had an HTC artemis before my HTC Diamond, and I went out and baught one of
those nifty little W100 remotes. As you'll all know by now (or at least you should do) that
they only work for windows media player, and are not mappable. I want to change this!
Now, i've had a look around the file system, and in the registry, and I've found some things
that i'm curious about...
h2w_accessory.dll seems to be referenced as an active device/driver, and this seems to
be the only thing that could be remotely related to the remote. There has to be some kind
it "middle man" to open WMP and pass it the commands, and I want to gain access into it,
to break it open and generate button press events...
I have tried to access all of the serial ports by writing a small program, to see if the remote
communicated via a simple serial interface, but this yeilded no results. I have listened for
button events system wide, also via a simple program I made, but this also yeilded nothing
useful.
Does anyone know anything more about the inner workings of this remote control's drivers,
and would like to try and help make a solution, hopefully for ALL HTC devices.
I hope we can all finally get our heads down and crack open this remote for the good of
the community, and finally show HTC how to make a remote control useful for more of the
Windows Mobile population...
I am curious about this plug-in for the Locale app. I think it has a lot of potential but am failing to understand how to use it. If anyone has successfully configured this plugin to work for a situation I would like to hear about the details of the configuration. Thanks
Locale Variables Android
I just downloaded this yesterday.
Check out this site droidmunkey.com/localeVariables/" to see one example of how it is used.
Basically, you can assign one condition a variable and then use the variable to activate another action. The possibilities are endless. There was one instance where I created one condition that referred to another and back again which caused my phone to crash over and over but I beat it by quickly (upon phone startup) disabling Locale.
I feel that this only scratches the surface on the usage of this Locale Plug-In but with the lack of support on the web for the variables plug-in specifically, hopefully people will land here and leave some info. Let me know how you have used it.
I am a Personal Trainer not a programmer.
uppereastsidepersonaltraining.com
Hi
I'm using a program called remotedroid which connects to the pc and can send keyboard press events to it.
I've been trying to play around with eclipse and create a new soft keyboard to make keyboard shortcuts (like ctrl+alt+delete) but I couldn't find a way to use special keys like ctrl or alt.
Is there any way that a soft keyboard could simulate REAL keyboard keys?
I know that there is an option in android vnc that can send those special keys to the pc.
Does anyone know how to do this?
thanks
eli88 said:
Hi
I'm using a program called remotedroid which connects to the pc and can send keyboard press events to it.
I've been trying to play around with eclipse and create a new soft keyboard to make keyboard shortcuts (like ctrl+alt+delete) but I couldn't find a way to use special keys like ctrl or alt.
Is there any way that a soft keyboard could simulate REAL keyboard keys?
I know that there is an option in android vnc that can send those special keys to the pc.
Does anyone know how to do this?
thanks
Click to expand...
Click to collapse
Not Development related. Moving to Apps.
You could try PhoneMyPC. Its a program for connecting your phone to your PC and interacting with it as if you had a mouse and keyboard.
Hi,
As you know you need to develop a client software for pc to receive and apply key strokes. As I remember there is a library called Win32 API library to invoke special operations that you want to do. It's not possible via sending simple key combinations. I will share If I found more specific info.
Sent from my Nexus One using XDA App
Hi,
I want to create a custom keyboard using a Raspberry Pi. I have a very limited knowledge in Hardware and Electronics. But I know how to code in Java/Python/C/C++ very well.
The keyboard should be able to store every text file that I type into it. That is, it should have an internal storage. Additionally, it should be able to connect to any Android/iOS/Windows device like smartphone, tablet etc, so that all text content typed is shown in the required device in real time. All text typed should also provide real time audio feedback. As a trial I have created 2 prototypes where one is running on Raspberry Pi with internal storage with real time audio feedback. And another device which runs on Arduino Leonardo to connect to hand-held devices. But for the final product we need to create a single device with both features in built.
In summary, here are my requirements:
Audio feedback: Recites every word I type in real time through headphone jack.
Internal storage: The keyboard should have an internal storage slot to store what I type.
Portable: It should be easy and light to carry around.
Cost effective: It should use cost effective solutions/materials.
Plug-N-Play: Connect to any Android/iOS/Windows device like smartphone, tablet etc. and act as external keyboard.
Battery Life: The keyboard should have a reasonable battery life.
Questions:
Which model of the Raspberry Pi should I use to create the keyboard. It needs to be an most inexpensive model which can satisfy all the above requirements. Is it possible to use the Raspberry Pi Zero and then add any required modules?
We need a USB HID + Linux version that runs Python or any other distribution with text to speech. Currently, for a prototype, we are using Arduino Leonardo for USB HID and Raspberry Pi (B+ Model) for Text to Speech conversion (we are using Espeak at the moment).
I have a custom design for the keyboard but the ports of the raspberry pi don’t align with the custom design. What options do I have here? Example: Assume, I want the headphone jack to be on the side of the keyboard. But the headphone jack is placed at the bottom in the raspberry pi.
How to create the outer casing for the product? Again, I want to use only cost effective material, yet it should look as professional as possible.
Thanks!!!!!!!!!!!!!
johny_nikhil said:
Hi,
I want to create a custom keyboard using a Raspberry Pi. I have a very limited knowledge in Hardware and Electronics. But I know how to code in Java/Python/C/C++ very well.
The keyboard should be able to store every text file that I type into it. That is, it should have an internal storage. Additionally, it should be able to connect to any Android/iOS/Windows device like smartphone, tablet etc, so that all text content typed is shown in the required device in real time. All text typed should also provide real time audio feedback. As a trial I have created 2 prototypes where one is running on Raspberry Pi with internal storage with real time audio feedback. And another device which runs on Arduino Leonardo to connect to hand-held devices. But for the final product we need to create a single device with both features in built.
In summary, here are my requirements:
Audio feedback: Recites every word I type in real time through headphone jack.
Internal storage: The keyboard should have an internal storage slot to store what I type.
Portable: It should be easy and light to carry around.
Cost effective: It should use cost effective solutions/materials.
Plug-N-Play: Connect to any Android/iOS/Windows device like smartphone, tablet etc. and act as external keyboard.
Battery Life: The keyboard should have a reasonable battery life.
Questions:
Which model of the Raspberry Pi should I use to create the keyboard. It needs to be an most inexpensive model which can satisfy all the above requirements. Is it possible to use the Raspberry Pi Zero and then add any required modules?
I have a custom design for the keyboard but the ports of the raspberry pi don’t align with the custom design. What options do I have here? Example: Assume, I want the headphone jack to be on the side of the keyboard. But the headphone jack is placed at the bottom in the raspberry pi.
How to create the outer casing for the product? Again, I want to use only cost effective material, yet it should look as professional as possible.
Click to expand...
Click to collapse
Did u complete it.if yes plz ping me
---------- Post added at 04:51 AM ---------- Previous post was at 04:50 AM ----------
Plz ping me i want to know about your project
Hey all,
I've owned Tasker for quite some time but I'm trying to get back into it lately. I like the idea of hitting a task widget button on my phone and it creating an automation sequence of sorts. Recently I synchronized Tasker, Google Assistant, Join, EventGhost, & IFTTT as I hear it's a start to PC automation.
Right now I'm struggling past this point, feel I'm behind, and a post like this could be a fast information grabber with insight.
Scenario: I would like the task to check and see if I'm logged in on my PC or not, if I'm not, it automatically fills my password in and logs me in. If I was already logged in, maybe bypass the login step unless running the login sequence wouldn't throw off the rest of the script if logged in already.. It would then execute a program, when the program is running 100% loaded, it executes some clicks inside of the software then it's done. My resolution stays the same always so if there is a x,y coordinate system of some sort like an autoIt script for the PC automation part, I believe that would work for me? Maybe something else besides an autoIt script??
I know EventGhost can apparently run as a service using software like Firedaemon. I'm running Windows 10, which apparently can help for the login part. I feel I'm so close to nailing out a logic, but I'm curious as to how some seasoned users might handle such a Tasker Task.
Any help is greatly appreciated!
Thanks!
Mark7807
I'll admit, I'm not a Windows person and I'll always script before looking for a gui solution. So help me understand why you would look for ways to interact with the desktop in this manner. It just seems overly complex to me.
Why not just set up a Tasker task to ssh into the W10 machine and execute a script to accomplish your task?
+1 to ktmom, you could also try an arduino hid keyboard and try to remote control it to put in windows password. with some tinkering you could controll this with bluetooth via android