Unofficial CM12 for Android One, Disabling Encryption on Nexus 6 – XDA TV

Android One devices have received an Unofficial CyanogenMod … more

Pushbullet Universal Copy/Paste Availabe for Linux, Mac OS X

Pushbullet is one of those useful utilities that once installed, permanently … more

Enable the Hidden Notification LED on the Google Nexus 6!

LED notification lights have existed on Android devices since the very beginnings … more

MX Player Ready to Rock on Lollipop

A good video player should be reliable and free. One of the XDA Community Apps, MX Player, meets both of … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

OziExplorerCE: Registration key reset turning off the GPS

OP mattv3x

28th September 2007, 11:08 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Sep 2007
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
4th October 2007, 09:33 AM   |  #2  
OP Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Sep 2007
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
18th November 2007, 12:51 PM   |  #3  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Jul 2007
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?
Last edited by willywoolly; 18th November 2007 at 01:04 PM.
23rd February 2012, 08:37 PM   |  #4  
jwoegerbauer's Avatar
Senior Member
Bavaria (Germany)
Thanks Meter: 197
 
578 posts
Join Date:Joined: Jul 2009
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
29th February 2012, 05:31 PM   |  #5  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Mar 2010
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
4th March 2012, 12:34 PM   |  #6  
jwoegerbauer's Avatar
Senior Member
Bavaria (Germany)
Thanks Meter: 197
 
578 posts
Join Date:Joined: Jul 2009
Quote:
Originally Posted by mimmolo

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
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes