Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Help backlight

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2007, 10:35 AM
Junior Member
 
Join Date: Jun 2007
Posts: 12
Default Help backlight

Hello.
I need to turn off the back light screen, but harware.dll only have a BackLightOn and BackLightNormal.
I need a "BackLightOff". Can someone do like this?
Tanks.
for my bad enghlish.
Reply With Quote
  #2 (permalink)  
Old 06-22-2007, 10:41 AM
JJM JJM is offline
Senior Member
 
Join Date: Apr 2007
Location: France
Posts: 150
Default

Hi,

you use Backlightnormal and your PPC w'll light off the screen after 30' or more.
You must configure your PPC to light off screen only or PPC if it's on battery or on main.

Bye
JJ M
Reply With Quote
  #3 (permalink)  
Old 06-22-2007, 10:35 PM
Junior Member
 
Join Date: Jun 2007
Posts: 12
Default

Quote:
Originally Posted by JJM View Post
Hi,

you use Backlightnormal and your PPC w'll light off the screen after 30' or more.
You must configure your PPC to light off screen only or PPC if it's on battery or on main.

Bye
JJ M
It already I know it. But I want to turn off the light on having touched a button for example.
I have a Mio P350 and when I disconnect the screen with "screentoggle" to save battery with tomtom 6, there is disconnected also the GPS (this did not happen with my previous one N35). Because of it I want to do an application that disconnects only the light and not the screen also. Tomtom annuls the function of disconnected in 30 seconds.
Reply With Quote
  #4 (permalink)  
Old 06-23-2007, 05:53 AM
Junior Member
 
Join Date: May 2007
Posts: 40
Default

Also you can press and hold power button
Reply With Quote
  #5 (permalink)  
Old 06-23-2007, 04:16 PM
Junior Member
 
Join Date: Jun 2007
Posts: 12
Default

Quote:
Originally Posted by Alex812 View Post
Also you can press and hold power button
That was first that I did. That does not work in this pda. Anyway, also to my it interests to me to disconnect the light for future programs.

Summary: I want an order that commands to disconnect the light.

I do not know if you understand well my english. Thanks.
Reply With Quote
  #6 (permalink)  
Old 06-23-2007, 06:20 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Hi,

In fact your English is a bit confusing....

You You wish to turn off the backlight using B4ppc, then I think you are out of luck for now since there is no method, command or DLL that supoorts it...So for now you're stuck....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #7 (permalink)  
Old 06-23-2007, 09:47 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 173
Default

Actually I think it can be done, by using the shell command together with Mortscript...

See: http://www.sto-helit.de
(There seems to be some restrictions on the function though, I'm not sure if they apply in your case)

Mortscript is a freeware script program which has a lot of good possibilities - and even more when you combine it with Basic4ppc ! (and no, I am not the author of it, though I wish I was )

1 You would need to install Mortscript,
2. Write a textfile with the content: Setbacklight(0,0)
3. Name it e.g. backlight.msi
4. Run Shell("backlight.msi","")

all the best and good luck / Bjorn

Last edited by BjornF : 06-23-2007 at 09:52 PM.
Reply With Quote
  #8 (permalink)  
Old 11-26-2009, 04:26 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Mazacote View Post
Summary: I want an order that commands to disconnect the light.
Hi, since you asked your question there is a library http://www.basic4ppc.com/forum/addit...html#post26860 (which you may have found for yourself) that allows what you wish for...

Mike.
Reply With Quote
  #9 (permalink)  
Old 11-26-2009, 05:14 PM
schimanski's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2007
Location: Germany
Posts: 289
Default

Hello Mazacote!

You can set the screen off with the PowerNotify-dll (PowerNotify.ScreenOff). This command is able to set only the screen off, nothing else. The problem is, when you turn on the screen. Some devices disconnect the gps-connection, when the power-hardwarebutton is pressed. So you have a gps-connection for the time, when the screen is off, but with pressing the on/off-hardwarebutton to turn the screen on, the gps will be disconnected.

On some devices you can't set the screen on with the hardware-powerbutton. You have to use the hardware.lib with hardware.ScreenOn. (You can use it with a keypressed-event).

But the sreenon-function doesn't work on every devices. On some devices you can start a mortscript-app (toggleOn), when hardware.ScreenOn sets an error. But i dont' know a way, that runs on every devices.

Here one example to set the screen on and off:

Code:
'Screen Off'
Sub Menu7_Click
    ErrorLabel(ScreenOff_error)
    
    PowerNotify.ScreenOff
    
Return
    
    ScreenOff_error:
    
Msgbox("Device not able to set the screen off!")
End Sub

'Screen on'
Sub HardKeys_HardKeyPressed
    ErrorLabel(ScreenOn_error)
    
    
If HardKeys.KeyPressed=HardKeys.KeyEnter Then
        hardware.ScreenOn
    
End If
    
Return
    
    ScreenOn_error:
    
'here you can start a mortscript-app to set the screen on'
End Sub
regards from germany...
__________________
schimanski
--------------------------------------
Device: Motorola Defy, Samsung Galaxy Tab P1000
Dekstop: Asus Eee PC
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
WM6.1 Backlight Timeout (Registry) digitaldon37 Open Source Projects 3 11-20-2008 04:23 PM
Backlight derez Questions (Windows Mobile) 0 12-23-2007 12:28 PM


All times are GMT. The time now is 04:28 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0