Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,823 Members 42,096 Now Online
XDA Developers Android and Mobile Development Forum

OziExplorerCE: Registration key reset turning off the GPS

Tip us?
 
mattv3x
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Sep 2007
Question OziExplorerCE: Registration key reset turning off the GPS

Hello,
I installed OziCe in my GPS Invion (wince 4.2 loaded from SD card). It
works fine but, every time I turned on the GPS, OziCE asks to re-enter
the registration code. All the other configuration are correctly
reloaded, togheter with last used map.
No problem exiting and restarting OziCE, when the GPS remains active.
It seems that OziCE saves the registration code in same 'volatile'
memory, not flashed at hard shutdown.
I tried to check the registry, comparing them with remote tools before
and after starting OziCE, but I foung nothing.
Does anyone know a way to solve or workaround the problem?
Thanks, Filippo
 
mattv3x
Old
#2  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Sep 2007
Default Found a solution

Hello,
for who may be intersted, I found a way to workaround the issue writing a MortScript (download the interpreter and instructions from http://www.sto-helit.de/).
This is the script I wrote; obviously you have to change the OziCE username and password and the path to OziExplorerCE.exe.
After insatalled and registered MortScript, copy the script in a .mscr file in the device. Executing the script would start OziCE inserting the registration code (if needed).
Ciao.

#OZI CE start

regName = "MyOZICeUserName"
regKey = "MyOZICeRegistrationCode"

WindowTitle="Inserisci Codice di Registrazione"
EngWindowTitle="Enter Registration Code"
OKWindow="OziExplorer"

ozipath = "\SDMMC DISK\WINCE\programfile\ozi_1.12.3\COMMON\OziExplor erCE.exe"

nLoops = 200

Run(ozipath )

#WaitFor(WindowTitle, 5) #returns timeout error if not found...
i=0
While ((ActiveWindow() ne WindowTitle AND ActiveWindow() ne EngWindowTitle) && i<nLoops)
Sleep(50)
i=i+1
EndWhile


if (WndActive(WindowTitle)=1 OR WndActive(EngWindowTitle)=1)
actWin = ActiveWindow()
SendKeys(actWin, regName)
SendTab(actWin)
SendKeys(actWin, regKey)
SendCR(actWin)

#WaitFor(OKWindow, 5)
i=0
While (ActiveWindow() ne OKWindow && i<nLoops)
Sleep(50)
i=i+1
EndWhile

if (WndActive(OKWindow)=1)
SendOK(OKWindow)
EndIf
EndIf
 
willywoolly
Old
(Last edited by willywoolly; 18th November 2007 at 12:04 PM.)
#3  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Jul 2007
Default using mortscript to enter OZICe on a windows CE 4.2 device

Filippo, nice work!

That mortscript you wrote works a treat on my navigation box.

I was unable to work out how to do a cab instal of mortscript. My navigation box won't start .cab files. So I need to run the bin:version of mortscript first for the Device binaries (whatever that means) and then I can run your mortscript. Love watching mortscript typing in my name and code.

OziCe now asks for ECW.dll - where does that file come from and where should it be? in windows? in storage card root? in oziexplorer folder on storage card? in nandflash?
 
jwoegerbauer
Old
#4  
jwoegerbauer's Avatar
Senior Member
Thanks Meter 196
Posts: 568
Join Date: Jul 2009
Location: Bavaria (Germany)
Default OziExplorerCE: Preventing registration key reset turning off the GPS

Please apologize warming up this thread, but thought I'ld share my solution here.

1. OziExplorer stores user-registration data in file named 'gihobj.dll' in OS's folder \Windows.
2. Hence you backup once this 'gihobj.dll' , then always copy it to \Windows before you start OzExplorer.

I suggest to use a wrapper script as following to start OziExplorer:
Code:
#OziExplorer Launcher
#This script must be located in OziExplorer's installation folder
#or you have to alter the OziExplorer 'ozipth' below!

Local()
ozipth=SystemPath("ScriptPath")
oziexpl="OziExplorerCE.exe"
regdata="gihobj.dll"
winregfile="\Windows\"&regdata
bkupregfile=ozipth\regdata
#check existence of registration data
If(FileExists(winregfile))
	#OK, run OziExplorer
	Run(ozipth\oziexpl)
ElseIf(FileExists(bkupregdata))
	#OK, but in wrong folder, hence copy registration 
	#data to \Windows, then run OziExplorer
	Copy(bkupregdata,winregdata,1)
	#wait max. 2 secs 
	cnt=0
	While((NOT FileExists(winregdata))&&(cnt<20))
		cnt+=1
		Sleep 100
	EndWhile
	Run(ozipth\oziexpl)
Else
	#not OK, hence start OziExplorer with entering user-registration data
	RunWait(ozipth\oziexpl)
	#backup OziExplorer's registration data
	If(FileExists(winregdata))
		Copy(winregdata,bkupregdata,1)
	EndIf
EndIf
HTH
 
mimmolo
Old
#5  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Mar 2010
Default OziExplorerCE: Preventing registration key reset turning off the GPS

Hello,

I have an old pda with WindowsCE 2002 installed.
Can everyone drive me applying the suggest of jwoegerbauer?
I can't find the file 'gihobj.dll' I think because I don't see the hidden files so:

1. how can I see the hidden files.
2. how can I create the script file? is it a batch file?


many thanks at all,
mimmolo
 
jwoegerbauer
Old
#6  
jwoegerbauer's Avatar
Senior Member
Thanks Meter 196
Posts: 568
Join Date: Jul 2009
Location: Bavaria (Germany)
Quote:
Originally Posted by mimmolo View Post
Hello,

2. how can I create the script file? is it a batch file?

mimmolo
All you need is MortScript: http://www.sto-helit.de/index.php?mo...n=view&menu=29
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


LuneOS Goes Official and Brings webOS to Android Devices

webOS has had rather turbulent history. Initially developed by Palm, the Linux … more

Try to Keep Up with Just Swipe Game

Sometimes, the simplest of games are the ones that end up beingthe most addictive and end up consuming … more

MultiROM Ported to the Moto E

Few categoriesof Android development are as intrinsically interestingas the ability to boot into multiple … more

XDA Xposed Tuesday: How to Control Google Play Wake Locks – XDA Developer TV

Xposed Modules are usually pretty simple. There are a few … more