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 : 2221




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

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

  Check here to include your profile signature.
Check here to subscribe to this topic.
    

T O P I C    R E V I E W
AlpineMan Posted - 03 juin 2009 : 22:12:48
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)

GpsPasSion Forums © 2002-2014_GpsPasSion/Manzanite Go To Top Of Page
This page was generated in 0,3 seconds. Powered By: Snitz Forums 2000 Version 3.4.05