Create a program that changes a register value - 8125, K-JAM, P4300, MDA Vario General

I'm pretty new to developing programs for PocketPC's, but I really would like to create my own little program
I already have Visual Studio 5 and Windows Mobile 5.0 SDK.
What I would like to do is select an option in my program. When selected it should change a register value.
For example:
====
Choose one of the following options:
CAPS indicator of the keyboard?
|O| On |O| Off
Save - Cancel
===
This is a small example of what I would like to do. What the program does behind the scenes is very simple actually:
When selected ‘yes’ it should change the register value to:
\HKCU\ControlPanel\Keyb\EnableIndicator -> DWORD ‘1’.
When selected ‘no’ it should change the register value to:
\HKCU\ControlPanel\Keyb\EnableIndicator -> DWORD ‘0’.
When you press ‘Cancel’ I want to undo all changes.
When ‘Save’ is pressed, it should save all selected items and exit the program.
I think when I know how to do one item it’s not to hard to add more after that.
Hope anyone can help me with this one![/b]

mccune: what language are you writing in?
Have you had a look at any books on pocket pc (or windows) programming in relation to the registry?
V

TnX for the fast reply Vijay555.
I've played a little with Visual Basic at school.
I'm writing the program with an English version of Visual Studio 5.0. After I finish it I wan't to create it for the Dutch users also..
Been looking around for some tutorials on how to create a simple program, no luck so far.. ..most tutorials are to advanced!
This is what I have so far
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[edit]
As you can see I want to use checkboxes instead of radio buttons.
[/edit]
If you think you might have a word of advice about different tutorials you're more than welcome. I would really like to finish this little app, and know what I'm doing! :lol:

McCune,
That's why I asked. I've never formally learnt to program, and played with VB in my spare time to knock up programs and things. However, since getting my Magician in August or so, I've got increasingly into tweaking and programming for it. As such, I've had to learn c++, and I consider myself an enthusiastic beginner.
However, the one mistake that I would warn anyone not to make, is to learn how to practically program, without knowing what you're doing.
Learning c++, I started playing with tutorials and taking apart examples, which was how I "learnt" VB. However, going VB to C++ is a big step, and it looks like you might be doing some .net? But I think that was the wrong way to learn.
My advice: grab a book, work through basics to understand the symantics and theory behind the language, get to know just that much (Ie not much, but enough!), and then throw yourself in like a madman. But really, trying to learn c++ through tutorials, without learning very basic foundations behind it, put me back quite a while. .net might be easier to pick up if you know VB, but certain system specific foundations are essential.
Sorry to sound preachy, because I really know far too little to preach to anyone, but this is merely my advice from an enthusiastic hacker, who likes to take shortcuts: learning a new platfrom and language requires that you do learn a little foundation stuff first, so a few longcuts, and you'll reap myriad rewards!
Have a read through the big post here for some very useful books:
http://forum.xda-developers.com/viewtopic.php?t=37884&highlight=vijay555
V

Just found out that Nicodekker posted a similar program on this forum.. ..Hope he can help me out here
No need to post anymore in this thread, because nicodekker's thread is running much better :lol:
TnX for the advice vijay555, I'm reading my *ss of at the moment Keep up the good work!

Can you tell (link) where is that program. I'am interested too!
Thanks

It's on this forum
Link:
Check it out

Related

SMS files on the device? ready to code if someone got info

Hi everybody , any idea of how I can backup the file containing all my sms boxex (in and out)
and after reseting upgrading etc I cant settled (or import) them back .?
I'm ready to try to write a program with VS that can be useful to everybody
if someone can show me the way
Where to start from ?
PS : i can't synchronize anymore but i can put a .cab on my SD card
Please give some clue ...
Thanks
PS : even if i can't put them back it will be enough if i just can save them !
Laurent4xs: if you don't have any idea where to start, it's likely to be a relatively messy project to start.
Exporting is actually very (relatively) easy - just open up the POOM com object and parse through the inbox (or any other) folder. I'm surprised no one has written this yet (AFAIK), it'd be quite straight forward to export as a CSV that we could edit in Excel.
Importing I guess might be slightly more long winded, but basically reverse the process creating mail items imported from the csv fields.
V
also have a look at Jeyo Mobile Companion
http://www.jeyo.com/companion.asp
works perfectly to backup and restore sms
thank's for your reply guys...
yeah, Bartjan, i've heard of Jeyo but it does just one part of the job...
what when this foolish ActiveSync thing decide not to work anymore ...
and that all you have to do is resetting the Rom...
that's why even if I think i'm going to use Jeyo's software soon,
I will nevertheless have a need for such a "custom" tool !
And vijay555 or someone else out there, if it is not a abuse , will it be possible for you to send just a skeleton.
I don't ask you to do the all job; just a skeleton and may be the firt part (exporting) as it is the easiest and won't take too much of your time..
yes simply a structure with the project and it's settings so from there i just need a little of my brain and try to cop with my coding skill..
Laurent,
I want to try to write an app to do this myself, when I've got time. I had to write the POOM interface already for VJEphemeris's SMS reader:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I actually got help from another guy on Modaco I think, but rewrote all the code in the end anyway.
I suggest you read a nice book on POOM, since it's HORRIBLE to look at, but the theory falls into place when you read about it clearly. So a chunk of code won't help you too much until you know why it works. MSDN has a series of 4 articles or so on the subject that are essential reading, and PocketPCDN was very good and the external links to DevBuzz or something were essential also.
If I can get some time, I'll try to knock something together.
This is all just an excuse to say I've not tried any file i/o yet
V
Thanx man,
I will get a look on all these you pointed.
Sincerly,
there is a software called Back up SMS..Which works perfectly try to do a search in this forum

MortScript IDE v0.1

to all MortScript Lovers!
Now it is easy to write your MortScript codes by using
MortScript Integrated Development Environment v0.1
Portable Version Works on
Windows All version (Tested on Windows XP)
Linux (Tested with Wine v0.9.22 on openSuse 10.0)
Screenshuts:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This IDE is based on
SciTE v1.75 A free source code editor for Win32 and X [http://www.scintilla.org/SciTE.html]
Known issues:
1. Block code are not working for Sub, EndSub, IF, EndIF, For EndFor, ...
2. All usage of ForEach function can not be shown.
3. Comments do not have different color.
Download From:
MiHD.net - 1.09MB - Zip file - [http://mihd.net/alg8bs]
Usage:
After unziping, just run SciTEPortable.exe, save sample file as .mscr extention and enjoy writing MortScripts
Special Thanks
Dijaboro on PortableApps.com for Portable version of SciTE 1.75
no one interested :?:
pi3ch said:
no one interested :?:
Click to expand...
Click to collapse
I am!
Downloading now
this looks pretty cool, i'm starting to get into mortscript so this may come in handy, thanks.
thanks good reason to try mortscript
Anyone knows how what's the script to open a application after a certain seconds?
I will be really greatful if someone can answer me!!!!
Thanks for this ide.
there are many options, use these functions:
Sleep
Waitfor
RunAt
Yes! Please continue your work! I love it so far... I wasn't aware of a program like SCI-TE. I wish I'd known about this for a long time
Thanks.
I just wanted to try mortScript.
Downloading now!
Looks great! Thanks!
Please upload this somewhere else coz I cant download ti from there.
Just I think "if I have some editor maybe I will code some ****z" and here you are .
pi3ch said:
no one interested :?:
Click to expand...
Click to collapse
I am - will download now!
I use a lot of if/endif Sub/EndSub and ForEach in my scripts - so wondering how effective this will be.
yeah...if someone wouldnt mind uploading it somewhere other than midh, i refuse to use their service because you have to click 600 things to find what you're looking for that'd be greaaaaat...thanks....and uh, have those tps reports on my desk by monday...yeaaah
Excellent idea! I do most of my Mortscript coding on the PPC tho - what do you think of a PPC version??
Thanks Pi3ch
Axman said:
Excellent idea! I do most of my Mortscript coding on the PPC tho - what do you think of a PPC version??
Click to expand...
Click to collapse
Man I was just thinking the same thing, this way we can actually create 'settings' mortscripts to edit values within other mortscripts in the device. WOW! Thanks for this and your work on that other forum
A great piece of software for we Mortscript lovers.
I hope you go on with it's development and implements all function.
Thanks man.
It should be a good idea try to realize a plugin for Notepad ++?
It's a very used tool for programmer, based on scintilla and i see you have the api so i think it's easy for you
hikz im not a programer so dun know what the use of mortscript..mind to tell me?
theme freak said:
hikz im not a programer so dun know what the use of mortscript..mind to tell me?
Click to expand...
Click to collapse
MortScript is something like a "programming language light", optimized to allow you to write scripts for everyday system maintenance (copy/delete/move files, write registry entries, etc.) and "macros" (run programs, send keystrokes/taps, ...). It does allow several other functions as well (e.g. some basic dialogs), and sometimes I'm really surprised what "programming amateurs" can do with it. Esp. if I think about MortScript starting as a simple way to clean up the startup folder ("run app1, wait 10 seconds, run app2, wait until window is visible, run app3, ..." instead of "run everything at once and stress memory and storage access").

Dear Friends... How to make ppc application?

Hello everybody...
can you help me please to make a ppc application?
I have Basic4ppc but it's not full version, so i can't compile, so what i've to do?
hskeik said:
Hello everybody...
can you help me please to make a ppc application?
I have Basic4ppc but it's not full version, so i can't compile, so what i've to do?
Click to expand...
Click to collapse
For the IDE I suggeset VisualStudio and for the programming language I suggest Native C++ or C++.NET
Marshall
Thank you Marshall !!
If you're new to programming I suggest you start with Visual Basic or C#, both of which are in Visual Studio. I'd start with VB first as it's easiest.
Along with Visual Studio you need to download the developers kit (SDK) from Microsoft.
Cheers
Phil
Hi,
this has been covered many times before, do a "Title search" in this forum for programming and have a read up.
Ta
Dave
If you are not willing to buy the full version of Basic4PPC I am guessing Visual Studio will be out of the question.
It is a very expensive product, and the free express edition does not allow creating Windows Mobile projects.
I suggest you learn C / C++ and then download Embedded Visual C++ 4 from Microsoft.
Its free and fully functional and will even allow you to make stuff like today plugins and keyboard which VB. NET and C# can not do.
I belive that Basic4ppc is superior when it comes to .NET. Mostly cause it allows programming on your phone. Anyway, I had the same question you have a few months ago until I got the full version of B4PPC. Its been great, I had no doubt on buying it
am also looking for a decent language I can write and compile on my ppc. I've tried zeus and pocketc which are both ok and easy to use. Not looked at basicppc yet but will do later, but which do you guys recommend.
Thanks
really friends i'm happy for your help, you proved for me that "friend indeed is friend in need"
i really can use Visual basic. what about c++, Idon't know, i just didn't try it, i have no idea.
i could make the thing that i wanted by basic4ppc but it's not full version,
so i'll try Embedded Visual C++ 4 as Levenum said
levenum said:
you to make stuff like today plugins and keyboard which VB. NET and C# can not do.
Click to expand...
Click to collapse
You can thanks to Chris F's stirling work!
http://www.codeplex.com/ManagedTodayScreen
Here's my C# plug in.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

[Q] New dev'r need's a push :)

Hi Everyone,
I am a wicked 3D modeler, wish I could say the same about being an Android developer.
I have a question...is it hard to show me a working example (a 2D object roaming a map that has a background image as the map) that I can load in Eclipse that will run in the AVD 2.2 so I can read the source and get my head to wrap around it?
The only code I have gotten a good grip on is PHP/MySQL/B3D , so new code is something I can easily (hopefully) adapt to.
So, a step 1 from loading it into Eclipse, all the way to seeing it in the emulator would be greatly appreciated.
If this is a tall order I appologize. Rememeber, I am new to Android, but so far loving the heck out of it!!!
Best Wishes
Check out developer.android.com and start with the hello world tutorial. After that I'd check out the lunar lander and/or jet boy demos
If you want to do only 2d games, head to http://www.andengine.org/
It's a free, really easy to use and fast (hardware opengl) 2D game engine.
Scan the barcode on the project's website to grab a example app showing off the engine's capabilities.
The engine doesn't have much of a documentation, but it's open-source and you can download the source code for demo application where each feature is demonstrated in a separate file with comments, so you can figure out how most things work just by reading through this code.
There are some tutorials around the project's forum including setting up the ecplipse for the first time. And in case you can't figure out something from the source code and tutorials, there are a lot of really helpful people over there so you can ask away.
The cool thing it that the engine takes care of most android-specific tasks for you, and you can just concentrate on programming your game/demo After you get a feel for it, you can try moving on to generic android examples and tutorials to implement more features and learn more about inner workings of an android application.
Most people would probably suggest doing it the other way around, but in my opinion it's much easier to get into coding if you can actually see some cool results, like animations, particle effects, physics-enabled games/demos instead of just a boring notepad app
I have done the "Hello World" from the web, it worked great.
The reason I asked for what I did is because I noticed that alot of examples have things missing to keep people from taking thier hard work. So I need something intact/working to learn from.
I looked at the andEngine and first thing I ask is what is the scan thing?
I appreciate the responses guys, thank you.
LuvinAndroid said:
I looked at the andEngine and first thing I ask is what is the scan thing?
Click to expand...
Click to collapse
Oh, sorry, i forgot you're new to android and might not have used the barcode scanner
There's a 2d barcode on the andengine website:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Just download an app called "barcode scanner" from the market, launch it and point your phone at this barcode. This is usually easier than typing an url manually on the phone
Or just search for "andengine examples" in the market and install it to see what andengine has to offer.
I do not own an Android phone, I am basically hoping the SDK and Eclipse will be all I need for a working title.
I did the Snake and Jetboy examples. The Jetboy booted but did not play well, and the snake one loads into the AVD but the snake does nothing.
Both examples tell me I have an error in my R.java file (this line- setContentView(R.layout.main); ) it fails and keeps me from running it anymore.
And below in the text box it said this in red "DeviceMonitor]Sending jdwp tracking request failed!"
Any ideas?
Well, it looks like my Norton Firewall was blocking it or something, when I turned it off then the error went away.
I have been running the snake demo all day and wow, this is going to be fun working on the Android dev side.
I noticed something I do not understand. I was assuming (I know my fault) that the collision on the border sprites were based on "this box hit that one" but it's not, it's based on the borders of the screen via math as I'm sure you all know already.
How do I add like a small island (the little sprite boxes) to it for fun and tell the game to read coll based on one image hitting another one?
thanx in advance for anyone willing to ponder this for me many thanks.

[APP][DEV]StartJava - new format for teaching android programming

StartJava aimed primarily at those who are just starting to program in an android. I would say to those who don't even know where to start.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
With this program you will not need anything to understand in order to write your first program. StartJava tells you what to do. All you need - just install the program.
The program is arranged quite simple. You choose the lesson and then StartJava starts step-by-step demostration of the creation new program. In this case, you can run what is already written at any time.
The program interface is simple, get used to it is not difficult. The lesson can be run through the main menu In main menu also exist commands for testing your application (command "Test ...") and commands for navigate through the lesson ("Next" and "Prev"). In addition, the move to the previous step available by pressing a hardware button "Back". To move to the next step you can press a hardware button "Search".
In addition, the program supports the launch of third-party lessons. Information about the new lessons will be placed on the As Soft web site.
A few words to the developers. If you have a desire to write one or more lessons for StartJava - it is not difficult. Especially for easy lessons creation was written by a special utility for the operating system Windows.
You can download it on this page. The file is called DDLessonsCreator.zip.
Almost all actions in the program are executed via the context menu. For ease program interface understanding - you can download a sample HelloWorld.zip.
StartJava not only gives developers to share their experiences, it also allows them to capitalize on this. The program shows two banner AdMob. The first banner is tied to the account of the program, and the second tied to the lesson author account . I think everyone are interested in this, as this extra incentive for authors to make good interesting lessons. And this is ultimately users interested in this.
Google Play Link.
Official page
Thanks, gonna try it, I would learn to dev .
If you have some questions or offers, you can write here.
Kinda tough to understand. Too much assumed knowledge and broken English. No disrespect... just giving some feedback.
Sent from my LG-P999 using XDA
TarHeelTrigger said:
Too much assumed knowledge and broken English.
Click to expand...
Click to collapse
Sorry for bad English. It's will be very good if you or anybody else write here the most important English mistakes to correct it in new versions.
Thanks.
If you want, send me the Strings.xml or the text files and I'll correct!
This is usefull, just the thibg I was looking for!
Added to bookmarks
Greets!
Great app will definitely be using this to learn how to make apps for android
Thread subscribed too
Sent from my Wildfire S using xda premium
New version with corrected texts on English available.
Thank's to mDroidd.
DarkGoodWIN said:
New version with corrected texts on English available.
Thank's to mDroidd.
Click to expand...
Click to collapse
Will correct all mistakes in a few days, exams ongoing and laptop token
Greets!

Categories

Resources