 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Micha
Joined: 15 Nov 2005 Posts: 537 Location: Germany
|
Posted: Tue Jan 01, 2008 7:42 pm Post subject: Autohotkey for Pocket PCs / WinCE / Smartphones |
|
|
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 |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 885
|
Posted: Wed Jan 02, 2008 10:51 pm Post subject: |
|
|
wow
this is AwSoMe  |
|
| Back to top |
|
 |
Rhys
Joined: 17 Apr 2007 Posts: 761 Location: Florida
|
Posted: Thu Jan 03, 2008 12:03 am Post subject: |
|
|
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 |
|
 |
halweg
Joined: 27 Jan 2005 Posts: 117 Location: Germany, Dresden
|
Posted: Thu Jan 03, 2008 9:35 am Post subject: |
|
|
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
What about GUI-commands? Do we have a chance to get self made clickable bitmaps on the PPC screen? _________________
 |
|
| Back to top |
|
 |
Micha
Joined: 15 Nov 2005 Posts: 537 Location: Germany
|
Posted: Thu Jan 03, 2008 11:48 am Post subject: |
|
|
| 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
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 |
|
 |
halweg
Joined: 27 Jan 2005 Posts: 117 Location: Germany, Dresden
|
Posted: Thu Jan 03, 2008 12:18 pm Post subject: |
|
|
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.
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 |
|
 |
Micha
Joined: 15 Nov 2005 Posts: 537 Location: Germany
|
Posted: Thu Jan 03, 2008 7:59 pm Post subject: |
|
|
Hi,
cool,
easy guis are working:
 |
|
| Back to top |
|
 |
Micha
Joined: 15 Nov 2005 Posts: 537 Location: Germany
|
Posted: Fri Jan 04, 2008 11:28 am Post subject: |
|
|
Hi, are there any volunteers who could test Gui-commands with (v6) of the autohotkeyCE?
Ciao
Micha |
|
| Back to top |
|
 |
Fry(un logged in) Guest
|
Posted: Sat Jan 05, 2008 1:57 am Post subject: |
|
|
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
|
Posted: Sat Jan 05, 2008 4:20 am Post subject: |
|
|
it is called an emulator. _________________
ʞɔпɟ əɥʇ ʇɐɥʍ |
|
| Back to top |
|
 |
Micha
Joined: 15 Nov 2005 Posts: 537 Location: Germany
|
Posted: Sat Jan 05, 2008 10:24 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 885
|
Posted: Sat Jan 05, 2008 3:15 pm Post subject: |
|
|
| can you show me where you got it? |
|
| Back to top |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1381 Location: USA
|
|
| Back to top |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 885
|
Posted: Sun Jan 06, 2008 12:02 am Post subject: |
|
|
you should take off the (DEMO)
because this has almost all functionality as regular autohotkey |
|
| Back to top |
|
 |
halweg
Joined: 27 Jan 2005 Posts: 117 Location: Germany, Dresden
|
Posted: Sun Jan 06, 2008 12:32 pm Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|