Another example of C++ Win32 minimalist programming from the 'stephj' stable. The whole lot fits in one 17Kb executable.
The peg version of 'solitaire' as usually played with a wooden board and marbles. To play, hop one counter over another into an empty square on the far side either horizontally or vertically, and remove the counter that has been jumped over. Click or tap the counter you wish to move, and if it can be moved, all possible target positions for it will be highlighted in dark grey. Click or tap one of these targets and it will hop over and remove the 'jumped over' counter.
The object is to end up with one solitary counter in the middle of the board. Easier said than done, so there is a useful 'Undo' function allowing you to back out the previous move, all the way back to the starting pattern if you wish. Try that with the real marble version! There are fourteen patterns from which to start, the default being the 'Classic' starting position. All are solvable, start with the Cross pattern if you are struggling!
Here's the clever stuff:- It will run on any ARM powered Pocket PC or Smartphone from 2003 onwards. (ARMv4 onwards, possibly even 2002, I haven't had chance to test it on this platform.) It will also handle any sized screen as it dynamically resizes to fit it. Portrait, landscape, square or HVGA. Who cares, bring it on! The HVGA compatability should help quell the increasingly vociferous HD Mini owners, who are not too keen when Apps look a mess on their devices.
A Smartphone has no touch screen, and as such the white dot appears as a cursor. Move it with the D-Pad to the counter you wish to move and press the centre button. Possible targets appear dark grey as above, move the cursor to the target, and press the centre button again to hop over.
The program is aware when you run out of possible moves and will tell you so. Land the last counter in the middle hole to successfully complete the puzzle.
On your device the card game Solitaire provided by Microsoft, is included as part of the standard OS. It exists as a .lnk to the real executable. This program is an .exe file of the same name but it identifies itself to Windows Mobile as PegSolitaire so that it will not conflict with the cards game, if they are running simultaneously.
It is possible to drop the executable into \Windows\Start Menu\Programs\Games and it will live next to the real MS Solitaire program link - See the StartMenu image. If on your device the card game is stored here as Solitaire.exe, rename the attached file to 'Peg Solitaire.exe' or whatever you want to call it.
Only the executable is required, as all the DLLs it uses are already on your device.
It used to have quite nice 3D rendered counters, but the trials and tribulations of getting it to run on as many different displays as possible, without it looking dreadful, was just not worth the hassle. Eventually I opted to drop the 3D stuff for the retro look, as seen below.
Happy puzzling!
Patterns bug.
If you were one of those who downloaded this before the date of this post, there is a bug in the shapes section of the menu.
The Circle, Double Arrow and Diamond patterns did not match the menu. They pointed to the next one of these three.
This problem has now been fixed and the app reloaded.
My apologies for the inconvenience.
CE version added.
This has now been ported over to run on ARM powered CE devices.
Do NOT run the CE version on your Windows Mobile phone or Smartphone, and likewise, do NOT run the phone version on a CE device.
If you do, the display looks awful. You have been warned.
Happy puzzling, stephj.
CE version added.
Doesn't work in Windows Embedded CE 6.0 Professional (800x480): Initial screen properly shown (looks great), but then no reaction to stylus.
I have run this on the 4.1 and 5.0 CE SDK emulators, and it works a treat. Unfortunately I do not have a real 'CE' device to test it on but I may be able to get access to one if required.
Remote debugging can prove to be a bit awkward but here goes......
First of all. - Nothing happens until you click or tap on a yellow counter that you can actually move, when the destination 'hole' is then illuminated in dark grey. Tap on this dark grey hole to jump the counter over.
Do the menus work when you tap on them?
What exactly are you trying to run this on? Make model etc.
The program responds to the WM_LEFTBUTTONDOWN message sent to the app by the operating system. This is usually the resonse to a mouse click or screen tap.
Second, run the attached, and what does it report. It returns the co-ordinates returned by the GetClientRect() function.
It should show "Main x x x x - Menu x x x x" with a black bar 20 pixels high across the bottom of the screen, where x represents a value returned.
Report those values or post a screen shot we will use that for starters.......
1) CE 5.0 inbetween is very outdated (but some devices still are based on it), since 2009 CE 6.0 dominates. CE 4.2 you probably only can find in a museum. Emulator with an CE 6.0 image is available from MS free of charge.
2) It shouldn't be of any interest what device (Make, Model) your 'PEG SOLITAIRE for CE 'is planned to be run on. You claimed it should "run on ARM powered CE devices". No restrictions made.
3) Menu seems to work, items are accessible.
4) Result of GetRect is: Main 0 0 454 800 Menu 0 0 24 800
BTW: I'm no longer interested in this game, in no case I'll become a beta-tester.
There is no such thing as a Standard SDK for CE 6.0 like there used to be with 4.2 and 5.0
http://blogs.msdn.com/b/ce_base/archive/2006/12/14/what-exactly-is-an-sdk.aspx
Looks like the OEM's have all gone their own way, anyway.
Under CE 6.0 if you don't have the SDK for the device, which is probably totally proprietary, and not public, then you can't test it in a debug environment, and hence find out what the OEM has changed on the device.
So the disclaimer is now, "Should run under CE 4/5, may or may not run under CE 6.0"
Looks like days of a generic application are over. It's hardly worth the effort.
Windows Embedded CE 6.0 image exists, also Windows Embedded CE 6 SDK exists
FYI
CE 6 image:
http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=76695&whichpage=2#963026
CE 6 sdk:
http://blogs.msdn.com/b/obloch/arch...sdk-not-installing-on-visual-studio-2008.aspx
Thanks for that.
Here's the WINCE_6.0.BIN image running in the device emulator.
Solitaire runs a treat.
I can confirm that both versions work - and both look great, running in full screen - on the CE 6 netbook (both 800x480 and 1024x600) as well as on a 7-inch Windows Embedded Compact 7 netbook.
Does not run on WinCE 3 (Windows Mobile 2002) - tested (and failed) on a QTEK 7070.
This game is very interesting. Do you like this puzzle?
tobbbie said:
Does not run on WinCE 3 (Windows Mobile 2002) - tested (and failed) on a QTEK 7070.
Click to expand...
Click to collapse
This program was originally written using Embedded C++ using the WM 2003 and CE 4.2 Standard SDKs.
I have reinstalled Embedded C++ 3.0 and the WM2002 SDK, and the WM2002 Smartphone emulator will not run it the code that works on WM2003.
There are some very subtle nuances between WM2003 and WM2002, which will have to be addressed before it will run properly. I'm on it, but it may take a few days.
This was not meant as a challenge - but if you want to pick that up I will recheck it. No hurry needed anyway - the device is in the museum drawer
Now updated to 1.6
PPC/Smartphone version now rebuilt under the WM2002 SDK. Runs on all versions from WM 2002 to WinMo 6.5.3
As mentioned there were a few oddities to be overcome in trying to retro the thing. Under WM2002 SystemParametersInfo() - used to detect the device platform - PocketPC or SmartPhone, fails with access denied, if it is called before the main window is created. Later versions of WM don't care.
Now runs on the WM2002 as well - tested on a Qtek 7070
I only wish there was a demo mode that brings the shapes to a solution - or something like a roll-back when you feel in a dead end situation.
Oh well - and something obvious: why not have an "Exit" Menu item?! This is missing in all your programs and useful for smartphone where you have no Window Close button.
The roll-back option already exists as the Undo option on the menu. You can roll it back to the original position if required, by the repeated use of it.
The use of a Program Exit option was discouraged by Microsoft in their original Window Mobile interface programming guide, as the programs were meant to sit in the background of the machine until reactivated.
In this case, this program only uses about 70+ Kb of memory when it is running, hardly a show stopping drain on the available resources.
But, if you want it, why not? Now included as 'Exit' on the main Solitaire menu. Program replaced in post #1.
stephj said:
The roll-back option already exists as the Undo option on the menu. You can roll it back to the original position if required, by the repeated use of it.
Click to expand...
Click to collapse
Oh well, you are right - did not notice this. One thought for usability: Can you assign this function to the "2" key - which is usually directly beneath the cursor/D-pad? This could much ease the navigation as it saves you from the "Menu-scroll-enter" sequence. For touchscreen devices a dedicated tap-field could help. I thought suggesting the "back" key for that, but this has a system wide purpose and should not be captured.
stephj said:
The use of a Program Exit option was discouraged by Microsoft in their original Window Mobile interface programming guide, as the programs were meant to sit in the background of the machine until reactivated.
In this case, this program only uses about 70+ Kb of memory when it is running, hardly a show stopping drain on the available resources.
But, if you want it, why not? Now included as 'Exit' on the main Solitaire menu. Program replaced in post #1.
Click to expand...
Click to collapse
I know and I never liked that. If the potential automatic close would also save the current state of any application it would be ok, but it seems that MS has not put THAT to their guidelines. Consequently I would still like to have control which programs run and which not. Other programs have even put that configurable (e.g. Oxios ToDo or Papyrus) but that is overkill I think.
As I use XBAR I can end any running program any time, but part of the menu is better. Thanks for this!
More thoughts for improvements:
show possible moves e.g. by overlaying arrows to the jumps, assigned to a key on smartphone (1 or 3, as 2 should be "Undo")
autosolve feature (animated - from any starting point or possibly with loadable solution paths from the standard start conditions)
coloring adapted to the active color scheme or selectable
skinnable board and pegs
It could be endless and I know that hardly anyone cares for such simple games in the age of animated 3D and Surround sound.
Some of this will be implemented, some of it won't.
Like 5x5 it is a dual platform program, the same executable runs on PocketPC/WinMo Professional and SmartPhone/WinMo Standard. Usually you would release two separate versions each built under the corresponding SDK. This single program looks at which platform it is running on, and behaves accordingly. This means it has to exist with somewhat of a split personality. Some code from one platform must not be run under the other, and vice versa.
Linking the '2' key to the 'Undo' option on Smartphone should be quite easy. Update... Done!
The D-PAD and enter is ignored under PocketPC/WinMo Pro. Under Smartphone, when a suitable counter is selected with enter, the target holes are displayed. I will make the D-PAD respond if it is moved toward a suitable target hole by 'jumping over' it immediately, thereby saving two extra depressions of the D-PAD.
The demo solution option from each pattern starting position could be added, I can quite easily lift some of the code out of 5x5 to do this, as it is a very similar setup. But first I have got to get the solutions! This may take some time........ I'll create a modified version of Solitaire to write out the Undo array if the solution is completed successfully. Once all patterns have been completed, build the data file to load as a program resource later.
Skinning: Looks good but it is a total pain in the butt. It used to have nice 3D rendered marbles and holes, but trying to get it to work and look good on lots of different sized displays turned into a nightmare. Eventually I opted for the vanilla option and dynamically scaled it to fit within 90% of the narrowest side of the display. The code figures this out, and centres the board, having raised it just enough to fit the messages across the bottom.
Colours from a pick list: I'll have a think about it.
"I'll be back"
stephj said:
Linking the '2' key to the 'Undo' option on Smartphone should be quite easy. Update... Done!
Click to expand...
Click to collapse
Thanks - that was fast!
stephj said:
... I will make the D-PAD respond if it is moved toward a suitable target hole by 'jumping over' it immediately, thereby saving two extra depressions of the D-PAD.
Click to expand...
Click to collapse
Will see how well that works. It still seems to rely on your selection to show possible options for the selection. What I was after is to show ALL possible moves of ALL items - probably only by pressing a special key. So you can decide which item to move.
stephj said:
The demo solution option from each pattern starting position could be added, I can quite easily lift some of the code out of 5x5 to do this, as it is a very similar setup. But first I have got to get the solutions! This may take some time........ I'll create a modified version of Solitaire to write out the Undo array if the solution is completed successfully. Once all patterns have been completed, build the data file to load as a program resource later.
Click to expand...
Click to collapse
No hurry - this is a true nice-to-have only. Hunting for solution patterns may be a tedious task. I wonder if there are generic algorithms to solve these (no?).
stephj said:
Skinning: Looks good but it is a total pain in the butt. It used to have nice 3D rendered marbles and holes, but trying to get it to work and look good on lots of different sized displays turned into a nightmare. Eventually I opted for the vanilla option and dynamically scaled it to fit within 90% of the narrowest side of the display. The code figures this out, and centres the board, having raised it just enough to fit the messages across the bottom.
Click to expand...
Click to collapse
Not needed to beautify on the programming level (3D rendering), but simple skinning? I mean just pick the unscaled (upper left) part of a delivered picture for the items to map. This could be board, marbles, holes and background. No sophisticated scaling or positioning. While scaling could be an easy option to supply similar look on all resolutions.
No hurry here either and also no problem if this is off your list.
stephj said:
Colours from a pick list: I'll have a think about it.
"I'll be back"
Click to expand...
Click to collapse
Thanks for your continued efforts, much appreciated.
Related
Greetings to all,
Does anyone know how you swap the the vertical list of recently open programs in WM5 Start Menu (Buzz's 1.6b version) for the horizontal list? I know it is possible (as below; FYI I switched to landscape using True Toolbar)
In the registry I can find the list of recently used programs:
HKCU\Software\Microsoft|Shell\TaskSwitch
but I can't locate a registry or setting for how they are displayed (if indeed controlled via the registry). I'd thought about dumping the pre and post change registries and trying to compare them but I'm a newbie at this and the whole thing looks massive to try and spot changes visually.
Anybody take a stab as I'd like to be in portrait view but with a minimalised start menu. I've searched all hacks/tweaks/registries (forums and wiki) without success, perhaps someone out there may be able to help.
Suggestions very much appreciated.
Mallow1
did you get any other info on this hack??? I would really like to have my recent programs displayed in this manner rather than the other way.
Not yet... still looking without success
Guys, this is not a hack, this is what happens when you switch from Portrait to Landscape.
Cheers
Pat
Hi Pat (nee how ma?),
Thanks for your reply. A defined variable must be controlling the style toggling (horizontal v vertical list) and it looks just too binary a choice not to have a tweak (even an unknown one yet to be identified), especially since this used to be how the list was displayed back in earlier versions of WM (even when in portrait). Yep I'm completely guessing that there's a tweak, but if you don't ask/ try you don't find out. If not, Buzz may be able to code it in as one in his next version of WM5 if this thread generates enough interest. Do you speak with authority on this or were you simply commenting?
The other approach I'm exploring is via the latest WisBar Advanced beta. When switching from portrait to landscape instead of producing a horizontal list of icons only (my desired outcome), it groups the list into a vertical submenu (variation on a theme). Therefore since I'm a WA user achieving it there is equally valid for me (if not more desireable). I'm awaiting feedback from Lakeridge (though the beta developers have far greater priorities developing WA2 to run more smoothly under WM5 so I'm not holding my breath just yet).
Regards - Mallow1
OK, Here is the deal.
I have created a working XdaLive Screen Lock for the XdaLive Live Wm6.
This is similar to the iphone with a working Sliding Unlocker. Only I put the sliding unlocker on the top and used XdaLive image as the Background & put the Digital Clock and Date at the Bottom as you can see in the Image I attached.
FINAL WORKING LIST:
1. Battery Life
2. NEW SMS Counter
3. Active Tasks
4. New Emails
5. OWNER NAME DISPLAY.
(TODO: A LOT OF THINGS LIKE ADDING MORE FUNCTIONALITY, FIX A LOT OF LITTLE THINGS & NEED TO FIGURE OUT HOW TO READ REGISTRY KEYS with SPACES in BETWEEN ANY HELP? ONE THING IS TO NOT HAVE THE APPLICATION QUIT ON END BUTTON (FIXED!).)
Another thing:
----------------------
Does anyone know how to replace the default Lock with this one? I tried replacing the DeviceLock.exe with this one and it does not work. BSDeviceLock.exe does not exist in WM6 either.
WAS A LITTLE OUT OF IT BECAUSE OF JACK DANIELS. HENCE THE BLACK SLIDER
DUE TO A LOT OF PEOPLE WANTING TO TEST THIS, I DECIDED TO JUST PUT THE FILES IN THE OPEN AS I WORK WITH THEM. LIKE DAILY SNAPSHOP OF THE EXECUTABLES (WHENEVER I WORK ON THEM)
THIS IS A PRE-PRE BETA OPEN TEST RELEASE AND NOT PACKAGED.
UNZIP AND PUT THE FILES IN A FOLDER. THE DLL & THE EXECUTABLE HAVE TO BE IN THE SAME FOLDER
REQUIREMENT: FLASH ACTIVEX (NOT FLASH LITE)
ZIP FILE DESCRIPTIONS:
--------------------------
1. xdaLiveScreenLock.zip (XDA LIVE UNLOCKER)
2. SliderLock.zip (JACK DANIELS BLACK SLIDER)
*****MORE IMPORTANCE WAS GIVEN FOR LOOKS RATHER THAN FUNCTIONALITY WHEN STARTING THIS.****
not responsible for anything that might happen by using this little useless application. There are a lot of small glitches usability wise, else works good. preference was given to aesthetics more than anything else. The size is big due to the sliding component being created in flash.
ADDED A 240X240 SLIDER. THIS HAS NOT BEEN TESTED AS I DO NOT HAVE A 240X240 Device.
.
this looks excellent, good job! I have been wondering about that also, devicelock is signed is it not?
Anyone know of a generic wrapper with basic API calls that I can call from within this Flash Application?
edit: compiled own from source code found, change adopted and compiled.
Hi,
i don't really use the device lock... because when turning the phone in standby all key's are locked and i don't want that the screen is always on...
or is there any other significance about using the device lock??
cyberdrakula said:
NEED TO FIGURE OUT HOW TO READ REGISTRY KEYS with SPACES in BETWEEN ANY HELP
Click to expand...
Click to collapse
don't really know it helps... but just test too but the string in " " like in commandline when using spaces... maybe you can just try to use double bslashes \\windows\\system32\\
this looks awesome. the people on this forum never cease to amaze me. Pure Genius
WOW the progress of this is really good sir, youve managed to implement a few more features since i last looked. This will definatly be in the Extras wiki page once it is fully working
I thought about what you could do in respect to replacing the standard lock, disable the lock in the today settings and map this program to a hardware button (5??) How does it fair after a power off (just standby not fully off) as it would be a good way to check the time etc... in the night?
keep up the good work CD, quite a few people are waiting for something like this.
Heya all gurus, give tha man a little help with issues maybe?
Thanks Ppl.
This is something I have been wanting to do for a while now but just got around to doing it. Hopefully in a couple days I will have everything squared out.
I am wondering if I should let ppl test this out. I will also have changeable backgrounds for this.
.
futureshock said:
Hi,
i don't really use the device lock... because when turning the phone in standby all key's are locked and i don't want that the screen is always on...
or is there any other significance about using the device lock??
don't really know it helps... but just test too but the string in " " like in commandline when using spaces... maybe you can just try to use double bslashes \\windows\\system32\\
Click to expand...
Click to collapse
To read the registry I had to actually use \\\\ to get to different levels. But I am NOT able to read the Value Names with spaces.
.
CCRDude said:
Since not even Sbp Mobile Shell was able to replace the lock screen (and that while they basically have something to show then ready with their new Intro screen), I guess it could get quite complicated to replace it...
Does anyone know if the fake iPhone things that were or were not around are able to replace the lock screen? I especially remember that last one were only videos existed, it had a real good fake, but I'm not sure if the video showed it really in action as a lock screen?
Click to expand...
Click to collapse
I am able to Execute it on "Device Wake" via notifications (thanks KYPHUR for the suggestion.) I also actually was able to replace keylock @ Install time and an installation induced reset. The icon also shows up in the Setting folder.
I am also thinking about doing a Today Plugin. Let's see how that goes.
Looks nice..cant wait till its released..
open Pre-pre Beta Test Release On The First Post.
.
Where to download?
Yeah!!
Would love a slider unlocker as a today plugin. I use the WMP plugin since I use my phone as an mp3 player a lot so the device lock function on the today screen is a must for me.
Great work and look forward (hopefully) to a today plugin.
S.K.
cyberdrakula said:
To read the registry I had to actually use \\\\ to get to different levels. But I am NOT able to read the Value Names with spaces.
.
Click to expand...
Click to collapse
Could you use %20% AND %40% to represent the space and other special characters as they do on other windows products? MS has a list on its knowledge base for these...I think %20% is the space, but not sure
eagle 1 said:
Could you use %20% AND %40% to represent the space and other special characters as they do on other windows products? MS has a list on its knowledge base for these...I think %20% is the space, but not sure
Click to expand...
Click to collapse
yes, in html and such it is, maybe you could use \%20%\ as space , but I am just a webprogrammer, and not a very good one
Looks fantastic, can't wait to see this released, should be a good little utility!
Could you make the slide on the bottom because I have short thumb
cybertron said:
yes, in html and such it is, maybe you could use \%20%\ as space , but I am just a webprogrammer, and not a very good one
Click to expand...
Click to collapse
Actually, in HTTP requests it's %20 w/o the percent sign at the end, and it simply means 0x20, which is hexadecimal 20 or decimal 32, which indeed is a space. I highly doubt that it would be useful in accessing the registry, though.
I don't see why a space doesn't work as just a space when accessing the registry. Perhaps escape it with a backslash (or two)?
Where to download?
Where to download?
MortButtons is around since about 4 years, but since there's quite some hype recently about both "touch-able" menu systems like Spb Menu or TouchCube and "click-through" button enhancers like HButton, maybe MortButtons might be interesting for some people, too.
It offers all required ways to launch a menu entry (press app button multiple times and wait for timeout, direction pad, tapping the entry), allows freely configurable items for up to 5 main menus (any number of entries and sub menus; don't believe old sites telling about an entry limit, it doesn't exist since years...), includes a task list (like Alt-Tab), offers many "special" entries (system settings, new documents, calls, new messages, screen rotation, ...), is skinnable, free (though donations would be nice), ...
V2.5 compared to V2.41 mostly adds some "facelifts" (new icons and skins, alpha channel support, images as icons for entries, user defined backgrounds, ...) and better performance, but also some new features like finger gestures and access to the system settings.
More informations, download, manual, etc. is available here.
(Screenshot shows TransAqua1 (new default) skin with Spb's Snowy theme as background, icons are "GlassIcons" .png images available in Rotlaus' forum intended for rlToday).
Wow, Thank you so much for such a wonderful software. I just started using Mortbuttons just a few weeks ago and like it very much.
I have made a skin that goes well with the Touch look and would like to share it.
JudgeDredd67 said:
Wow, Thank you so much for such a wonderful software. I just started using Mortbuttons just a few weeks ago and like it very much.
Click to expand...
Click to collapse
Yeah, it's only a pity it's still some kind of insider tip while around for years, while similar concepts realized in the last few months make such a fuzz...
I have made a skin that goes well with the Touch look and would like to share it.
Click to expand...
Click to collapse
Thanks. Btw, it's also possible to create a skin with bigger tiles like the original TouchCube style. You can use any size for the menu entries you like, as long as MortButtons manages to fit at least one entry on the screen...
Nice Mort! I'll try it and give you some feedback
By the way, can I include this on a ROM ?
Thanks for great work, I was using previous version and this is even better. Keep it this way.
Just updated my skin to take advantage of the alpha layer.
Thanks again Mort for all your wonderful stuff.
Excellent application. Thanks a lot for the hardwork.
dferreira said:
By the way, can I include this on a ROM ?
Click to expand...
Click to collapse
Sure, go ahead. Same goes for my other apps, too, btw.
JudgeDredd67 said:
Just updated my skin to take advantage of the alpha layer.
Click to expand...
Click to collapse
Nice one, tough the alpha layer isn't very obvious.
Little hint: Zip only the folder contents itself (i.e. no subfolder in the archive), then change the file extension from .zip to .mbz. Having to copy only a single file makes skin installation a bit more easy for beginners. And it saves some space, though usually more by better cluster usage than by compression (most images already are compressed...).
Thanks again Mort for all your wonderful stuff.
Click to expand...
Click to collapse
You're welcome...
Very nice update, the launch time seems to be much less. There does seem to be a bit of a memory leak? But not sure how to pinpoint if its cuz of MortButtons or something else. Nevertheless, it is a very nice, free, and actually more powerful alternative to other touch/launcher kinda applications.
Also a fan of MortScript (for small, useful tasks) and MortPlayer (THE audio player for winmobile ). Do you have a smartphone version of MortPlayer planned?
VGA & icons pixelization
Hi,
I just tried on my VGA PDA (Dell Axim X51v), and application icons which are VGA-enabled, appear pixelized in MortButton. Any idea on what I did wrong?
Great work Mort. I've been using mort buttons since about the day after I got my vario II 16 months ago. It was the ideal solution to the missing capabilities I had always presumed a touch screen device would come with by default!
I much prefer it to all of these today screen launchers as these seem to slow down the phone and generally use smaller, less usable buttons for my sausage fingers!
One thing I've noticed though, the new built in shortcuts to the control panel options don't seem quite right. e.g. I've added a shortcut to the Memory control panel on a menu. Having launched the Memory panel, the only way to close it is by pressing the 'ok' button on the top right of the screen - neither OK button works....
Alternatively, if I add a .lnk shortcut which starts the memory panel (with the shortcut "Settings>System>Memory>Main = 20#ctlpnl cplmain.cpl,4") the panel launches fine and can be closed with the OK buttons no problem.
The same goes for Input, Phone, Today panel shortcuts...
I was wondering if MortButtons is not closing properly after launching these settings links?
Apart from this quibble, a great update. Keep up the good work - I'd have binned this phone long ago if it wasn't for this App!!
MortButton and FTouchFlo
Thanks Mort for a great app. I was wondering what is the command line to launch each of the buttons. I was trying to use this in conjunction with efrost's FTouchFlo app where I assigned a gesture like leftright app to launch button 1 by putting the path "\Program Files\MortButtons\Button1.mbi" but that did not launch button1 when gesturing. Would you happen to have a solution?
blistirs said:
Thanks Mort for a great app. I was wondering what is the command line to launch each of the buttons. I was trying to use this in conjunction with efrost's FTouchFlo app where I assigned a gesture like leftright app to launch button 1 by putting the path "\Program Files\MortButtons\Button1.mbi" but that did not launch button1 when gesturing. Would you happen to have a solution?
Click to expand...
Click to collapse
I experienced the same. But if you link to the 'Button.exe'. It will bring you to the main menu where you can see the 5 buttons. While this is one more step extra, better than nothing.
^ What you guys are trying to do works fine here.
For e.g. go to \Windows\Start Menu\Programs\MortButtons and see how the shortcut for button 1 is created (if you have a good file explorer such as gsfinder you can see the shortcut as well as the command line parameter).
Basically the shortcut should point to \Program Files\MortButtons\MBRunner.exe and the command line parameter should be \Program Files\MortButtons\<path_to_button>.mbi. Both of these paths should be put in Ftouchflo config without quotation marks around. This makes for a much faster, customizable and full featured launcher than the cubes.
Thanks. That did the trick!
ammarr said:
^ What you guys are trying to do works fine here.
For e.g. go to \Windows\Start Menu\Programs\MortButtons and see how the shortcut for button 1 is created (if you have a good file explorer such as gsfinder you can see the shortcut as well as the command line parameter).
Basically the shortcut should point to \Program Files\MortButtons\MBRunner.exe and the command line parameter should be \Program Files\MortButtons\<path_to_button>.mbi. Both of these paths should be put in Ftouchflo config without quotation marks around. This makes for a much faster, customizable and full featured launcher than the cubes.
Click to expand...
Click to collapse
Once again for dummies. You mean:
LeftRightApp:\Program Files\MortButtons\MBRunner.exe
LeftRightAppCmdLine:\Program Files\MortButtons\Program Files\MortButtons\Button3.mbi?
I tried:
LeftRightApp:\Program Files\MortButtons\MBRunner.exe
LeftRightAppCmdLine:\Program Files\MortButtons\Button3.mbi
but it didn't work, it shows an empty "MortButton" window.
Maybe you need to use quotes around the parameter (i.e. mbi file). Otherwise it might be MortButtons tries to load "\Program" as menu informations, which doesn't quite work...
The exact method that you've listed works for me. Are you using the latest version of ftouchflo? I remember one of the versions had a bug in the leftright swipe..
Where can I find soft-reset function and it's Icon so that I can put it on the Mortbutton. Annoying each time wanna do soft reset have to tuck the stylus in the hole.
Major update posted today:
All paint routines re-done, nice felt graphic background (stolen from win7)
Help re-done, includes Menu, Help, Context to give help based on game play
Added Win7 card backs and faces, removed a couple of old winmo card backs
Using Win7 and Xp's card faces, instead of pegcards
Card size and text size better fits screen space (drag to size on PC).
Versions for WM2003, WM5, and WM6.5.3 included.
PC Versions for Win32 and Win64 included (msi in zip file)
New Cards SDK (soon to be) added to post number 6, includes new functions (see cards.h)
/*************/
A very long time ago I wrote a One person Crib game for Windows PC. I never really released it into the wild, but did pass it on to many people I knew (attached here as a zipped CribSetup.MSI file).
I decided to convert that code over to Windows mobile.
The first stumbling block was that windows mobile is missing the famous "cards(32).dll" file that I depended on to display the cards on the PC version. However the standard shell comes with a resource dll "pegcards.dll" that contains the card images, and may contain a higher resolution one as well (pegcards.192.dll, for example). So all I needed to do was emulate the cards.dll functions and use the pegcards images to get it to fly.
The attached WMCrib.exe (zipped) is the beta build of that game.
The attached CAB is an installer, that includes shortcuts and help file/link.
Post number 6, has the Cards32.dll for developers
- The PC version uses a right click to do many things, Tap the stock pile on the Mobile version to do the same functions ("Go", "Done"...).
- The existing application searches for pegcards.196.dll, Pegcards.128.dll, pegcards.96.dll and then pegcards.dll in that order, so chooses the highest resolution images available. I noticed that there are different card backs in each set I have here.
This is a beta build, I have tested it on my phone (and run it on my PC for many years), but you may have issues with your device, use at your own risk
Have Fun!
Maybe some screenshots ?
A picture is worth a thousand words
Screens (wvga: OmniaII)
Edited the first post, added a cab file with installer, links, and help files.
looks nice
Cards32.dll for developers
If you wish to include the standard cards32 functions plus a new extra functions, in your program, include cards.h in your project, and link with the correct cardsxx.lib.
On WinMo move the dll into the devices windows folder.
On PC, save the dll into the application's folder, or to the windows folder.
WATCH OUT that on XP or older there is an existing "Cards32.dll" in the windows folder. Mine should be fine to replace it, but I have not tested this on XP with original card based applications (Hearts, Solitare...). It should allow the "new" cards to be used on thse older XP card games (even when used on non-XP machines). You could even copy cards32.dll into the windows folder on 64 bit machines so that the XP card games will play on Win7 (or Vista)
The header file is well documented.
Cards32.dll for 32 bit desktop use
Cards64.dll for 64 bit desktop use
CardsWinMo2003 for older ARM machines, any ARM code machine will be fine.
CardsWinMo5, and Cards WinMo653 (should be identical , for any ARM THUMB machine
Can you add an option for us to add our own scores with a penalty of overcounting or under counting to go to the opponent?
Excellent game...thanks...
thex said:
Can you add an option for us to add our own scores with a penalty of overcounting or under counting to go to the opponent?
Click to expand...
Click to collapse
It could be done, and it would add another level of difficulty to the game. I'll look into it.
thex said:
Can you add an option for us to add our own scores with a penalty of overcounting or under counting to go to the opponent?
Click to expand...
Click to collapse
A question to the order of adding the penalty points. If you enter a tally too small (or large), do you score your tally (or the correct tally), and THEN the computer gets your error points? Could affect the winner near the end of the game. Is this order dependant on who is counting first?
only score your actual points and the opponent gets the error points.
The opponent should score the error points first - just in case of a win.
I can't get the users hand and crib, the starter, boxes for your tallys, and the SIP on the screen at the same time without the cards getting so small they can't be seen, especially in landscape mode. So I give up on the ability to enter your tally's
what language are you writing this in? I use vb.net and I might be able to help. I wrote tripYzee.
Maybe just a popup box when it comes time to tally your score. Once entered, the popup would go away.
thex said:
what language are you writing this in? I use vb.net and I might be able to help. I wrote tripYzee.
Maybe just a popup box when it comes time to tally your score. Once entered, the popup would go away.
Click to expand...
Click to collapse
Cool, I love that game Thank You!!! I played it for a long time before I noticed that the second hand is double score, and the third hand is triple score. I always used to fill in the first hand first, then zero'ed the third hand (and second) hand on the misses
I write in pure old fashioned (native) "C" code.
I can do the popup with the edit controls easy enough, or for that matter place the edit controls directly on the main screen, the problem is with the sip up, and (QVGA) landscape, there is not enough room to see the cards and the edit boxes at the same time. I don't have the numbers in front of me just now, but in testing earlier, I ended up with a very small card size, and I could not even tell the suit let alone the rank.
I could make you tally your hand (and crib), remember them, tap the stock pile, enter your tally(s), tap OK, and then penalize you for making mistakes. But I thought that making you remember your tally(s) was a bit unfair (since you would no longer be able to see the cards).
In a moment I'll post the lastest version on the first post. It sizes the text, gaps and cards a bit better than the original version. Try it in landscape with the sip up, you'll see what I'm talking about.
The existing code resizes the cards, gaps, and text to best fit the client area of the main window (leaving the menu, and 'status' visible), for any possible screen size. This makes it "just work nice" for any OS (2003, 5.x, 6.x, 6.5.x) and resolution (QVGA, VGA, WVGA), in either portrait or landscape. I'd rather not dismiss this feature.
For you to help (to my way of thinking anyway): Design a screen, QVGA (96 dpi) landscape, SIP up, that shows two four card hands, plus the starter, two edit boxes big enough for two digit numbers, and some sort of "OK" button (even in the menu area). Then make sure the same layout will size itself to QVGA portrait, then do the test with the 128 and 192 dpi images and xVGA screen sizes. I'd accept two layouts (portrait and landscape), but not more than two.
Beta 0.3 added to first post.
CRAP!, I just tried it again on my actual device instead of the simulators and have VERY small text, sorry folks, my mistake.
Quick fix v0.3 posted...
Instead of using the SIP - why not just create 0-9 number buttons along the bottom of the screen? I just want to be able to enter the total value for my hand, then the value for the crib.
After the round, a message pops up asking the user to enter the value for the hand, then the value for the crib (if it is their crib.)
Let the game auto score during play, I just want to count my hand/crib scores, not the round score.
Downloading new version now!
thex said:
Instead of using the SIP - why not just create 0-9 number buttons along the bottom of the screen? I just want to be able to enter the total value for my hand, then the value for the crib.
After the round, a message pops up asking the user to enter the value for the hand, then the value for the crib (if it is their crib.)
Let the game auto score during play, I just want to count my hand/crib scores, not the round score.
Downloading new version now!
Click to expand...
Click to collapse
You like this? I only tried it on the QVGA 2003 sim so far....
"=" is enter, You also have to "enter" to show you saw any penalty points.
I don't like the color of the numbers, but I just stole the graphics from the Samsung calculator app.
Awesome! However it doesn't tell me if I made a mistake.
I added screenshots of the game for my WVGA;
Tally.jpeg - Actually had to use my stylus for this! What about scalable text?
HandOver.jpeg - I purposely scored higher in the hand, 20, it showed the correct score when hitting "=" but then only scored 10 for my hand?
CribUnder.jpeg - when I underscored for the crib, it never showed me the correct score
I seem to be nitpicking it now and I apologize. I have waited since 2001 for a cribbage game for the PPC that allowed me to score and penalized when I was wrong and you have delivered! Guess I am just trying to tweak it for a better user experience.
thex said:
Awesome! However it doesn't tell me if I made a mistake.
I added screenshots of the game for my WVGA;
Tally.jpeg - Actually had to use my stylus for this! What about scalable text?
HandOver.jpeg - I purposely scored higher in the hand, 20, it showed the correct score when hitting "=" but then only scored 10 for my hand?
CribUnder.jpeg - when I underscored for the crib, it never showed me the correct score
I seem to be nitpicking it now and I apologize. I have waited since 2001 for a cribbage game for the PPC that allowed me to score and penalized when I was wrong and you have delivered! Guess I am just trying to tweak it for a better user experience.
Click to expand...
Click to collapse
The top line of text should show your tally (and updates as you tap on the keypad) for hand and crib, and the actual score for hand and crib.
After all your hands are counted, if there is a penalty, you need to tap an extra "=" after you have seen the updated info. I'll check it out on my device this morning. Penalty points are added to Computer's "peg" score.
I thought a half card height would be enough for a finger tap, I'll have to test more.
edit:
- I don't have a problem tapping the keypad with my finger, but I made it a bit bigger (using the gap between the starter and the top).
- The top text line seems to be displaying my tally (live as I tap keys) and calculated score fine, I also have the extra tap when I am charged with an error. I also get a beep (or two), then charged with an error.
- I updated the text to: "Hand Tally: xx, Actual: xx, Crib: xx, Actual: xx, Penalty: xx", and removed the crib componants when you don't have a crib to count.
Did you just miss the info on the text line, or is it acting differently for you?
You are correct, it is there. I was always looking in the bottom one where my score is.
The card sizes were perfect! it was the tally numbers that I had to use the stylus.
I never get any beeps..?? Also, when i tally the crib incorrectly - the score disappears really fast so I don't see the error.
Do you think you will be able to save a game in progress when the application is closed??
StatKbd project - self-adjusting SIP keyboard for WM.
It analyses touch coordinates and adjusts recognition algorithm. This is especially important for finger typing - usually you don't hit exact center of button while typing due to device tilt, etc...
In addition to this, StatKbd introduces key "spot" size adjustment basing on language statistics - again, for better touch recognition.
From user perspective this means that every key virtually expands and shrinks (normally it's not visible, but you can enable special mode to see it) basing on previously entered text. This allows you to enter text better, avoiding typos.
Of course, all these options are adjustable, so you can disable them if you want.
There're 2 skins (black and white) in package. Visual skin editor is also free and available for download.
Currently English and Russian layouts are available, but you can easily customize skin for any language (we'll really appreciate if you upload it here or to official site then).
You can read more (and download installation packages) at official site:
gss.freeiz.com (sorry, can't post direct link now - I'm new to this forum)
Current version (1.2) is free, but donations are very welcome - you can use "Donate" button on official site.
nice try buddy but i think that this not good enough for any WM. although its not finger friendly and its do not even uses numeric keys can't find even enter. LoL..
Well, look closer to long-click (upper) symbols. Keypad is on long-click for most right button in middle row (short click switches language layouts), enter is long-click on space. I did it because I was really sick and tired of false clicks on enter button (that you can't undo).
As for finger-friendly, well, miracles don't happen in this world (especially with keyboards on small screens ). However, I really think that you didn't calibrate it. To adjust keyboard to your fingers, you should manually calibrate it (via options) or just spend some time typing text and correcting typos by backspace (yes, that's annoying, but takes just several minutes) - keyboard will self-adjust.
I have installed it in my X1. Its quite good but its a bit too small to use in portrait mode. Other than that its not bad but takes a bit getting used to.
The idea was to make small keyboard, to keep most of the application screen visible. White skin is smallest one, black one is bigger. You can create you custom skin (with appropriate size) using Stat Skin editor - just take one of original skins, resize jpg files to the size you want (using any picture editor), then remap keys using StatSkinEditor (there's option to do it automatically - Edit / Resize Keys Map). Possibly, you'll have to change font sizes too.
Thank you very much .. It acts better than Finger friendly !!! .. I wish The skin editor really works too cuz I tried it on Win 7 , Win 8 .. Wish for Arabic Skin ...
Thanks again for a good app.
maybe a little bigger skin? its hard to use.
drhesham said:
Thank you very much .. It acts better than Finger friendly !!! .. I wish The skin editor really works too cuz I tried it on Win 7 , Win 8 .. Wish for Arabic Skin ...
Thanks again for a good app.
Click to expand...
Click to collapse
What is the problem with Skin Editor ? It works OK on my PC. You have to install Visual C++ 2008 SP1 redistributable package though, if it is not installed on your PC yet (by some other application). You can download it for free from Microsoft site: ... /download/en/details.aspx?id=5582
Treat ... as microsoft web server address - this stupid system does not allow me to post full link.