yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] Cyclonezephyrxz7:
Image Resizer [V2.0](Command-Line Utility)

This application is a command-line based app for resizing images.

All instructions are provided in the Documentation.txt

Enjoy!

V1.5 Update:

In this version of the program, Cropping is now available. Look at the docs to find out how to use it. I also fixed an issue with Naming, so now the outputted file has the ACTUAL size of the image (not what is inputted in some cases). Also, you can use PERCENTAGE to resize/crop. Lastly, you can now simply convert your file from one extension to another.

V2.0 Update:

In this version, BatchCropping and BatchResizing is now available. Look at the docs to find out how to use it. This comes in handy when dealing with many pics in a folder. Please report back any bugs that are found :)

DISCLAIMER::::::

I did not code this program fully by myself. For the original Image Resizing project visit:

http://blogs.msdn.com/acoat/archive/2007/05/09/resize-images-a-thumbnail-maker.aspx

All Credit for the actual Image Resizing functions of this app go to the original author:

Username on msdn blogs is : acoat

Name (?) : Andrew Coates
[Windows Mobile Software Development] Cyclonezephyrxz7:
ContactRetriever V3.5

This application allows a scripter or dev to export a specific contact's data for easy use!

This program includes:

A simple, easy to follow documentation and functionality

A light-weight solution for getting contact info.

A SUPER EASY GUI (contacts menu) when not wanting to start it in CommandLine mode.

The ability to export specific contacts (or many) as VCF files

To Install/Use

Just unzip the ZIP file and read the documentation!

(To use the GUI, just run the app WITHOUT parameters, to use the CMD run it WITH paramteres)

Bugs:

None so far!

V3.5 Update:

In this version, you can find contacts by partial (or full) phone numbers! Read the docs for more info.

Please remember that while I did the coding on my own, help came from XDA and Google and the millions of resources on the net. Please remember that while this application is free, Donations are greatly appreciated!

Enjoy!
[Windows Mobile Software Development] Cyclonezephyrxz7:
UPDATE:::

Export-Studio 2.5 Is now out.

2.5 Has the ability to set the NUMBER of Contacts/SMS to be exported (with a safeguard that if the number is too high or is 0, it will set it to the maximum).

Expect an upgrade to Export-Studio 3.0 Soon (ability to export to VCF, and maybe MMS implementations).

Expect a new CMail to come out (ability to send E-Mail's via commandline and maybe MMS implementations).
[Windows Mobile Software Development] frmariam:
Contact related app...

I've been searching for an app that allows to browse the contact list (with a scrollable list of names for a GUI... similar to Outlook or any other contact manager) and retrieves a selected contact full name as a reg key (my point would be using it in conjunction with MortScript and go2contact to add a dynamic contact launcher feature to my HS++ skin... guess it would be usefull for other skinning engines too).

Would you be willing to do such an app?
[Windows Mobile Software Development] Cyclonezephyrxz7:
Sure would be! I will just implement a GUI into ContactRetriever! Expect a release in 10 minutes TOPS.

UPDATE::

Export-Studio 3.0 Now released - Can export Contacts as vCard (VCF) format!

UPDATE::

ContactRetriever 1.5 NOW released - Has a really simple GUI (same functions)!!

UPDATE::

ContactRetriever 2.0 NOW released - Ability to export as VCF, control # of contacts, and WILDCARD'ing
[Windows Mobile Software Development] frmariam:
Thank you so much! Just tried it and this was what I was looking for.

There seems to be an issue though... I can only get stuff from the first contact in the list... Also the name will be in all caps and have an underscore before it... I can't get any other contatcs info in the reg...
[Windows Mobile Software Development] howdykeith:
how about Cdown.exe -url "http:.../file.zip" -outp ".../file-Downd.zip"

as smartphones cant do that w/mort atm...
[Windows Mobile Software Development] Cyclonezephyrxz7:
Added to project list....WOrking on it :D
[Windows Mobile Software Development] frmariam:
Thank you so much for fixing ContactRetriever :D

While the paint is still fresh... Any chance on creating a value for the selected contact named "LastSelectedContact" (or something else) where the contact name is the data (without the preceding underscore and case sensitive like Outlook). Would really make it a lot easier to MortScript (I really have no idea how to get just the desired part of the key and remove the underscore).

Hope I'm not abusing of your good will...
[Windows Mobile Software Development] Cyclonezephyrxz7:
Hey, so I can't really make a key that is for "lastcontact" because the command-line users may export a whole bunch of them (as you can see, I implemented the ability to export based on Wildcards)....

As for removing the underscore and such, I put that there as a standard for users so that they know what WAS created by my program, or what was created by something else that may have used the same area (rare, but possible).

Anyways, if you want to format it, do a substring on the Key name using the indexOf the _ as the ending for the first and that + 1 for the start of the second, then bring it all to lowercase then make the first uppercase (through substringing?) I don't know the mort-commands, but I am sure you can figure it out by asking HowdyKeith or posting on the MortScript thread or reading the Manual on Mort's website.

Good Luck :D
[Windows Mobile Software Development] frmariam:
Thanks for the info. I've been reading the txt manual of Mortscript and it's kind of incomplete compared to the pdf... I'll read it tomorrow (must sleep) but until now I didn't find a function that returns the reg key (because it'll be random). I'm sure the substring bit will help.

Just found my contact list got sort of messed up by some app I used (guess it's too late to find out which one...) All the names (first and last) are now stored in the first name box... I didn't notice it before so I didn't get why was there a _ before the name even when I had a last name too.
[Windows Mobile Software Development] howdykeith:
Ok.

How about CSort.exe -inp "/path/Unsorted.txt" -outp "/path/sorted.txt"

maybe the option to dump the output into a regkey:

Sorted1=Alimoney

Sorted2=Bingo

...

If we r dumping to a reg folder, why not import from a registry folder too?
[Windows Mobile Software Development] howdykeith:
So i know u got the picture taking exe.

what about calling the Camera get picture class? Like your contact retriever calls the GUI.

I have to think about it to see if that makes sense.
[Windows Mobile Software Development] Cyclonezephyrxz7:
I am using Managed C# code, and the most 'power' that I get in terms of taking photos is just to start up the 'dialog' with certain paramters....so in MortScript, a script can just call it, then send the "ENTER" button to start and "ENTER" to stop (if it is a video) or save (if it is a photo)....

*FYI: The Camera App I am developing is currently in Private Beta, release soon enough*
[Windows Mobile Software Development] howdykeith:
So as far as contacts posted to the reg from contact retriever.

It probly should always delete the prior searches unless you give it a command -keep
[Windows Mobile Software Development] howdykeith:
For the advanced hacker: SQL database access and posting.

Do u have a Microsoft Bluetooth stack? There is no toggler for Widcomm Bluetooth. PhoneAlarm controls the bt just fine, so it's not impossible.

Can you turn on and off the flash? Other apps do it, so that's a low priority. But if you could and u added that function to an all in one tool, that would be cool.

Make a contact from a command line.

Can u change the power profiles? Normal/Headset/Auto...

Can u get the accelerometer info? i dont have one. Detect stylus removed from a command line?

I really hope u can get the sorter to the registry, so i am holding my breath til then.

Thanks Dude.

:p
[Windows Mobile Software Development] frmariam:
Hey I finally got a working script (learned a bit about Mortscript in the process)!

Here's a link.
[Windows Mobile Software Development] howdykeith:
Good job on that Contact script.

Here are some scraps I put together to see what was comin out of the exe:

#Functions for the ContactRetriever.exe::

ScriptPath = SystemPath("ScriptPath")
CyclonePath = "\CYCLONEAPPS\CONTACT_EXPORTS\"

#This program will ouptut the data of a contact (Mobile #, Home #, Business #, and/or E-Mail address) to a (or a set of) Registry values.

#If you run the application like this:

RunWait( ScriptPath \ "ContactRetriever.exe", "-image -output ""\Storage Card\Cyclone"" -gui" )

ForEach ContactFolder in regSubkeys ( "HKCU", CyclonePath )
message ("regSubkeys: " & ContactFolder)
idx = 1

ForEach RegPath, FolDir in regValues ( "HKCU", CyclonePath \ ContactFolder )
message ("FolDir " & ContactFolder & ": " & FolDir)
#In format Root\Key = 0/1
Contact[idx] = FolDir
idx += 1

EndForEach

EndForEach

RegDeleteKey( "HKCU" , "CYCLONEAPPS" , TRUE , TRUE )

message ("Mobile: " & RegReadExt( "HKCU", CyclonePath, "Mobile" ))

What i was gonna add, was that a good reason for having a all-in-one.exe is so that when we start using more than one command line exe, some of us have to click ok each time the exe is first run.

I guess if u were in there, u could add the go2contact feature into yer codes.

U could also integrate the message2reg functions as well.

:eek:

Also I released a new version of the CycHowdy Messenger. Gajillions of new options. The code underlying is very streamlined and super easy to add new commands.

Also, I posted a Csort.exe example over at http://www.sto-helit.de/forum/viewtopic.php?f=12&t=5695&p=13021#p13021 with 200 unsorted elements taking 4 seconds on my phone.
[Windows Mobile Software Development] Cyclonezephyrxz7:
Hey,

going to be away all weekend, but rest assured that once I get the 'best' improvements onto my apps I will compile them all into one super-program. Maybe i will even combine the GUI apps and have a main screen....

I dunno, Depends on how venturous I am....I will make sure to back everything up for when I really screw up hahahahah.

Well, off I go....good weekend all :D
[Windows Mobile Software Development] howdykeith:
Wait! Don't go!!! Just kiddin.

To facilitate testing command lines, I added a Command-Line Tester tester to The Mortifier. So we can browse to the exe and enter our command line parameters. Keeps the old exe and parameters in memory so you can re-test them easily.

A Command line hex editor. Wouldn't that be fun?

add notes. Save or read the .pwi file
[Windows Mobile Software Development] frmariam:
I'd love to see a usb mode toggler between ActiveSync (RNDIS) and mass storage (and be able to select the disk... Micro SDHC or storage memory).

All I have is a crappy script I made (device specific afaik)...

usb = RegRead ( "HKLM", "Drivers\USB\FunctionDrivers", "DefaultClientDriver" )

If ( usb eq "RNDIS" )
Run ( "\Windows\USBSetting.exe" )
Sleep ( 200 )
SendSpecial ( "Down" )
Sleep ( 50 )
SendSpecial ( "CR" )
Sleep ( 50 )
SendOK

ElseIf ( usb eq "Mass_Storage_Class" )
Run ( "\Windows\USBSetting.exe" )
Sleep ( 200 )
SendSpecial ( "Up" )
Sleep ( 50 )
SendSpecial ( "CR" )
Sleep ( 50 )
SendOK

EndIf

Selecting the disk is actually easier. Just need to change a reg value (DSK3 = storage memory; DSK4 = SDHC).

*These are all Samsung Omnia specific afaik.

An overall hardware toggle app (maybe with other hw related features) would be cool (radio, wifi, bt, flight, sound, power-on/off/reboot, screen on/off/brightness...)

PS: Are you as skilled in C/C++? Because that would be a nice improvement over C# (loading times and resource needs are way bigger in .NET).
[Windows Mobile Software Development] Cyclonezephyrxz7:
I am much more skilled in C# than C or C++ .... i am however learning (slowly but surely) C++...knowing of this advantage...so just wait haha, and an update will be soon enough
[Windows Mobile Software Development] frmariam:
I'm starting to sound like that abnoxious friend that is always asking for something even when you just did something for him :o

Seems like if I run ContactRetreiver as GUI (without commands) the selected contact image path won't be added as a reg key (or am I missing something?). This would be a cool addition (it would allow me to automatically get the contact pic in my HS++ theme).

PS: I did a little update on my script :) (still not the final version... may turn out to be a useful to other themers)
[Windows Mobile Software Development] Cyclonezephyrxz7:
Uhm, I can't recall at the moment, but I believe that REG may not be fully implemented in GUI....I can tell you however, that the BETA I had made prior to leaving this past weekend did include a command-line arg to run with -gui (i think it is -reg) that will export to reg. In the new beta, there will be a much more (pretty much 100%) complete output of data :)
[Windows Mobile Software Development] howdykeith:
Cancel

I opened up the contact gui. it needs a cancel.
[Windows Mobile Software Development] frmariam:
Good to know that the new version will export all contact related info when selected using the gui :)

@howdykeith

I think the "X" button acts as cancel.
[Windows Mobile Software Development] Cyclonezephyrxz7:
I did experience what you are saying HowdyKeith....but I don't know how to 'cancel' it because it is really an integrated function, one I cannot really change .. I'll try my best to see if I can get it to cancel, but as of now I can't see why is isnt already :(
[Windows Mobile Software Development] Cyclonezephyrxz7:
CSort [V2.0]

This program will take any list (from a file, or an inputted list, or from REG) and sort it alphabetically!

This program includes:

A full documentation

A command-line interface

use-ability :D

The ability to sort strings from FILES, INPUTTED LISTS, REGISTRY, and CLIPBOARD

To Install/Use:

Simply unzip and move the EXE in the attached file.

Read the documentation for help on running

Tips:

Try to use only one INPUT because results are not fully tested with multiply inputs (maybe for V2?)

You CAN use Multiple output METHODS : so you can use both -toreg and -tofile, but you can't use more than one of each!

Bugs/Issues:

None known as of yet!

While this program was coded entirely on my own, credit must be given to XDA and google for ongoing support in all the coding I do. While This program IS FREE, DONATIONS are greatly appreciated (see signature).
[Windows Mobile Software Development] dagosjt:
New requests

Hello,

I use a lot mortscript to have additional info in programs like WAD2. I was able to obtain everything I need, however for many tasks mortscript is very slow, so having little exes to be used command line could speed up a lot many things.

I'll try to put some requests here (some was already asked):

- Message2Reg. Already exists but could be maybe improved/customized better.

For what I need it would simply save on registry only 1 SMS (text, sender, time), and have a command line to go next/previous

- Mail2Reg .Similar to Message, would be wonderful if we could have a cleaned text on registry (like Manila/Sense is able to do)

- Tasks2Reg. Save in registry all tasks you have (even tasks without date)

- XML Parser. Very useful for RSS parsing and other similar tasks (twitter messages?). Possibly saving on registry the results

- Birthday2Reg. Configurable list (ex.: next 10) of upcoming birthdays/anniversaries to be saved in registry.

- Slideshow. A little program having as input a directory and the chance to choose a random image (including subfolders), the next, the previous, start slideshow (automatically choose another image every x minutes, both linear and random directions). Could be integrate with your image resize exe so that you can have the already resized thumbnail.

- GPS Toggle. There are many Bt/Wifi/Phone etc. Toggles but I wasn't able to find a GPS Toggle little exe.

Hope it isn't too much for you :D

A part jokes, I would be happy to know if you think you can do something ;)
[Windows Mobile Software Development] Jokes On You:
+1 on these. If it were possible to have the export app export to a registry value I think that would be perfect.

This maybe difficult seeing as not all xml files are written the same. I have a twitter, stocks and news parser(news and stocks work perfectly but twitter still needs work. I can get info from someone else's page but I cant get info for the homepage yet.) and each of theme a have a section that has to be removed, certain conditions that have to be evaluated etc.

For GPRS toogle why do a mortscript like

Connect( connection name )
CloseConnection

?

Other than that I agree on all your points.
[Windows Mobile Software Development] Cyclonezephyrxz7:
Thanks for all the recommendations! They were all put on my To-Do list.

As a small status update:

I am starting to develop apps for PC too (so feel free to PM me on that).

Cyclone-Sender

: Working on Removing upcoming Auto-Sends and adding a command-line interface.

Export-Studio

: Working on the ability to export MMS.

Appointmentor

: Working on the ability to delete Calendar Events.

CDL

: Working on the ability to download/upload [with the inclusion of Passwords and Usernames]

CMail

: Working on a full remake to allow for more functions, including: storing sent any sent objects (SMS, MMS, Email), deleting any objects (SMS, MMS, Email), and a text-interpreter so one can text "46645" by typing in "GOOGL".

Upcoming Program (In the Conceptual Stage) is a HomeScreen panel (or .exe App) that will get updates of multiple different RSS feeds (I know multiple exist, but I plan to add a little spice :D)

That is pretty much my status now. Looks like I have a good deal on my plate :-P. While my coding will be less (in terms of hours) this week, next week I should have much more time (as I am on vacation!). Expect releases relatively soon :)
[Windows Mobile Software Development] howdykeith:
So I wonder if u can get your resize image exe to do cropping. Crop from W1 to W2, or Crop H1 to H2...
[Windows Mobile Software Development] Cyclonezephyrxz7:
Cropping is distinctly easier than Resizing! I'll add that to my To-Do...

(Gosh that list is getting long....I'll work on it eventually haha)
[Windows Mobile Software Development] dagosjt:
Mmm, tried the ImgResize.exe program but doesn't work.

I mean, I use it inside a mortscript and syntax seems correct. It runs and produce the file[widthxheight].jpg in the same folder of original.

The new files have a dimension in byte but htc album refuse to open, while using a more advanced photo program it says dimensions are 0x0.

I tried resizing 480x800 and 800x480 pics to 240x400 and 400x240 (so mantaining proportion) and resizing other different resolution always to 240x400 | 400x240 (NOT mantaining proportion).

Could you give a working example? Maybe already inserted in mortscript?

Or is it a bug? :D

Thanks a lot
[Windows Mobile Software Development] dagosjt:
About my previous post

About XML Parser:

I agree there are many different XML type, maybe cyclone could find a way to configure the kind of info we really need. For sure it would be possible to have a generic one for rss feeds, just to start :)

About Toggling:

I wasn't speaking about GPRS, but GPS, Global Positioning System :) The only solution I found until now is to start another more complex program able to start GPS and to let it running in background.

Speaking about this, maybe this exe (or a different one, or probably better a service) could put always in registry a minimal of GPS info too (lat, long, altitude, speed, satellites etc.)
[Windows Mobile Software Development] Cyclonezephyrxz7:
So as far as the XML parsing goes, its funny you mention it because that Computer App i am deving that I mentioned is actually a fully customizable RSS Feed where you can input virtually ANY RSS and some data about it, and it will parse it....Of course this is a tough task, so It will take me the better part of a few days....but it WILL BE DONE (and then I will port it to Smartphone/PPC).

As far as GPS goes, that is a bit more of a challenge for me as I don't have GPS on my phone....If you would really want something done, I can code it up and then you would have to actively be online for x amount of time as I send you new binaries and we debug it.....

Hmm...Well the program is designed to maintain aspect ratio, and as I mentioned, that program is almost entirely copy-paste from the source site (which I provided) ... So if there are any bugs, I would have to confirm the same bugs on my phone/computer. If you will, can you please tell me a bit clearer the exact commands you ran and on which images, etc.

Thank You :)
[Windows Mobile Software Development] dagosjt:
Ok I'll wait for your RSS job finished ;)

About ImgResize this is the line I use inside a Mortscript:

Run(SystemPath("ScriptPath") & "\" & "ImgResize.exe"," -input """ & destPath & fileName & """ -width " & widthImg & " -height " & heightImg)

If widthImg=240 and heightImg=400 and image file name is "smallImage.jpg", I'm able to obtain the file:

smallImage[240x400].jpg

smallImage size appears to be 95k (is 480x800), while the resized one appears to be 77.3k.

So I think paths are correct, and even width/height

About the pics themselves, it happens with all the pics I tried, so I think you can reproduce with any pic of yours.

Thanks for effort ;)
[Windows Mobile Software Development] howdykeith:
Helllo.

I wonder if we can look up a contact by telephone number?
[Windows Mobile Software Development] Cyclonezephyrxz7:
sorry, dagosjt ... but I cannot test, and don't really know how to fix, that problem because the ROM that I use also present issues in general with HTC Photo Album....I believe the cause may be that HTC Photo Album looks for 'perfectly' formatted headers, which I cannot assure the image will have...

If i do stumble upon a solution, i will fix it :)
[Windows Mobile Software Development] dagosjt:
What a strange thing. I confirm HTC Album can't open the pic and Resco Photo Viewer says 0x0 dimensions, however when I use the resized pic inside WAD2 everything is showed ok!!

So don't worry for now, works in the only case I really need :D
[Windows Mobile Software Development] frmariam:
I think that only now I get what you mean... I seems that if you cancel ContactRetriever it'll still output some data before it exits (on exit it'll be deleted from reg). I got this feeling because of my HS++ theme and scripts (uppon cancel I would still end up with a valid contact page shortcut).
[Windows Mobile Software Development] howdykeith:
mind u i have no idea, but maybe you could compare the header data (start of the image file) in a hex editor to see if there is a difference? Maybe first resize the image to be 100% (same as original) and then compare the 2?
[Windows Mobile Software Development] Cyclonezephyrxz7:
I am busy coding up a couple new apps/app improvements at the moment, but if someone would like to do so that would help me out a bit. However, I still stand pretty firmly that the error may be coming from HTC Album because I experience this sort of problem ALL the time with HTC Album, on images that haven't been parsed with my App. I can't test it on my Excalibur because that problem exists, but if someone else can document it (pics + text) I would put it on my list of things to fix...
[Windows Mobile Software Development] howdykeith:
This from the mortscript forum:

I agree.

It would be cool if getfile could be swapped out with a new one. that would also may mean that any old apps that use getfile, like UPXppc for example, could use it instead.
[Windows Mobile Software Development] frmariam:
:D

I really want that feature (or an app that replaces that function) mainly to use with my HS++ theme app tab but Mort seems to be MIA. I forgot to post the GSFinder+ sources (well a branch... it's a good/could-be-awesome file manager).

This would be the file/folder equivalent to ContactRetriever (well if it output the file/folder name/path to reg).