Starting backlight-settings with command-line? - Touch Cruise 2 General

Hi,
I want to start my backlight-settings with command-line for reducing the backlight automatically for my Navi-Software (by Slider). So, what I've found out is, that I can call the settings-window "batterie" in Mortscript with
run ("/Windows/ctlpnl.exe", "cplmain.cpl,3,0")
but it is not possible to call the second window "backlight"
run ("/Windows/ctlpnl.exe", "cplmain.cpl,3,1")
With other windows this works...
Has anyone any idea how to manage that?
Thanks
oese

Related

SKSchema Script Problem

I'm trying to create a program that runs tray_launch, then switches to the today screen. (I'd prefer to minimize tray_launch but I can't find anything in the help file about minimizing at all.)
So I write the program
#r(\My Documents\Programs\phm_traylnch_182.exe)
#gototoday
#pwr
That runs tray_launch (it is the right directory for me) but fails to switch to today, although the title bar of the today screen appears, which is even more annoying because the X on tray_launch is not visible.
I've tried a lot of variations, including creating the program inside skschema with the script editor. Here is one variation that came from doing that and saving it:
#r(\My Documents\Programs\phm_traylnch_182.exe)
#r(#gototoday)
#r(#pwr)
but that doesn't work and isn't even consistent with the syntax, yet was created by skschema using the menu selections.
So first question, what am I doing wrong?
Second, anyone know the location of the upper right hand corner so I can do a press-and-tap of the X, which is sent to minimize?
Third, is there a primer with working examples somewhere?
Thanks,
Maybe switch to today more fastest than tray_launch loading?
script not wait for full load started program
try
#r(\My Documents\Programs\phm_traylnch_182.exe)
#r(#gototoday) #sleep(2000)
#r(#pwr)
Thanks
Your suggestion got me to play with it further and it turns out the problem is tray_launch, not SKSchema. When I put another program there, it works fine.
Phooey.
So now what I need to know is how to tap the upper right button with skschema. Anyone programmed this?

disallow screen rotation

Hello!
I need to write software that disallows any screen rotation on my Wizard.
How can I do it? I didn’t found any registry settings for this. The best way
that I see is hooking ChangeDisplaySettingsEx. But unfortunately, SetWindowsHookEx
doesn’t works on WM 5.0, at least it said on some topics. Please, give me any solution for this problem or example code to hook some API function.
wm5: [HKLM\System\GDI\Rotation]
Angle=dword:0
00000000 portrait
0000005a righthanded landscape
0000010e lefthanded landscape
then RegistryNotifyCallback will do
tanks a lot
I will try this way.
But I afraid it will be notified after screen rotation starting.
Adjusting this registry value in regedit tool did't help.
So I suppose this value is changing after rotation is done.
You can delete the start up service of ScreanRotate.
Go to HKLM/Services/ScreanRotate and delete it.
I think before you doing this,you can export it to a reg file
It's not bad idea.
but delete this key leading to system restart for apply
I just try to stop this service.
Not luck : (
This key not present in the registry storage.
I am under WM 5.0
Maybe you talk about some early system.
Hi hoblano, I'm experiencing the same problem, did you find a solution ?
thanks,
Scalposcarno
use task manager 2.7 and stop service...if you know it is service...
same way to stop kbd lights...btw,
I tried, but the result is the same as the one obtained by manually deleting the Screen Rotate voice within the services voices in the registry: avoiding the load of the service providing the icon on the task bar enabling the user to rotate the sceen one or more times by tapping on it.
I still don't understand ... at this point the most probable thing is that the service that rotate the OS screen when rotating by hand the HW screen, is invisible with respect to registry voices and to applications like Task Manager 2.7 or MemMaid. Apart from criticizing the constructor choice (why didn't they thought that someone should have been more comfortable using only one view mode ? e.g. landscape one), is there a way to obtain a list of core services and to avoid one of those to be loaded ? or, otherway, is there a way to intercept the event thrown when manually rotating the screen of the terminal ?
By the way, I'll have to do it with Java ...
thanks all

How to change the "Active Window" Name

Does anyone know how to do this? I have an app idea that im trying to make work that I posted about a few days ago and no one seemed to respond. Im tackling the problem with mortscript and am almost there. I just need to figure out how how to change the spbmobileshell's active window name since it is blank and doesnt have one. It makes my script work for every program....
Is it possible to change this?
If not... Does anyone know how to make a script run that will execute only when mobile shell is active in portrait. waiting for a key board slide and will launch secondtoday... and minimize second today anytime if it is closed to portrait from a landscape position. this may seem a bit tedious, but the idea here is to make a simple script that will allow keyboard slides to open and close apps quick and easily without taking up too many resources
thanks for the help....

Automatically change screen orientation...

Hi all, there's a way to automatically change the screen orientation when i open a determined program?
I'm not asking something like gravity sensor, only an automatic way to rotate the screen when lauching a program, i think there may be a program wich can do that, but i can't find it...
Does anyone know something about it?
Thanks and excuse me for my bad english.
yes, i saw that function in tess + sp, its working with a mortscript for rotating the screen before running the program and geting it back to normal after the program finishes.
U can also use Wisbar Advanced Desktop (WAD) its a great soft with some many customizations !
Thanks!
I used MortScript, WAD is not free as i can see, and i need only the rotation, not the "shell" :\

Can I keep a program going while turned "off"?

This may be more of a question specific to WM 6.1 than the Treo Pro itself. I really enjoy using a program that acts as a client to control and listen to my police scanner called Win500. (Main reason for buying Treo Pro with WM). It's a program that uses a custon TCP port via either wifi or evdo. My problem/goal is... I want to turn off the backlight and keep this app running.
I have played with what I think are all my options. Telling the device to turn off backlight after 30 seconds only dims the backlight but it does stay on. I am looking for one of two fixes. Either to be able to keep this program running and passing the audio to the speaker after hitting the top 'off' button. Or somehow have the backlight completely shut off after 30 seconds. Ideally it would be the first option so I could lock the key pad/touchscreen and have the clock screensaver. Possible Registry hack? Could a I make shortcuts with options specific to this program? I see you can turn the backlight all the way off in the settings.. I am a new with WM. So don't know if any of this is possible?
You should search for a registry hack to keep WiFi turned on while the device is in standby. If I'm correct this setting is available in Diamond Tweak, and HD Tweak...
The description for this tweak is: "Keeps WLAN online/connected in standby mode."
The values on the HTC Diamond used are:
1.
Code:
HKLM\System\CurrentControlSet\Control\Power\State\Suspend\{98C5250D-C29A-4985-AE5F-AFE5367E5006}\Default
2.
Code:
HKLM\System\CurrentControlSet\Control\Power\State\Resuming\{98C5250D-C29A-4985-AE5F-AFE5367E5006}\Default
3.
Code:
HKLM\System\CurrentControlSet\Control\Power\State\Unattended\{98C5250D-C29A-4985-AE5F-AFE5367E5006}\Default
I checked this on my Treo Pro. The values are the same.
So just download Diamond Tweak and apply the tweak on your TP.
Don't mess around with other tweaks! Mind that the application is not written for the TP. There are a lot of tweaks that should work since it's both WM6.1. But better safe than sorry Backup your device before applying any tweaks!
Okay thanks I will try that. I do want more than just to keep the wifi running. Also, will need to keep the program running and have it pass audio to the speaker. Plus I use the evdo data more than the wifi. But I will give it a shot.
Use this - works great. I have it set to my HOLD side button.
Here is the Readme for it.
davidck65 said:
Use this - works great. I have it set to my HOLD side button.
Click to expand...
Click to collapse
Thanks a bunch! exactly what I was looking for.
Finally got to try the program and it does work great

Categories

Resources