AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Autohotkey for Pocket PCs / WinCE / Smartphones
Goto page 1, 2, 3 ... 28, 29, 30  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Micha



Joined: 15 Nov 2005
Posts: 537
Location: Germany

PostPosted: Tue Jan 01, 2008 7:42 pm    Post subject: Autohotkey for Pocket PCs / WinCE / Smartphones Reply with quote

Please have a look at
http://www.autohotkey.net/~Micha/AutohotkeyCE/html/index.htm



Hi,

My aim is to support a kind of batch files for CE devices (Filecopy, loop, expressions), window automation (Send, Winactivate) and most common gui commands.

Some functions are not working, because there's no API-call for some functions on WindowsCE.
Some functions are requiring system-dlls, which are not present on i.e. a PNA so I had to comment them out.
Some functions are different between Win and WinCE so they have to be reimplemented. Such less important functions (i.e. sound) will not be implement, but the code can be changed by everybody else of course.

----------------------
NEW: If AHKCE is working on your device, please pm me and tell me the name of your device. I'll create a list of working devices.
Thank you

----------------------
If you are starting the EXE it looks for a file AutohotkeyCE.ahk which is started automatically.
The best thing to start is using the following script from sergeich. Please copy his code to a file named "autohotkeyCE.ahk" and run the exe.

Now the extension ahk is "bundled" with the autohotkeyce.exe. You can now start your favorite script directly.

Code:
RegWrite, REG_SZ, HKEY_CLASSES_ROOT, .ahk, , AutoHotkeyScript
RegWrite, REG_SZ, HKEY_CLASSES_ROOT, AutoHotkeyScript, , AutoHotkey Script
RegWrite, REG_SZ, HKEY_CLASSES_ROOT, AutoHotkeyScript\Shell\Open\Command, , "%A_AhkPath%" "`%1"
RegWrite, REG_SZ, HKEY_CLASSES_ROOT, AutoHotkeyScript\DefaultIcon, , %A_AhkPath%`,`-160

Place the AutohotkeyCE.ahk file in the same folder as the EXE and ahkCE is starting the script

The main problem is the memory (or stack) space. A lot of functions are not working because the stack is corrupt after a function call. These functions have to be rewritten or the allocation must be done with new/delete.


The first attempt of a compiler. Please read that post:
http://www.autohotkey.com/forum/viewtopic.php?p=260966#260966
Download

You can find a list of working / not working commands here

The changelog is here


Last edited by Micha on Sun Dec 05, 2010 11:22 am; edited 218 times in total
Back to top
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 885

PostPosted: Wed Jan 02, 2008 10:51 pm    Post subject: Reply with quote

wow

this is AwSoMe Shocked
Back to top
View user's profile Send private message
Rhys



Joined: 17 Apr 2007
Posts: 761
Location: Florida

PostPosted: Thu Jan 03, 2008 12:03 am    Post subject: Reply with quote

Wow, I've been looking for a reason to pull my old Axim out of mothballs. This might be fun to play with.
_________________
[Join IRC!]
Back to top
View user's profile Send private message
halweg



Joined: 27 Jan 2005
Posts: 117
Location: Germany, Dresden

PostPosted: Thu Jan 03, 2008 9:35 am    Post subject: Reply with quote

Micha, you should remark that MSGBOX works!
The most import command for testing and trying.

Btw., how can I start my own scripts? AutohotkeyCE.exe starts the autohotkey.ahk script only Sad

What about GUI-commands? Do we have a chance to get self made clickable bitmaps on the PPC screen?
_________________
Back to top
View user's profile Send private message
Micha



Joined: 15 Nov 2005
Posts: 537
Location: Germany

PostPosted: Thu Jan 03, 2008 11:48 am    Post subject: Reply with quote

halweg wrote:
Micha, you should remark that MSGBOX works!
Btw., how can I start my own scripts? AutohotkeyCE.exe starts the autohotkey.ahk script only Sad
What about GUI-commands? Do we have a chance to get self made clickable bitmaps on the PPC screen?

Hi halweg,
thank's, I've mentioned MsgBox now.

I'm not sure how you can start a program with command line parameters. Perpaps you have to use "start / run / \temp\autohotkeyCE.exe script2run.ahk ???

The debugger can start autohotkey with a parameter so it must work somehow.
I own only a navigation system (the reason why I'm working on autohotkeyCE) and there autohotkeyce isn't working at all....
I just begun to work with CE devices, so I'm not an expert at all...

Well I fear that gui-commands are much more difficult than all the other stuff.
Just for basic functions (Msgbox, sin, cos...) I had to rewrite a lot of ahk-code. I'm not sure how much time I can spend for that... (je nachdem, wie lange ich Lust dazu habe...)
Ciao
Micha
Back to top
View user's profile Send private message
halweg



Joined: 27 Jan 2005
Posts: 117
Location: Germany, Dresden

PostPosted: Thu Jan 03, 2008 12:18 pm    Post subject: Reply with quote

PPCs have a registry, there you can assign File types with registered programs.
A way to do this (except a registry editor) are programs like resco explorer or sk tools. I'm using resco explorer, so I can do a "open with..." and select either editor (notes.exe) or compiler (autohotkeyce.exe) to open .ahk files.


Micha, please keep on this interesting project. It's a twist of fate that you needed a navigating system. Wink

Have a look at www.ppc-welt.de, there you will find a lot of helping people with knowledge in all details about PPCs.

I'm member of the PPC Club Saxony; if you're interested visit our next meeting (.net Workshop, Dresden, 17.01.2008).
_________________
Back to top
View user's profile Send private message
Micha



Joined: 15 Nov 2005
Posts: 537
Location: Germany

PostPosted: Thu Jan 03, 2008 7:59 pm    Post subject: Reply with quote

Hi,
cool,
easy guis are working:
Back to top
View user's profile Send private message
Micha



Joined: 15 Nov 2005
Posts: 537
Location: Germany

PostPosted: Fri Jan 04, 2008 11:28 am    Post subject: Reply with quote

Hi, are there any volunteers who could test Gui-commands with (v6) of the autohotkeyCE?
Ciao
Micha
Back to top
View user's profile Send private message
Fry(un logged in)
Guest





PostPosted: Sat Jan 05, 2008 1:57 am    Post subject: Reply with quote

hey,
in your last picture how did you have windows ce on windows xp?


i see a pocket pc on your desktop
Back to top
ahklerner



Joined: 26 Jun 2006
Posts: 1381
Location: USA

PostPosted: Sat Jan 05, 2008 4:20 am    Post subject: Reply with quote

it is called an emulator.
_________________

ʞɔпɟ əɥʇ ʇɐɥʍ
Back to top
View user's profile Send private message
Micha



Joined: 15 Nov 2005
Posts: 537
Location: Germany

PostPosted: Sat Jan 05, 2008 10:24 am    Post subject: Reply with quote

Hi,
yes it's an emulator. I have to work with just this emulator, because I only own a navigation system and AutohotkeyCE does not run on this device Sad
Back to top
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 885

PostPosted: Sat Jan 05, 2008 3:15 pm    Post subject: Reply with quote

can you show me where you got it?
Back to top
View user's profile Send private message
ahklerner



Joined: 26 Jun 2006
Posts: 1381
Location: USA

PostPosted: Sat Jan 05, 2008 3:18 pm    Post subject: Reply with quote

Fry wrote:
can you show me where you got it?

Read this post:
http://www.autohotkey.com/forum/viewtopic.php?t=8711
_________________

ʞɔпɟ əɥʇ ʇɐɥʍ
Back to top
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 885

PostPosted: Sun Jan 06, 2008 12:02 am    Post subject: Reply with quote

you should take off the (DEMO)

because this has almost all functionality as regular autohotkey
Back to top
View user's profile Send private message
halweg



Joined: 27 Jan 2005
Posts: 117
Location: Germany, Dresden

PostPosted: Sun Jan 06, 2008 12:32 pm    Post subject: Reply with quote

I tried out this example script:
Code:
Gui, Add, Text,, First name:
Gui, Add, Text,, Last name:
Gui, Add, Edit, vFirstName ym  ; The ym option starts a new column of controls.
Gui, Add, Edit, vLastName
Gui, Add, Button, default, OK  ; The label ButtonOK (if it exists) will be run when the button is pressed.
Gui, Show,, Simple Input Example
return  ; End of auto-execute section. The script is idle until the user does something.

GuiClose:
ButtonOK:
Gui, Submit  ; Save the input from the user to each control's associated variable.
MsgBox You entered "%FirstName% %LastName%".
ExitApp

My PPC shows an oversized white dialog box with two small lines "First name" and ""Last name". No input fields, no posibility to input anything.

When I start AHK a second time one my device, it's not able to automaticly remove the first instanace of autohotkey.exe.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3 ... 28, 29, 30  Next
Page 1 of 30

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group