automation on XDAxx - Windows Mobile Development and Hacking General

guys. Is there a way to write batch files to execute multiple programs and/or perform multiple tasks? and i am not talking about autoruns, i am talking about using a single file to (for example) install a program, run it, and selecting the file menu and save. something like autoit.
if anyone is interested in making such a thing, here is a source code (available from the maker) for the well known proggy "AutoIt"

Related

trigger action on card insertion/removal

Hello,
I'm using two microSD cards. Some programs are installed on both (and work regardless of which one is present in the device), some are only installed on one card. I don't need those programs at that time, but it leaves shortcuts to non-existing targets in the programs folder.
I wat thinking of ways for circumventing this (my Psion 5mx had a dynamic "programs folder", showing only the available programs at that particular time). Here is my idea: I can make MortScripts to copy the shortcuts from the start menu folder to another one (e.g. in my documents), and to copy them back to the start menu folder. But I need to start them manually.
Is there a way to trigger a script upon card removal (the script to remove shortcuts from the start menu folder)? And is there a way to trigger another script upon card insertion and execute a script on the card itself (if both cards have a script with the same name, this script could carry the appropriate action to copy relevant shortcuts to the start menu folder). Alternatively a script on the device should have to recognize which of the two cards is inserted (e.g. based on volume name) and execute the appropriate script - but I think executing something on the card is easier.
Any suggestions on how to automatically trigger this?
(I'd like to manage this with scripts / executables only, not develop my own software for this purpose)
Thanks!
Jörg
There is a notification event when the card is inserted/removed.
You can also use an autolaunching app to launch a script on the card itself, when inserted.
http://www.pocketpcdn.com/forum/viewtopic.php?t=334
V
Thank you!
In the thread, a user mentions a freeware autorun.exe redirector, but I
can't find it on the site he linked in his post
(http://www.pocketpctoolkit.com ).
Do you have it, or know of another autolaunching application?
Thanks again,
Jörg

dummy.exe needed

Hello,
could I ask any of the developers here to create very simple exe file for me that would actually do nothing.
Just two features needed:
1. system will recognize it as executable
2. will terminate itself immediately.
I just need to replace real application with it on some occasions by script.
I tried all other options to conditionally block the autorun but this seems to be my last option and I was not able to find one on the internet.
Many Thanks
hmmm, Im not a expert in EXE files, but wont a empty text file renamed to .exe do the trick?
This seems like it will do what you want. VS2005 project attached. It includes a compiled file for WM2003, which seems to run on WM6Pro fine. So, this ought to work on anything from WM2003 to WM6.1Pro.
…fantastic. This is exactly what I need.
Many Thanks!
not the right place to post.
READ THE RULES
thank you

[DEV] ROM Tools

Hi,
I'm currently working on a few tools, and want to know what features would be liked by cooks/users or anyone really.
The first tool is an exe generator for hot fixes. Simply put, you plug some files into it, and it generates an exe that can be run on the target device which will do all the hot fixes.
The advantages it gives:
No more cabs!
Can use a custom icon for the exe if desired
Things like messing around with setup.dll files doesn't need to happen, and an application can be launched after install if wanted
Files can be deleted
File properties can be changed
Can use XMLs
Can edit registry
Can install files
Since it's written in native C++, it should run without a hitch on WM5+ devices, whether or not they have .Net whatever...
The second tool is an AutoRun/UC/whatever like system that simply searches through a folder, finds all cabs/xmls/provxmls and then installs them. This means there's no reliance on autorun for parsing config files, or any other requirements. Again, it's written in native C++ so is better
Any suggestions/ideas would be welcome!
Oh, and once I've got slightly further, both these will be released as open source. Probably.
l3v5y said:
Hi,
I'm currently working on a few tools, and want to know what features would be liked by cooks/users or anyone really.
The first tool is an exe generator for hot fixes. Simply put, you plug some files into it, and it generates an exe that can be run on the target device which will do all the hot fixes.
The advantages it gives:
No more cabs!
Can use a custom icon for the exe if desired
Things like messing around with setup.dll files doesn't need to happen, and an application can be launched after install if wanted
Files can be deleted
File properties can be changed
Can use XMLs
Can edit registry
Can install files
Since it's written in native C++, it should run without a hitch on WM5+ devices, whether or not they have .Net whatever...
The second tool is an AutoRun/UC/whatever like system that simply searches through a folder, finds all cabs/xmls/provxmls and then installs them. This means there's no reliance on autorun for parsing config files, or any other requirements. Again, it's written in native C++ so is better
Any suggestions/ideas would be welcome!
Oh, and once I've got slightly further, both these will be released as open source. Probably.
Click to expand...
Click to collapse
Wow, this sounds very very promising. Can't wait!
dwizzy130
yeah some user friendly and easy to understand specialy editing the rom or making add/remove programs EASILY is the best specialy to noobs like me when cooking ROMS all in one tool with advance AI for error checking
Sounds very attractive. go on my friend.....
Sounds good mate
I'm looking for a tool to easily make a setup.dll. Like setup.dll maker/generator/wizard.
Seems the only tools I can ever found is from e-pocketsetup, but that company was sold to another company and the product was never available since then.
I know cooks hate a cabs with a setup.dll. But seems without setup.dll a cab installer can not execute some little complicated actions. And it is impossible to make a setup.dll without grasp a computer language like c++.
Edit: Found another one: setupdllcreator , but it's not strong enough and not freeware.
Edit: If these can be realized, a setup.dll maker is much less needed:
No more cabs!
Can use a custom icon for the exe if desired
Things like messing around with setup.dll files doesn't need to happen, and an application can be launched after install if wanted
Files can be deleted
File properties can be changed
Can use XMLs
Can edit registry
Can install files
Click to expand...
Click to collapse
But we need above mentioned fubctionalities to be DYNAMIC, like:
Can detect availability of certain reg entries or installed apps, base on the result to decide which variants of install files to be installed, or whether some supporting apps like netcf or mortscript to be installed. Or can detect device id, resolutions, drivers to decide what to do.
Otherwise it still can not completely replace setup.dll.
But if dynamic actions can be executed, wow that's a dream of developers & hackers and even common users can benefit from that, a real revolution !
woww can wait for realese
l3v5y said:
Any suggestions/ideas would be welcome!
Click to expand...
Click to collapse
So I'm posting my requests again, the idea is this: It will be much helpful if I can know what is happening/changed in the registry after I did anything to my WM devices. So maybe you can develop a tool to monitor & log the real-time changes of registry. Or at least we can have a registry-comparision tool on ppc.
Another thing is it seems we don't have a file structure viewer on ppc, not the stuff like total commander etc., want to export the file structure to a file like .txt or .jpg.
Update: Now my idea is clearer for this, what I suggest would be a System Snopshot program to realize this:
Can make a system snapshot to record the registry content, file structure, ram usage etc.
The snapshot can be initialized in the similiar way of CapSure screen capture program, i.e., a hardwre button, a fixed time, a screen tap, a program launch, etc., defined by user.
Can choose a full system snapshot or only on selected part of registr, file system etc.
Can generate a file containing the recorded system condition.
Can compare any two system snapshot result and generate a comparision chart/change log.
So I've posted my requests as per your request, whether or not you'll do it is not my business lol.
Update: Found SK Tracker, cost EUR9.95, so forget this one. Why I did not know it in the past?!

[Req] Task scheduler that works on HD2?

I searched for, and downloaded, RunEveryday.exe, a native winmo executable released in these forums, to schedule a mortscript to do nightly backups of a part of my documents to microsd, but it apparently won't work on the HD2, I always get a mssage about it not being able to run the task.
I tried calling the .mscr file directly, or calling it via a .lnk file, and whereas clicking manually on those files would trigger the script, runeveryday won't launch it no matter what, even if I put it in the root of the internal memory (to avoid possible, reported problems with long paths).
So I am supposing that little app is a no go on the HD2... what other options are left?

Easy copy/paste from windows desktop to phone (useful after flashing)

Hi,
Not sure if I should be using a thread to share this, but I find it so useful I thought I'd share. Whenever I wipe my phone for flashing, I often need to copy paste my long passwords or other credentials to setup my apps.
I don't like using titanium backup since I often go from AOSP to non AOSP, etc.
I don't like using a clipboard sync solutions since it might be sensitive info (passwords) and the current solutions I find clunky (UI-wise) at best.
I thus settled for QRcodes. Here's my workflow:
I copy text on my desktop
Click .BAT file
Scan the resulting QRcode with my phone (which puts the text in the phone clipboard)
Paste in desired app on phone
How to create the BAT file on your computer:
First put those two apps in a folder
ClipOut and qrencode-win32 (search google)
then create a .BAT file with the following:
ClipOut | qrcodecon -o test.png -s 10
start /w test.png
del test.png
You can of course modify BAT file to start any app you want for PNGs, or you can play around with the qrcodecon options to generate other formats.
Needless to say, you can use this with any device capable of scanning Qrcodes, not just the S3.

Categories

Resources