![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
What do you mean with 'foto light'? Which device is it?
__________________
Basic4ppc reference list |
|
||||
|
As far as I know that is currently not possible. Though Samsung has a SDK for these devices so we may create a Samsung specific library in the future.
__________________
Basic4ppc reference list |
|
|||
|
But i found this example.
It is definitly possible. Would you or someone else be able to use this code and create a library for basic4ppc. I hope you can. I want to create an alarmclock that turns on the light when it starts ringing. |
|
|||
|
At this link:
Moto Q Flashlight | CharltonFamily.net you can find another example (and source code) for activating the Flash light. Although it's for Moto Q, the documentation says it might work on other Windows Mobile devices as well. The source code includes the code for the native-library (however, on the page you may find the library already compiled) but more importantly, it includes a wrapper for this library in C#. I have no device with a Flash so I can't test. Don't blame me if it doesn't work, if it ruins your device or if you need to make a hard-reset. Good luck.
__________________
rgds, moster67 |
|
||||
|
I'm checking this out currently. I hope there will be an answer in a couple of hours.
__________________
Basic4ppc help and documentation |
|
|||
|
BehindA:
if you let me have your e-mail, I can send you a sample application including the libraries needed. The documentation says it MIGHT work on other Windows Mobile devices as well but there are no guarantees. As mentioned before, I have no device with a Flash so I can't test. Don't blame me if it doesn't work, if it ruins your device or if you need to make a hard-reset. The choice is yours alone if you want to test it or not. Edit: I should also add that I believe getting the flash to work might not be easy since it is also hardware-specific (probably Motorola, HTC, Samsung and so forth have implemented their own APIs). If, however, it works against all odds, I guess you must be very careful since the flash (the lamp) has surely not been designed to remain "on" for many seconds and it might break. I mean, when I use the flash on my normal digital camera, the flash gets enabled only for a very short period of time, probably a fraction of a second.
__________________
rgds, moster67 Last edited by moster67 : 09-02-2009 at 08:28 PM. |
|
|||
|
Hi moster67,
i just tried the .exe-file of the MotoQFlashlite-archive. It didn't work on my samsung omnia... But the file i uploaded is especially for my device and did work. Do you think you are able to take the .dll file i loaded up and convert it to a .dll that i can use with basic4ppc?? The sources are also included in the above .zip folder. But my knowledge about programming with c++ an so on is really not enough to handle those files.... |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Turn off screen and lock device | Hitec | Questions & Help Needed | 2 | 08-02-2009 04:43 PM |
| Turn off the Device | Georg | Questions & Help Needed | 1 | 07-07-2009 10:30 PM |
| USB Ports and Camera | ceaser | Questions & Help Needed | 2 | 05-04-2009 06:20 PM |
| A problem with the GPSDriver when turn off the screen | schimanski | Questions & Help Needed | 9 | 02-21-2009 02:38 PM |
| Metronome with tempo light | Cor | Questions & Help Needed | 0 | 01-24-2008 10:27 PM |