yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] rsenden:
Thanks. I'm a software developer myself (mostly Java), so I'm used to being thorough :)

I just had a quick look at the MortScript manual, and indeed there seems to be no way to switch to a window based on process name. According to the changelog, this will change however with MortScript 4.3 (currently in beta). Not sure whether there will be better ways, but at least you can do a FindWindows to get all windows and then use WindowProcess to check for each window whether it's the netfront window.

Thanks, this works indeed.

I still have one problem though. For some reason when clicking a link in SPB News, my phone now often switches to the Today screen before showing the JZ Browser window. This means that after viewing the link in a browser, when closing/minimizing the browser, I'm returned to the today screen instead of to the article that I was previously viewing in SPB News.

All JZ 'Minimize' options in the JZ Browser Options are disabled. Although I'm not sure whether this behavior is caused by JZ, I don't remember seeing this behavior before when I was using JZ 1.6.8 with Opera Mini 5 for WM beta (no NetFront installed). Any idea why this happens?

Update: it looks like the first time after resuming my phone from standby, JZ Browser is displayed immediately (on top of SPB News). After that (e.g. after clicking additional links in SPB News without putting my phone in standby inbetween), the phone switches to the Today screen before displaying JZ Browser.
[Windows Mobile Apps and Games] JZ SmartMort:
Take a reset and make sure that minimize all is off, it sounds like that's the setting that would cause this...

Unfortunately, both functions you mentioned will not allow me to say "look for NFBrowser.exe and tell me all window titles it owns" BTW I install the beta version of MortScript so those 2 functions you mentioned can already be used.

Thanks!

UPDATE:

I just tested by pressing a URL in my e-mail box and it did not minimize. So one useful test is to take SPB News out of the equation by opening a link from elsewhere.
[Windows Mobile Apps and Games] rsenden:
It is not the most elegant solution but the following quick hack seems to work on my phone. It can probably be improved a bit, for example leave the ForEach once the correct window has been found, and maybe limit the number of windows by supplying extra parameters to FindWindows.

### NF CODE
Sub OpenNetFront
local(netfrontcommand)
netfrontcommand = RegRead("HKLM","SOFTWARE\JZ\Browsers","netfront-command")
Run(netfrontcommand, url)
Call('ActivateProcess', Part(netfrontcommand,"\",-1))
EndSub

Sub ActivateProcess
local(windows, window)
If (ProcExists(argv[1]))
windows = FindWindows("")
ForEach window in array ( windows )
If (window ne "" && Find(argv[1],WindowProcess(window, FALSE))>0)
Show(window)
EndIf
EndForEach
EndIf
EndSub

BTW I think my version of NetFront also has 'NetFront' as part of the window title (although it's at the end, after the page title) so maybe we can even do a simple FindWindow("NetFront"). No more time to test that though.

I'll further look into the minimize problem tomorrow...
[Windows Mobile Apps and Games] JZ SmartMort:
Nice job! I totally did not see that at the end of the window title there was "NetFront Browser" so this is much easier to do. The way you did it or even a little more in-line with my current code. Let me know if you improve on it and I'll see how to fit it in... Thanks!
[Windows Mobile Apps and Games] JZ SmartMort:
Hey check this out less code and works well...

### NF CODE
Sub OpenNetFront
local(netfrontcommand,NetFrontWindow)
netfrontcommand = RegRead("HKLM","SOFTWARE\JZ\Browsers","netfront-command")
Run(netfrontcommand, url)
NetFrontWindow = FindWindow(" - NetFront Browser")
If (Length( NetFrontWindow > 0))
Show(NetFrontWindow)
EndIf
EndSub
[Windows Mobile Apps and Games] rsenden:
Thanks, haven't tried it yet but looks like it should work. Still, the code I provided earlier could be useful if you ever need to find a window by executable name. For example, if some browser uses only the page name in the window title without including the browser name.
[Windows Mobile Apps and Games] JZ SmartMort:
Yep, you're absolutely right! Appreciate the contributions :)
[Windows Mobile Apps and Games] me:
Anyone tried JZSmartMort on the HD2?

Does it play well with the Sense UI, with Cookies Home Tab, etc.?
[Windows Mobile Apps and Games] rsenden:
As I re-installed my phone I tried your code above. Although it correctly activates the NetFront window if already running, it causes problems if NetFront is not running already.

One problem is that one of the ')' is misplaced in the If-statement (should be after 'NetFrontWindow' instead of after '0'). Another problem seems to be a bug in MortScript; the FindWindow call sometimes returns 'PHONE ' (or similar, don't have the error message available at the moment) if no NetFront window can be found, causing an error in the Show() call.

So for now I've reverted to the code I posted earlier...
[Windows Mobile Apps and Games] JZ SmartMort:
Yeah, I forgot to paste modified code which should be good... gotta check for the process existence before doing any of that logic.

### NF CODE
Sub OpenNetFront
local(netfrontcommand,NetFrontWindow)
If (ProcExists("NFBrowser.exe"))
NetFrontWindow = FindWindow(" - NetFront Browser")
If (Length(NetFrontWindow > 0))
Show(NetFrontWindow)
EndIf
EndIf

netfrontcommand = RegRead("HKLM","SOFTWARE\JZ\Browsers","netfront-command")
Run(netfrontcommand, url)
EndSub
[Windows Mobile Apps and Games] JZ SmartMort:
This is an open-ended question... basically, my app has absolutely no relation to any other app UNLESS another app uses MortScript and it's required to be of a certain version. Bottom line, my app will work and play well on any Windows Mobile phone, no matter what 3rd party interfaces you have on it. Again, only the MortScript caveat is to be considered otherwise you should have no problems whatsoever...
[Windows Mobile Apps and Games] sibbl:
new Opera Mini 5.1 for WM is out.

it's not being recognized by jz browser on my wm phone.
[Windows Mobile Apps and Games] poppscc:
double for the 5.1. is it possible to manually add the browser?
[Windows Mobile Apps and Games] JZ SmartMort:
There are hacky ways of getting my app to recognize 5.1 but I don't recommend any of them. My new version will, first of all have ability to add any browser EXE manually but more importantly, I'll just have Opera Mini 5.1 support.

Thanks for the heads up guys!
[Windows Mobile Apps and Games] JZ SmartMort:
New JZ SmartMort 1.7.0 is Now Available!

Get the CAB from the first post or SourceForge...

Support for Opera Mini 5.1 and NetFront 4.0 R3 browsers.
​

New changes in v1.7.0:

JZBrowser: Added Opera Mini 5.1 WM support

JZBrowser: Verified Opera Mini 5.1 Java version

JZBrowser: Verified NetFront 4.0 R3

JZBrowser: Fixed NetFront 4.0 R3 window focus issue

JZBrowser: Browser related registry values are backed up and reverted to on deactivation instead of Microsoft default values

JZBrowser: Ability to override a supported browser location by manually choosing the EXE location if it's not automatically found

JZBrowser: Registering JZBrowser with the .Net EXE will make sure that you have .Net v1.0.4292.0, v2.0.7045.00 or v3.5.7283.00 otherwise it will warn

JZAction: Enhanced clipboard history to push the most recent items to the top of the list

JZAction: Google Translation added to the Search Engine screen

JZSettings: Show current version in JZ Update

Enjoy!

JZ
[Windows Mobile Apps and Games] fucv:
I really like the idea of combining all my browsers and choosing which one o use for a specific url. I am having trouble with your app, though.

I installed it and then could not connect to the internet. I got java.io.IO.exception when i tried to run it. my internet connection is not working at all.

I have an at&t samsung jack. Winmo 6.5. clear security unlocked. internet sharing registry change. Skyfire, opera mobile, and ie browsers.

I tried to google the error and got no real solutions. maybe you can tell me what registry changes were made by your app. What could be possibly responsible for this error? If you can solve it, that would really be helpful. If you can provide some insight into why this might occur, that would work , too.
[Windows Mobile Apps and Games] JZ SmartMort:
The error is a Java error which really has nothing to do with my application as it's not a Java app... My app does not change anything other than how your URLs and HTTP links open. I never modify any connectivity information. In your case I'd definitely reboot and secondly make sure that you follow settings along this sort of info:

http://www.wireless.att.com/answer-center/main.jsp?t=solutionTab&solutionId=KB84444

Uninstalling my application will put everything back the same way it was before installation.

One thing you're not explaining is exact sequence of events until you got the Java error as it would not be my app but maybe Opera Mini using Jbed, etc. but I don't want to speculate and the exact steps would be better.

Don't forget to use the "Restore Proxy" link that you have on the start menu somewhere as that should fix At&t network settings.

Thanks!
[Windows Mobile Apps and Games] fucv:
thanx for the quick reply. This is what i did to eliminate all other possibilities. I did a hard reset on the phone. I installed skyfire. I checked the connection. I installed clear security.cab. I then installed smart mort. I checked the connection and got the java error. I don't see a restore proxy shortcut in the start menu. I have been having funny issues with the phone, but nothing java related. I get calls from a random number that can not be called back. I think i will reflash the rom and try again. If something comes up that might be the problem, let me know. Uninstalling does not fix the problem. a hard reset did, though.
[Windows Mobile Apps and Games] JZ SmartMort:
You're still a little cryptic... I understood the error message but what you're not including are the exact steps to cause that error. Like, I install JZSmartMort then I open up Internet Explorer and receive that error. The middle information is missing for me to draw any conclusions...
[Windows Mobile Apps and Games] fucv:
OK. Here goes. I hard reset the phone. Then installed skyfire and opened it up. It was fine. Then i installed clear security.cab. I opened skyfire and everything was fine. Then i installed smartmort and mort script was installed automatically. Then i opened ie and it said java.io exception. then i opened skyfire and it said no network connection. then i opened mobile web and it said there was no network connection. I removed smart mort. The same problem persisted. Then i hard reset and everything was normal again.
[Windows Mobile Apps and Games] JZ SmartMort:
Wow, that is really hard to believe but nothing is impossible... I would try not installing skyfire and seeing if my app alone does this to you.

Thanks!
[Windows Mobile Apps and Games] fucv:
I just figured it out. Now I feel stupid. It seems that the data connection is off by default in your app. If I close your app, the data keeps turning off. I will try to fix that on my phone. Thanks for the help.
[Windows Mobile Apps and Games] JZ SmartMort:
That's a misconception... my app is not a web browser so it does not "activate" the internet connection. When you open any browser, those apps should connect to the web. Makes sense? I guess I could put a feature in but it seems redundant as I'd expect every browser to have logic that enables the network connection.

Thanks!
[Windows Mobile Apps and Games] fucv:
I think you misunderstood me. I was refering to the turn of all data feature. If i go to the turn on all data, my phone connects. Some actions seem to turn off data after installing. Going to 'turn on all data' solved the problem, but it keeps happening. I think that might be another program, though. your app just controls it.
[Windows Mobile Apps and Games] JZ SmartMort:
So let's get this clear:

1. Are you using the turn data off/on feature within JZAction > Comm Manager > Disable or Enable ALL cellular data?

2. Somehow your data connections get disabled?

3. Even when not using my app some of those connections become disabled?

The problem here is that I have a lot of Samsung Jack AT&T users and as you can see this is a new one for me. Also, if it were truly an issue there is no way that it will only target the Jack but rather all devices.

More importantly, the Comm Manager functionality and JZBrowser functionality are completely unrelated. There is absolutely nothing shared between those functions, I just searched through all of the code to make sure.

If you want, the easiest way to make sure that my app does not disconnect your data connection is to go under \Program Files\JZ\helpers\DeviceCommands and modify the file called "JZActionDisconnect.mscr" which has a single "Disconnect" command and just put a pound sign in front of it like so "#Disconnect"... this is the way I disconnect the network (typically used when a setting is changed a disconnect/reconnect is required for the change).

Let me know what you find. Thanks!

UPDATE: BTW, I hope you're not using the Wifi-Data Toggle feature because it turns on Wifi and turns off Data and vice-versa when used again.
[Windows Mobile Apps and Games] colthekid:
I've had this problem for a while and couldn't work out what was wrong....until now! I tried messing about with some of your code and eventually tried this...

I'm not too worried about opera 9.7 being identified as 9...as long as it works!

I don't think you need the quotes round the URL, this works for me....

Sub OpenOperaMobile9
local(operamobilecommand9)
operamobilecommand9 = RegRead("HKLM","SOFTWARE\JZ\Browsers","operamobile9-command")
Run(operamobilecommand9, [COLOR="Red"]url[/COLOR])
EndSub

I also don't think you need to mess around with different opera builds (changing opera.exe & operaL.exe). I use the EnergyROM series for the HD2 and his built in build number is 35964 and it works fine.

Hope this helps

Col
[Windows Mobile Apps and Games] JZ SmartMort:
This is good info... I could swear it was for a reason why I had double quotes but I've tested back and forth with different 9.5 versions and no quotes work just as well as with quotes but since in 9.7 you're certain that quotes are bad I'll just pull them out in the next release from both 9.x and 9.7 versions.

As for Opera.exe vs. OperaL.exe now that I do remember is because 9.5 does not appreciate running the main EXE with a param passed to it so you need to run the param with the Opera Loader EXE so that logic I'll leave alone. Keep in mind that I'm trying to comply with a bunch of different versions and devices released with Opera Mobile (some version) in the stock ROM.

Anyhow, good eye and I'll make the change since I have some of the confirmations from you guys and my own testing which says I wont break anything by pulling out the quotes.

Thanks!

JZ
[Windows Mobile Apps and Games] colthekid:
No probs, Just hope it works for everyone and it's not just my EnergyRom that is the odd one out (although I doubt it!)

On that note though, would it be easy to add in a "use different opera 9 method" option, similar to your 2 different opera mini 5 paste methods? Then you could chose the alternative opera9 failed to open properly. That way, it wouldn't matter if some builds/roms needed the quotes and some didn't.

Anyway, great app by the way, even the wife now wants it on her HD2 as well (and she usually just wants the most basic of basic roms!), so that's a MAJOR compliment!!!! :D
[Windows Mobile Apps and Games] addicus:
I try to give this application more publicity but for some reason people tend to shun it. This is one of the top 3 applications ever created for Windows Mobile in my humble opinion.
[Windows Mobile Apps and Games] JZ SmartMort:
Thanks for the kind words Addicus and colthekid! I spent a lot of time building it so it's nice to know where it stands on the hotness radar that even wives want it :)

FYI, in my 1.7.0 version I have a "manual add/delete browser" function under JZSettings>JZBrowser>Choose a Default Browser>Manual at the top

This will allow you to select ANY EXE on the device to act as any of my supported browsers so for instance since Opera Mobile 8 has no double-quotes you can choose that supported browser and manually override the EXE it runs with your 9.7 and voilà no quotes and no code modification. Let me know if that's a good workaround in your situation.

Thanks!

JZ
[Windows Mobile Apps and Games] colthekid:
Doh! :o

Never spotted that! That will do perfectly!
[Windows Mobile Apps and Games] aniphreak:
help!! i cannot open jz settings or anything related to jz after tweaked some settings from it.... even reinstalling it doesnt do any luck. last think i knew i tweaked the settings in the applications then suddenly everything is now ****ed up.

now my problem is i cant open some programs, and there is this confirmation dialouge for opening unknown publisher programs...

i dont want to hard reset how can i reset all the settings made by jz without opening or how can i open jz again?
[Windows Mobile Apps and Games] JZ SmartMort:
It would help to know which application settings you were messing with because my app would not cause the whole device to get messed up.

The only thing my app has a feature of doing is messing with security (at user's request) did you happen to mess with that?

If you did this is probably the fix... get yourself a program called Mobile Registry Editor or some registry editor directly on the device and modify the following keys to the values listed.

("HKLM","Security\Policies\Policies","0000101b","1")

("HKLM","Security\Policies\Policies","00001005","40")

("HKLM","Security\Policies\Policies","0000101a","1")

("HKLM","Security\Policies\Policies","00001001","1")

("HKLM","Security\Policies\Policies","00001017","24")

It's good to provide the brand/model of your device and whether it's touchscreen or not.

FYI, here are some other useful software packages that relax the security.

http://xdaforums.com/showthread.php?t=285344

http://www.internet-tools.co.uk/blog/index.php/category/mobile/

http://www.internet-tools.co.uk/blog/wp-content/uploads/2008/11/sda_unlock.zip

http://sedacka.saman-cz.com/ppc/index.html?spunlocking.html

http://xdaforums.com/showthread.php?t=338433 --- the first file in this article.
[Windows Mobile Apps and Games] aniphreak:
oooohhh thats sweet.... everything is working again. thank you for this quick fix.

my phone is samsung i780 cooked windows 6.5 installed. for those with same as my phone be cautious of altering the app security setting >_<
[Windows Mobile Apps and Games] JZ SmartMort:
Any indication as to which solution worked for you?

I somewhat duplicated your issue and used SDA_ApplicationUnlock.exe on a PocketPC touchscreen and it actually fixed the issue which I did not think would happen but it looks like that utility is gold for even touchscreens not just SmartPhones.

Thanks!
[Windows Mobile Apps and Games] uta77:
Dear JZ,

I have the same problem, caused by unsuccessful run of Android from SD card, so I can not run mostly all installed exe-s, and can not install CAb-s.

Can you please help me, how can I edit registry???

Total commander on my HD2 does not starts, and when trying to edit registry by MobileRegistryEditor.exe - it returns with error of "Not Allowed"

I would be very greatfull, if you have any solution.

Thank you in advance,

Best regards,

Uta

P.S. My e-mail: uggimport@gmail.com Skype: gdmcom1
[Windows Mobile Apps and Games] JZ SmartMort:
Bro just hit me up on this thread first, no need to e-mail, PM and post here...

Take a look 3 posts above yours and you will see your answer:

http://xdaforums.com/showthread.php?p=9190574#post9190574
[Windows Mobile Apps and Games] uta77:
I found the solution :) Special THANKS to JZ SmartMort

Following simple steps:

1) Download following file: http://www.internet-tools.co.uk/blog/wp-content/uploads/2008/11/sda_unlock.zip

From archive we need only SDA_ApplicationUnlock.exe

It allows Registry to be edited from PC.

Run it with working Activesync connection

2) Download Mobile Registry Editor: http://www.zipsoft.ru/catalog/mobile_registry_editor-v1_11.html

Also run with working Activesync connection

3) and modify the following keys to the values listed.

("HKLM","Security\Policies\Policies","0000101b","1 ")

("HKLM","Security\Policies\Policies","00001005","4 0")

("HKLM","Security\Policies\Policies","0000101a","1 ")

("HKLM","Security\Policies\Policies","00001001","1 ")

("HKLM","Security\Policies\Policies","00001017","2 4")

It perfectly worked with HD2, but I guess it should work with all WM devices.

FYI, here are some other useful software packages that relax the security.

http://xdaforums.com/showthread.php?t=285344

http://www.internet-tools.co.uk/blog...tegory/mobile/

http://www.internet-tools.co.uk/blog...sda_unlock.zip

http://sedacka.saman-cz.com/ppc/inde...unlocking.html

http://xdaforums.com/showthread.php?t=338433 --- the first file in this article.

4) Restart :)

P.S. Special THANKS to JZ SmartMort
[Windows Mobile Apps and Games] JZ SmartMort:
Excellent, thanks for the feedback and the detailed steps!
[Windows Mobile Apps and Games] VictorC666:
Hello JZ,

I would like to ask you for help, i nees to run Opera Mini with url parameter, but i dont know how I was going through your scripts but i am not able to read it out

Is it possible?

Something like:

\Program Files\jbed\jbed.exe -run s0_ "http://www.google.com"

(well this one is not working, OM is run, but url is not opened)

Thank you very much for help.

VicC
[Windows Mobile Apps and Games] JZ SmartMort:
This is not possible... JBed can only RUN a certain program like the application number s0_ that you pasted above. It cannot pass just any parameter that a user/developer of the java app desires. Just does not work that way. All of the code that you need to mess with Opera Mini you can find under \Program Files\JZ\helpers... there you will see JZOperaMiniRun.mscr or JZOperaMini5Run.mscr

This is as much as I can offer as anything else would be tutoring on how to script in MortScript and I'd have to charge for that :)

Thanks!
[Windows Mobile Apps and Games] Jordsvin:
Help needed on JZ Smartmort v1.7

Dear JZ,

The software is terrific but I have made a mistake and need your help to correct it.

On the JZ Settings/Activators I foolishly went into the General Tweaks section and then the (Security) part.

I then stupidly changed the App Unlock/Lock Device to (LOCKED).

How can I reset it back to UNLOCKED?

Kind Regards

Jorsdvin
[Windows Mobile Apps and Games] JZ SmartMort:
Well for starters stop doing foolish things :)

I would do this, check if your device has any issues... meaning use it for a week and verify if anything is wrong. If not don't try fixing anything, just not worth it if everything functions.

If not, drop the attached file into \Program Files\JZ\helpers and try unlocking again replacing the original and removing the .txt extension from the attachment name.

Thanks!