Noob advice for mortscript and winmbl 5.0 - Windows Mobile Software Development

I am working with 2 different inventory systems that use IE. One site needs an application called datawedge to invoke a scanner, the other inventory site invokes an active-x control for the scanner. I need to create a script that launches IE with Datawedge for the one site, and another script that launches IE and kills datawedge for the other site.
Is mortscript the way to go for something like this? It seems to be the only thing around I can find for winmbl scripting. Can someone post an example of a simple open app, kill app script in mortscript?
TIA for any replies...

Hi.
Opening and closing apps is the easy part.
Maybe try posting in the mortscript forum and you will have more responses.
Mortscript Examples:
http://forum.xda-developers.com/showthread.php?t=289197

Related

Permission requested from admins/mods

reposted to Dev&Hack forum Aug 9th, 12:30pm PST
I'm not a developer, and only an intermediate(?) VBA programmer for my own solutions. (Though several of those are quite involved.)
I have a question that I'd like to post on the Developers forum, because I believe it falls in "their" wheelhouse.
I've read and respect the posting guidelines published for each forum and the site generally.
I've done my web search diligence, and have posted inquiry on other sites specific to my device and the particular application(s) involved. No luck.
Am requesting permission/blessing to post the following:
Keystrokes as code?
Specifically Excel Mobile keyboard shortcut Alt-PgUp/Dn
I've created several Keystroke "routines" to minimize stylus use in Excel Mobile. I've mapped to hardware buttons, and they all work great... except Alt-PgUp(and PgDn). In Excel, these key combos will scroll one screen left or right, respectively. Other similarly-coded "routines" work as expected.
I've worked around this for now by recording screentaps in Excel's horizontal scrollbar. Unfortunately, the location of that s/b depends on whether SIP is active. If it is, the vertical co-ordinates of the screentaps become irrelevant and/or potentially destructive to my intended result. I prefer to avoid "position dependent" commands whenever possible for obvious reasons.
I have several other programs at my disposal to effect the Alt-PgUp/Dn shortcut(s).... IF I knew how to define the values(?) of Alt-PgUp/Dn in a script.
(MortScript, PHMkeys, Pen Commander, Spb FullScreenKb, PDA MediaKb)
I've been all over the web, and I think I understand keystroke scan-codes and values... and how they work together. Is there something akin to an ASCII "value" for this key combination? (099/0A1; 073/081; 153/161)?
Any ideas are appreciated. I've no aversion to research or work, but can't figure out what to ask or where to look further.
(I just really need a more direct/reliable functionality to scroll entire screen at a time left/right.)
Thanks in advance if anyone can help.
Dell Axim x51v WM5 (if it matters)
(Please feel free to "re-direct"/re-locate/modify/enlighten etc.)
pro-fit2: your post sounds like one of the very few that truly does merit going in the developer forum Please repost it there.
BTW, the solution to your problem sounds like you could just emulate scrollbar commands, rather then keyboard commands. That's fairly easy to do by posting WM_VSCROLL or directly manipulating the scrollbars in code. With that you can emulate smooth scroll, line scroll and page scroll. I wrote an app that can do that, once upon a time.
V
Scroll bar control, accessing, WM_HSCROLL
Vijay, thank you for permission and input.
Before I go further, I like the sound of your suggestion, but my code background is primarily VBA thru Excel, from which I access some minor(?) "other" things like PrintDialog, or other MS Office apps...
I'm willing to work through the API(?) to access window scrollbar controls, WM_HSCROLL (etc), but I would need a more basic start. If it's easy to generate, I'd love to see some further detail on the approach you described.
Thanks either way,
Pro-Fit
pro-fit2: apologies for being an ass, but could you open a thread in the developers forum, and I'll paste some code in.
I would open it for you, but it's better if it's opened under your member ID.
To get you started, this is a not particularly good article on scrollbar functions in vb.net. It's not VBA, but should give you an idea.
There are two ways to control the scrolling -
method 1: by sending the scrollbar a rough command to scroll up/down/left/right one line or one page. [ WM_VSCROLL with SB_LINEDOWN/SB_PAGEDOWN ]
method 2: by sending specific thumbposition control commands, which will give you fine control over the scrollbar. Frankly, this is probably what you don't need as it requires you to interrogate the scrollbar and then react accordingly. You just need to emulate line up/down I think. Look into SetScrollInfo etc.
Again, apologies for being obtuse, but there's no point filling this thread with redundant info. But start here:
http://windowssdk.msdn.microsoft.com/en-us/library/ms674659(vs.80).aspx
Open the development thread and we'll continue
V

[App][BETA] Kill**** - process killer

This is my first app for WinCE so please be nice!
Rant
It seems I'm part of a minority of users who understand that mobile devices and PDA's are not designed to run multiple apps at once. You can, but anyone with a decent sense of quality will agree that it's a rubbish experience once you get under 50% free memory. In fact the iPhone by default design doesn't let you multi-task apps (jailbreak changes this) which may be one of the reasons peeps think its a faster device. I say I'm part of a minority because most apps around are coded so that when you hit the 'x' close button they minimize instead of close (even by holding x). Also Windows has no inbuilt mechanisms for keeping your apps closed, and none of the roms I've tried (cooked or otherwise) seem to have these types of tools included.
Disclaimer
Firstly I hope I haven't reinvented the wheel or stolen anyone else's idea. I didn't research for months but didn't find anything like this around so apologize in advance if I upset anyone. Also I provide this tool "as-is" in BETA form - so it could damage your device - so use at your own risk.
Kill****?! What is it?
It is a simple app that kills running processes.
Why would I want it - what's wrong with Task Manager?
A common example is you open up Calc to do divide a dinner bill, lookup how to get home in Google maps, send an SMS to a friend and hit Home key. Then you wonder why the thing is running like a dog. You open task manager and notice you have these 3 freakin apps are open still and taking up your memory. So you're expected to open Task Manager after every time you're finished with an app?...no I dont think so..because you've got Kill****! You manage an exemption file, assign the app to one of your softkeys (or events) and it will quickly, quietly kill all other **** running for you.
How Does It Work?
It stores a text file on disk with names of processes that you wish to exempt. You can manage this via the included config tool. When you run the app (which is a console app) it just kills every running process other than the ones on your exclude list. The exclusion file is stored in your default MyDocuments folder and is called something like "NoofnyKill****.settings". Real simple.
What Do I Need To Run It?
Microsoft Windows Mobile (4 and above)
Microsoft .NET Compact Framework 3.5
How Do I Install It?
Simply run the attached CAB and everything is installed for you. 2 icons are added to your Start Menu (the config tool and the console app itself). The app is installed in the default Programs folder.
How Do I Use It?
If the exceptions file does not exist it will be created new and will contain all of the running process at the time the app ran.
The best instructions are;
1) Have your device in your preferred state with only your basic apps running.
2) Open the config tool from the start menu (Kill**** Config).
3) All of the running processes will list with a check next to them (which 4) means they will be exempted).
4) Click Menu -> Save Exceptions and close the config tool.
5) Assign the console app (KilL****.exe) to one of your softkeys or other buttons using your favorite tweak tool.
What Else Do I Need To Know?
I am not responsible for anything negative or positive this app will do to you, your device or life. Use at your own risk. I have not tested this app well and can only guarantee that I have fundamentally screwed something up. If anyone does use it and wants help I will do my best but try to help by giving as much detailed info as possible when reporting any bugs. I'm open to suggestions and are planning to put the source code up here if anyone shows interest.
That's about it - hope it makes someone's life a little brighter.
Hi!
This looks interesting. Is there anyway to cook this into a ROM properly? I dont like to have users make a file in their my documents folder.
Cheers
Epiphany
EpiphanyNL said:
Is there anyway to cook this into a ROM properly? I dont like to have users make a file in their my documents folder.
Click to expand...
Click to collapse
Thanks...i can have the file live anywhere really, I just chose MyDocuments cause its easy and accessible. It's easy to even have them define in the config tool where they want to save the settings. I'm new to mobile dev and the whole rom cooking thing, so could you expand about what would be needed to cook this app into a rom?
actually after giving it more thought it would be more practical to store this in the registry. I chose to use a text file at first because I was not going to bother have a config app and you could modify it using notepad or something.
In registry would be the most preferred method yes.

[Sovled] CAB installer with long_send.lnk included.

Hi all
I've 99% finished an app that I'm about to upload, but have 1 tiny, tiny problem with it.
I've included a "long_send.lnk" shortcut in the CAB file, and it seems to be being duplicated for some reason.
I've got it set to install to the windows folder, and it does this, but it also installs a duplicate one in the Start Menu (I do have 1 other shortcut in the start menu - don't know if this is relevant).
My question is, does anyone have any idea why this would happen and, more to the point, how the hell do I stop it???
It's really annoying to get so close to completion and have 1 silly problem stop me dead, especially after having solved so many issues, like shortcuts that work no matter where you install the app (device or storage), and running the target app with parameters (they were both a pain in the arse to fix!)
Any advice would be very welcome.
Thanks in advance
Edit:
Sorry, I should probably have said that I'm using VS2008.
I should also explain that I'm creating the long_send shortcut in VS2008 as part of the CAB project, not externally, as I want it to point at the application, regardless of where it is installed. If I create the shortcut outside VS2008 then it may not be pointing at where the application is installed.
Just in case anyone stumbles across this with the same, or similar problem, I've just discovered the joy that is setup.dll, where you can code whatever you like for install and uninstall events.

Program to make websites into cabs?

is there a program out there to make a favorite/bookmark into a cab file so it will install as a .ink or program file? my whole idea is to make a bunch for things like fedex/ups tracking, store locators, and random rss feeds and some random websites for easy access. i want to make a folder in my start menu for these and iconize them to look like apps. thanks in advance. i am 100% willing to share my work if i can get the program and i am willing to take on custom orders.
Something like this i found long ago
The only ways I know of are either making a Widget or Making an exe that browses the site like I believe that starbucks one is. I did something similar for YouMail In visual studio.
{SBR}_L3GION said:
The only ways I know of are either making a Widget or Making an exe that browses the site like I believe that starbucks one is. I did something similar for YouMail In visual studio.
Click to expand...
Click to collapse
the starbucks.cab actually creates an .ink file that when launched, directs you to the store locator page on their site. i downloaded it probably 2 years ago and i forgot from where. it is exactly what i am looking to create. i dont want to make wigets because they take up alot more space than an .ink file. as you can see, this cab is a measly 12k and wigets can be 100k+.
I opened the cab in WinCe Cab Manager and it has an exe in it and also a shortcut its not hard to make one of these the exe is still very small mine for you mail is 22kb and it has a few feautures but it just gets the job done.
ive never used visual studio in my life, but i learn new software very quickly. let me know which version of visual studio i should use for wm6.5 wvga and i will get it crackin and pump out exes all weekend
btw with everyone looking at this thread, leave comments on which sites you would like me to create, like i said i got all weekend to work on this...
visual studio 2008 you kinda have to know a lil visual basic or some programming language you can now add 6.5 and 6.5.3 sdk's to visual studio.
cool im bout to start working on it now. thanks!
just downloaded vs 08. im reading all kind of tutorials ive found about it to make exes. lets see how long it will take me to figure this out
Are we talking like IE or Opera or something else?
Because for IE it's easy, you have Windows\Favorites and file name is what ie uses for name and inside is like
[InternetShortcut]
URL=ht+tp://something/
without the + of course
jakaka said:
Are we talking like IE or Opera or something else?
Because for IE it's easy, you have Windows\Favorites and file name is what ie uses for name and inside is like
[InternetShortcut]
URL=ht+tp://something/
without the + of course
Click to expand...
Click to collapse
it will open in the default browser
ok im stuck, please someone help if you can. i looked for a wm template for vsb8 to make exes and i cant find one, so i basically reverse engineered the starbucks app i uploaded to see if i can just switch out the site and icon and i cant. credit and appreciation is granted to anyone who helps out!
{SBR}_L3GION, thanks for the jumpstart on this. unfortunatly after 5 days of trying to get a template for wince exes, i had no luck. like i said before, i dont know a damn thing about vsb8 and i tried to learn and failed, so i am ceasing production with these. it was good while it lasted. again thanks.
for an easier approach, try using link creator from freewarepcoketpc.net. paired with an icon changer. you can grab any favorite you have saved and make a link to it in the start menu, then use icon changer to make a high def. icon. use iconpedia, they have awesome icons for free!
akademik_acheeba said:
is there a program out there to make a favorite/bookmark into a cab file so it will install as a .ink or program file? my whole idea is to make a bunch for things like fedex/ups tracking, store locators, and random rss feeds and some random websites for easy access. i want to make a folder in my start menu for these and iconize them to look like apps. thanks in advance. i am 100% willing to share my work if i can get the program and i am willing to take on custom orders.
Click to expand...
Click to collapse
Do you have a specific browser you want to open the link in?
Mabey within this thread you'll find your answer;
web page 2 mobile phone executable;
http://forum.xda-developers.com/showthread.php?t=649293
See 2nd post! Success!
Senax
I don't really understand why you want an .exe, when a simple .lnk file will work just fine.

[GUIDE]windows 8 combination keys

window+q we can find applications faster
windows+m this allows us to search in the configuration parameter
windos+i allows us to open the panel of configuration
windows+c opens the menu star
please if you read this post at least say thanks
nice......
You really should visit: http://blogs.msdn.com/b/jennifer/archive/2012/04/12/keyboard-shortcuts-in-windows-8.aspx for other great Win8 related items. The Windows Blogs are terrific.
Or
http://blog.laptopmag.com/13-new-shortcut-keys-in-windows-8
All great resources to stay up to date.
Also, to search or access a program the easiest? Simply start typing the App name, no need for quick keys.

Categories

Resources