Program acts like a user? Can it be done? - Windows Mobile Software Development

Hi. I know Java and C# enough to write small programs and I'm very currius about that can I do something like this:
When I start a program it visually touches windows icon, then opens word mobile and types some word on it?
I mean, is it possible to make a program which acts like a user as it can be easily done in assembly language?
If the answer is yes, can please tell me where can I learn those comments and learn more about this?
Thanks

Any suggestions??Please??

AFAIK, it will be hard with JAVA...
But...
MortScript, a superb freeware, can do what you described, and more !
Check it at :
http://www.pocketpcfreeware.com/en/index.php?soft=1448
or directly at DEV's website : http://www.sto-helit.de/index.php?module=page&entry=ms_overview

YoLoLo said:
AFAIK, it will be hard with JAVA...
But...
MortScript, a superb freeware, can do what you described, and more !
Check it at :
http://www.pocketpcfreeware.com/en/index.php?soft=1448
or directly at DEV's website : http://www.sto-helit.de/index.php?module=page&entry=ms_overview
Click to expand...
Click to collapse
Thank you soooooo much This is what I'm looking for. Really, thank you

You're welcome !

Another way of doing it in code (C++) is to use SendMessage() or PostMessage() to send WM_KEYDOWN and WM_LBUTTONDOWN messages to the window in question.
In VB or C# use a Message class object to do it.

Auto Hotkey for WM should work too!
Never tried it out myself, haven't had a need for it yet.
But I use it for my PC all the time!

Related

Transparent HTC Home screen

I Have searched but I am unable to find how to make my HTC Home screen Transparent. Any help pls
http://forum.xda-developers.com/showpost.php?p=1402561&postcount=862
Nuff said!
Thanxs I must of missed that one
Hello,
look this: Home_Customizer_v07.zip
This program can do still much more than a transparent home screen and everything by push of a button.
MfG
S64
starbase64 said:
Hello,
look this: Home_Customizer_v07.zip
This program can do still much more than a transparent home screen and everything by push of a button.
MfG
S64
Click to expand...
Click to collapse
^ That program is the $h**!
Sorry to be dumb, but do i extract the zip, copy to my device and run the exe from there?
thanks alot
It's a mortscript named homecust I beleive - but yes you copy the extracted folder to your memory card and run from there.
Could you explain this "mortscript" i have never heard or seen one of these before!!
teknics said:
It's a mortscript named homecust
Click to expand...
Click to collapse
Thanks in advance
It functions like a javascript - search the wiki for mortscript for a full explanation.
teknics said:
..search the wiki for mortscript for a full explanation.
Click to expand...
Click to collapse
Hi teknics can i make you a question..nothing personal it's clear..but it's not more easy and faster (if you know the explanation) write it down for bennec?please be kind with us..(noob)
cabi.costa said:
Hi teknics can i make you a question..nothing personal it's clear..but it's not more easy and faster (if you know the explanation) write it down for bennec?please be kind with us..(noob)
Click to expand...
Click to collapse
cabi.costa,
Si, non a problema.
Motscript is a programming language, expanation from the developers page:
MortScript interprets a (quite) simple batch language. If you know .bat files in DOS or shell scripts: it's something like that. Its focus is to remote control or launch other applications, not to write real applications. I.e., you can't do complex dialogs or graphics with it.
It's more an hacker tool without a nifty interface, you have to write your scripts with any text editor.
For beginners, this might be a bit too complicated. However, it's still far more easy to use than e.g. C++.
Click to expand...
Click to collapse
http://www.sto-helit.de/index.php?module=page&entry=ms_overview&action=view&menu=29
cabi.costa said:
Hi teknics can i make you a question..nothing personal it's clear..but it's not more easy and faster (if you know the explanation) write it down for bennec?please be kind with us..(noob)
Click to expand...
Click to collapse
It is kind of like a batch file, but allot more powerful, used for controling apps etc, it is editable throught a simple text editor like notepad (not that you should with out permission if ur going to release something based on this)
dont worry about the lack of explanation, i have fast reading/learning abilities lol , i think what i have written about will do for you, unless you would like to know more.
You see what you will find is that alot of people will tell you they know the answers and tell you where to look, then they usually say that they have to leave, i think this is so you read it yourself. personally i jus giv the answer straight away
EDIT: @ teknics sorry i didnt realise you had posted an explanation!!! (also i wanted to explain y sometimes people dont give answers straight away!! )
bennec83 said:
It is kind of like a batch file, but allot more powerful, used for controling apps etc, it is editable throught a simple text editor like notepad (not that you should with out permission if ur going to release something based on this)
dont worry about the lack of explanation, i have fast reading/learning abilities lol , i think what i have written about will do for you, unless you would like to know more.
You see what you will find is that alot of people will tell you they know the answers and tell you where to look, then they usually say that they have to leave, i think this is so you read it yourself. personally i jus giv the answer straight away
EDIT: @ teknics sorry i didnt realise you had posted an explanation!!! (also i wanted to explain y sometimes people dont give answers straight away!! )
Click to expand...
Click to collapse
Thank you so much Bennec, and teknics thank you so much too!!
Excellent programme-thank you
starbase64 said:
Hello,
look this: Home_Customizer_v07.zip
This program can do still much more than a transparent home screen and everything by push of a button.
MfG
S64
Click to expand...
Click to collapse
did you design this, because i have some stuff id like to send you that you are missing, new icons etc etc
if you didnt create it could you tell me who did so i can email them
Would it work with Shap's 3.54 rom?
Thanks
massimo729 said:
Would it work with Shap's 3.54 rom?
Thanks
Click to expand...
Click to collapse
Si funziona..
Yes it works..
cabi.costa said:
Si funziona..
Yes it works..
Click to expand...
Click to collapse
Grazie
Thankyou

[REQUEST] How can i do it with C#?

Hi, i would like to now if there is an object in Visual studio 2008 with C# for have a list like htc messages, or how can make it.
Thanks!
I use WM Standard, so I am not so sure about Pro, but I know there is a List control. Instead of trying to add one of those and add a whole bunch of images, why don't you read up on it and make a new list, like messageList which will extend the List control. That way you can make each list object have its own box with gfx and a counter of how many msgs are in that area.
Sorry, that is the best I can think of off hand...try Google'ing it and maybe you will get results!!! (I think that Resco has some pre-made controls you can download and use...[other have it too])...
Cyclonezephyrxz7 said:
I use WM Standard, so I am not so sure about Pro, but I know there is a List control. Instead of trying to add one of those and add a whole bunch of images, why don't you read up on it and make a new list, like messageList which will extend the List control. That way you can make each list object have its own box with gfx and a counter of how many msgs are in that area.
Sorry, that is the best I can think of off hand...try Google'ing it and maybe you will get results!!! (I think that Resco has some pre-made controls you can download and use...[other have it too])...
Click to expand...
Click to collapse
Thanks for the answer, but resco controls is not free?
There are some free ones in this forum (SliderList Control, Sense SDK, Manila Interface SDK), hope they are what you're looking for .
Livven said:
There are some free ones in this forum (SliderList Control, Sense SDK, Manila Interface SDK), hope they are what you're looking for .
Click to expand...
Click to collapse
Hi! Thank you very much, Sense SDK could be interesting!
My problem could be the message count.. but i'll try it!

Quick bootloader help needed

hello xda ppl, i am newbie for BlueAngel, and i dont have cable for it.
i got blueangel ruu with wm6.5 rom img and i transfered enterbootloader.exe and *.nbf to my mmc, moved enterbootloader.exe to phone memory and executed it.
not i have white splash screen with:
Serial (on top of screen)
and v2.10 (on bottom of screen)
there is no light on screen
i saw twice that both leds had flashed for about few milliseconds.
question is, how to exit bootloader and update *.nbf from mmc???
best regards
wook
_wook_ said:
hello xda ppl, i am newbie for BlueAngel, and i dont have cable for it.
i got blueangel ruu with wm6.5 rom img and i transfered enterbootloader.exe and *.nbf to my mmc, moved enterbootloader.exe to phone memory and executed it.
not i have white splash screen with:
Serial (on top of screen)
and v2.10 (on bottom of screen)
there is no light on screen
i saw twice that both leds had flashed for about few milliseconds.
question is, how to exit bootloader and update *.nbf from mmc???
best regards
wook
Click to expand...
Click to collapse
Congratulations, you just put your device in bootloader with no means to take it out of it... (sorry for the sarcasm...)
In any case, you will have to get a cable since the device has to receive a command to exit bootloader, which you will not be able to do through the device. There is no way to flash a rom through SD on the BA (I have a small project, but I am not certain that it will unlock it for you... in fact, I seriously doubt it).
I will try to upload it later and give you a link for it.
thanx anyway, i just got cable
charger and schemes do amiazing things
hehehe
btw, i am hermes user, and i thought it is just like in hermes, (reset exit bootloader) hehehehe
btw,m thank you for your support and reply.
man, you can not imagine what i have do to enter bootloader
about 30 minutes of rebooting device
i think i should keep in bootloader mode, it was too hard to get it in
hehehehe
regards
update!!!
phone fixed and updated to wm 6.5
best regards
wook
egzthunder1, thanx for your support, i look forward for link
_wook_ said:
update!!!
phone fixed and updated to wm 6.5
best regards
wook
egzthunder1, thanx for your support, i look forward for link
Click to expand...
Click to collapse
You got it working though...
yes, i managed to fix it, but it would be great to see that project you have started
one quick question, i did not find it anywhere, but is there resouce explorer or reshack sort of app written for wm5/6?
btw, is there any place where i can get winCE apis documentation, msdn annoys me, and if anyone of you use masm32, does someone know where can i get headers and library for masm32 (or should i start new topic and set proper name for this question?)
best regards
wook
_wook_ said:
yes, i managed to fix it, but it would be great to see that project you have started
one quick question, i did not find it anywhere, but is there resouce explorer or reshack sort of app written for wm5/6?
btw, is there any place where i can get winCE apis documentation, msdn annoys me, and if anyone of you use masm32, does someone know where can i get headers and library for masm32 (or should i start new topic and set proper name for this question?)
best regards
wook
Click to expand...
Click to collapse
I believe that there is a reshack for WM (in fact, I saw it not too long ago). As far as the apis, unfortunately, I am not a programmer, so I wouldn't even know where to start looking for that (other than google searches).
well, listing win32 and CE functions at same place....
i use winNT api help, because it does not contain .Net or winCE apis....lol
what is with that lonk???
regards
_wook_ said:
what is with that lonk???
regards
Click to expand...
Click to collapse
What's a lonk?
my bad, i was up to write link, but i misstyped...
happens to me all the time...:S
btw, is there any wm6 app that emulates desktop?
i saw some, but for now i like only HTC Home...
manila is good, but background irritates me very much.
regards
wook
_wook_ said:
my bad, i was up to write link, but i misstyped...
happens to me all the time...:S
btw, is there any wm6 app that emulates desktop?
i saw some, but for now i like only HTC Home...
manila is good, but background irritates me very much.
regards
wook
Click to expand...
Click to collapse
Which link are you talking about (I have like 4 in my signature)?
In any case, if you are looking for a UI that makes the device look like a Desktop, you need Wisbar Advance Desktop and Wisbar Advance. I have never been able to use them correctly, but I have seen people making their Home screens look like OSX, WinXP, and even Vista.
egzthunder1 said:
...(I have a small project, but I am not certain that it will unlock it for you... in fact, I seriously doubt it).I will try to upload it later and give you a link for it.
...
Click to expand...
Click to collapse
i was thinking about that link.
i tryed wisbar, but it is not something i may like.
there is something like wisbar on s60, and i gave up on it 2 years ago...
just dont know why do i have to be one who find all buggs in software\hardware :S
btw, ORD, i am partly in, but in my case, it dont have to be stable, but UI must be flawless
anyway, now i have issue with splash on hermes:S
going to try to fix that, see you later and thanx for nice conversation
regards
_wook_ said:
i was thinking about that link.
i tryed wisbar, but it is not something i may like.
there is something like wisbar on s60, and i gave up on it 2 years ago...
just dont know why do i have to be one who find all buggs in software\hardware :S
btw, ORD, i am partly in, but in my case, it dont have to be stable, but UI must be flawless
anyway, now i have issue with splash on hermes:S
going to try to fix that, see you later and thanx for nice conversation
regards
Click to expand...
Click to collapse
Drop by anytime
greetings my friend, just drop by to say hi and to ask about enabling clear type letters in landscape mode, how to enable that
(yes, you know that i will go and search for it after i posted question ... as always)
best regards
wook
_wook_ said:
greetings my friend, just drop by to say hi and to ask about enabling clear type letters in landscape mode, how to enable that
(yes, you know that i will go and search for it after i posted question ... as always)
best regards
wook
Click to expand...
Click to collapse
Hey _wook_
You could try going into Start>Settings>Personal>Input Options and check the options in there. I cannot remember off the top of my head, but I do believe that this option is somewhere in here.
yha, i know for that, but it is not for a landscape, only portrait mode.
but i will find something
thanx for reply
_wook_ said:
yha, i know for that, but it is not for a landscape, only portrait mode.
but i will find something
thanx for reply
Click to expand...
Click to collapse
I'll snoop around and see what I can come up with.
fixed:
registry value need to be changed, hklm/system/gdi/cleartypesettings/offonrotation (dword) set to 1 (by default is 0).
greetings
_wook_ said:
fixed:
registry value need to be changed, hklm/system/gdi/cleartypesettings/offonrotation (dword) set to 1 (by default is 0).
greetings
Click to expand...
Click to collapse
Nice find
thanx friend, btw, seems like HTweakC can do this too, but it did not worked for me.
seems like i will have to write app for this lol
(now i need to search for more registry 'hacks' and implement them in this )

How do I create an InputPanel Controll during Runtime?

Hello Friends,
My problem is I developed an App which runs on Windows Mobile as well as on the Desktop with the same exe and now change of Code.
With an if clause i check if the App is running on Desktop. In this case I change the Controlls Locations a bit and the AppRootPath.
In Addition I now want to resize and relocate the Textboxes if SoftInputPanel is enabled.
This can be easy achived by adding an InputPanel Control from Toolbox and using its OnEnableChange Event.
BUT if I include an InputPanel Control in my Project, its not deployable on the Desktop anymore.
So I triet to create the InputPanel Control only if the if clause checkt that the envirement is not a pc.
But I didnt managed that.
Anybody a clue how to?
Thx, Bignose
The first thing that springs to mind is to use 2 assemblies that you can call from the application - 1 for desktop apps and 1 for mobile apps. That way, the main application would have no dependancies on .NetCF controls.
For example...
Code:
MyAssembly.ObjectWithGenericInterface.UpdateForm(this)
You would have an assembly with a class that implements a generic interface, and that interface has an "UpdateForm" method. You create 2 different assemblies that are mostly identical - one for desktop and 1 for mobile. You then simply deploy a different "MyAssembly", depending on the target platform, but it will rely on neither when you build the application.
Edit:
You wouldn't actually need a generic interface to implement from, as long as the class inside the 2 assemblies actually had the same public methods available.
Thanks for your idea.
Am I understanding this right I would have to create to complete new GUIs?
At the Moment the Differences are small:
Code:
If Environment.OSVersion.Platform <> PlatformID.WinCE then
Me.Width = 256
Me.Height = 484
XMLPath = Strings.Right(XMLPath, (Strings.Len(XMLPath) - 6))
PbContact.Visible = False
TbNumber.Width = 202
Me.MaximizeBox = False
Me.MinimizeBox = True
End If
If I could create the InputPanel Control with an EventHandler in this Block the Application should run on both Desktop and PDA, right?
Is there no way?
AgentBignose said:
Thanks for your idea.
Am I understanding this right I would have to create to complete new GUIs?
Click to expand...
Click to collapse
No - only 1 GUI, the way you are currently doing it.
The application solution would not include any .NetCF assemblies, as they would only need to be referenced in the assembly that gets used by the windows mobile app.
So you'd have a deployment solution for the desktop version, and then a deployment solution for the windows mobile version. The windows mobile deployment would include the assembly that has references to the .NetCF (SIP, and any other controls you may need to use). That would be the only difference between the MSI and the CAB that you'd end up with.
I hope that makes sense. It's actually quite a simple idea, but a bit difficult to explain.
I think I understood you.
I leave the code as is.
But at the point where I want to create the SIP Control I dont do this directly, but I create a new .dll assembly which I creates the InputPanel and use this assembly.
Nevertheless I dont know how to create the InputPanel in the Assembly.
I hope I dont bother you to much, in that case please excuse me.
AgentBignose said:
I think I understood you.
I leave the code as is.
But at the point where I want to create the SIP Control I dont do this directly, but I create a new .dll assembly which I creates the InputPanel and use this assembly.
Nevertheless I dont know how to create the InputPanel in the Assembly.
I hope I dont bother you to much, in that case please excuse me.
Click to expand...
Click to collapse
No bother mate.
You need to add a reference to...
Code:
Microsoft.WindowsCE.Forms
and you create the input panel with...
Code:
Microsoft.WindowsCE.Forms.InputPanel sip = new Microsoft.WindowsCE.Forms.InputPanel();
Hope that helps mate
johncmolyneux said:
No bother mate.
Click to expand...
Click to collapse
Thats nice. Thanks.
You need to add a reference to...
Code:
Microsoft.WindowsCE.Forms
and you create the input panel with...
Code:
Microsoft.WindowsCE.Forms.InputPanel sip = new Microsoft.WindowsCE.Forms.InputPanel();
Click to expand...
Click to collapse
I did that.
But how Can I now use the OnEnableChange Event?
I only know the way over deklaring it as Friends With, but I dont manage this in runtime.
AgentBignose said:
Thats nice. Thanks.
I did that.
But how Can I now use the OnEnableChange Event?
I only know the way over deklaring it as Friends With, but I dont manage this in runtime.
Click to expand...
Click to collapse
I just noticed that you're using VB, so I can't really help with coding the event handler for you, but this page might help...
http://www.thescarms.com/dotnet/eventhandler.aspx

Real Multitouch on HD2

Hey, I like to use multitouch to get more intuitive input on the touchscreen like to emulate a virtual ThumbStick and some buttons working on the same time.
It's easy to get multitouch working using the WindowsMessages HTC_Zooming, HTC_End_.... But now, the fingers must be set on the screen nearly at the same time or it won't work. That's fine to implement some rotation or zooming cap but it's not enough for a game...
Does anyone know how to get multitouch, like the HTCAlbum does support?
An interesting fact is that the HTCAlbum app is in the blacklist of the Pinch cap in the registry and to get the PinchToZoom-Messages you must be registered in the whitelist...
Thanks
If you send me one HD2 for testing, I'll find it out hehe
HTCAfe.dll
Hey guys
I'm doing some research in the dependencies of the htc apps on my hd2 to get real multitouch. Now I need to analyze htcafe.dll but I can't copy it from my device 'cause it's cooked in the rom.
How do I get that lib on my pc or could anyone send me a copy?
Thanks
Sure, here you go!
Fast?
EpiphanyNL said:
Sure, here you go!
Click to expand...
Click to collapse
thanks for that quick help!
You can usually copy out rom modules with either Cotulla's romextractor.exe or dotfred's task manager (the Depends tool-extract rom library).
DirectShow?
Hey guys
I'm sorry for the long dead time. It's really tricky 'cause I've no idea of directdraw/show on winmo? I figured out that you have to create a htcscene out of htcafe.dll and there you probably get the real multitouch-events.
Could some one send me a good tut for directdraw/show?
cheers
Got it!!!!
I got it working now!!! After spending hours, I found out how the HTCAlbum does it and I think it's the best way to do it without rewriting the whole driver and that stuff....
If anyone is interested in how to do it, i will write a sdk for .net and maybe a tut for native coding... (So if you're writeing a game... I can't wait to see multitouch ingames!!!)
For the moment I'm done, but I will soon post a sample game (some stuff like AirHockey or Pong)... (if I find time....)
Cheers
Some sample would be nice =)
Is it really something different from "HTC_Zoom_Begin" etc?
As for me, I prefer native code sample, but .net sample is ok as well.
How is this different from the multitouch already enabled on many hd2 apps? For example, fpsece, the playstation emulator has had multitouch for a long time, at least in the donators version. Is this a better implementation of multitouch?
Sent from my HTC HD2 using XDA App
zarathustrax said:
How is this different from the multitouch already enabled on many hd2 apps? For example, fpsece, the playstation emulator has had multitouch for a long time, at least in the donators version. Is this a better implementation of multitouch?
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
Firsteful, there are now three approaches to get multitouch working (as far as I know). The first is the simplest, I think the multiouch skins for morphgear uses this trick. If the second finger is pressed, you get (I don't know exactly how, cause it was never an option for me...) the point in the middle, and you asign two buttons to this point.Well, It's fake multitouch, but it works.
The second option is to write the PenTrac.dll and activate MultipointDemo (or what so ever) key in the registry and send some window messages (they often abuse the standard mouseevents...)...
The last option is to use HTC_Zooming-messages and so on (in my opinion the best, cause this function is already there, so no overheat is made...). And this is what I do. But in all samples I got before (like I described in the first post of this thread...) , you needed to press both fingers at the same time. I figured out, how to avoid this problem. And that's the difference...
And in the end, I just wanted to make a really easy-to-use sdk. So that even beginners are able to get multitouch working.... I found it quite hard to start with all the p/invoke stuff or change from c# to native code. I hope I can help you with the sdk.
Here's the thread of my sdk. Feel free to leave feedback.
http://forum.xda-developers.com/showthread.php?t=906068
Chabun

Categories

Resources