Google
  Web www.gpspassion.com


GpsPasSion LIVE!
www.flickr.com
This is a Flickr badge showing public photos from GpsPasSion Live !. Make your own badge here.

www.NaviBlog.com



Versions

Links/Liens




Portal/Portail
Rechercher

- -

Polls/Sondages
Sondage
Pour vous guider sur la Route :
GPS Mobile (SEM)
GPS Intégré
Smartphone
Autre
Voter  -  Résultat des votes
Votes : 1348




Club GpsPasSion
Soutenez le site!

USA: (US$)
EUROPE: (€)
Guide Paypal


GpsPasSion Forums
Home | Profile | Register/Enregist. | Active Topics | Search/Recherche | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 English Forums - Hardware
 "All in One" Navigation Systems
 Saving and reading screen calibration data
 New Topic  Reply/Répondre
 Printer Friendly
Author Previous Topic Topic Next Topic  

AlpineMan

USA
11 Posts

Posted - 03 juin 2009 :  22:12:48  Show Profile  Reply with Quote
I'm trying to help out a few Omnitech GPS users with their screen calibration issues. The unit is running Windows CE 5.0. I wrote a script that runs on startup. It checks if a "screencalibration.ini" file exists in the SD card, and if it does, then read the values and put it in the registry. If the file doesn't exist, the script launches the Windows CE control panel (Stylus Properties) and asks the user to calibrate their screen. After calibration, the script reads the registry and saves the value in "screencalibration.ini" file.

That being said, my script is successful in reading the file and writing to registry, but for some reason, the values don't take effect. Anyone know what I need to do to force the unit to re-read the registry and apply the calibration values?

Script that runs at startup:

#Calibrate screen
path = "\SDMMC\Utils\Windows\"
CD = IniRead(path & "calibrationdata.ini", "CalibrationData", "CD")
if (CD eq "")
      message "Please calibrate your screen!"
	RunWait(path & "CalibrateScreen.mscr")
      CD = IniRead(path & "calibrationdata.ini", "CalibrationData", "CD")
endif
RegWriteString("HKLM","HARDWARE\DEVICEMAP\TOUCH","CalibrationData",CD & " ")
Run("\Windows\ctlpnl.exe", "cplmain.cpl,9")
WaitForActive("Stylus Properties", 10)
SendOK("Stylus Properties")



CalibrateScreen.mscr:

# Set Screen Calibration
path = "\SDMMC\Utils\Windows\"
RunWait("\Windows\ctlpnl.exe", "cplmain.cpl,9")
RegReadString HKLM, "HARDWARE\DEVICEMAP\TOUCH", "CalibrationData", CD
message "Screen Calibrated!"
IniWrite(path & "calibrationdata.ini", "CalibrationData", "CD", CD)

Nokia 500, Omnitech 16878-US
  Previous Topic Topic Next Topic  
 New Topic  Reply/Répondre
 Printer Friendly
Jump To:
GpsPasSion Forums © 2002-2013_GpsPasSion/Manzanite Go To Top Of Page
This page was generated in 0,47 seconds. Powered By: Snitz Forums 2000 Version 3.4.05