AutoHotkey Community

It is currently May 26th, 2012, 5:51 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 453 posts ]  Go to page Previous  1 ... 12, 13, 14, 15, 16, 17, 18 ... 31  Next
Author Message
 Post subject: HardwareKeys
PostPosted: April 24th, 2009, 9:40 am 
Can someone please tell me which key-codes are for the ‘Hardwarekeys’ on PPC2003 or WM5.

I have a Symbol 3000 who has 4 buttons. AutohotkeyCE only sends virtual key VK05B to my script (regardless of the pressed key). If I use the KeyHistory-function I see the following sequence :
Physical button 2 : 05B down - 06B down – 05B up – 06B up
Physical button 3 : 05B down - 06C down – 05B up – 06C up

The use of #InstallKeybdHook or #UseHook doesn’t change a thing.

Can someone help me further distinguising the different hardwarebuttons (in a label)?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2009, 9:13 pm 
Offline

Joined: January 11th, 2008, 7:42 pm
Posts: 20
Location: Russia
Micha,
Hi, Thank you for new version 22. Sometimes, tray menu comes up for lower corner, in upper corner sometimes. Possible do that menu always show for one place of screen? Example, right down corner.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2009, 10:31 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
Hi Anto, skooter1121 and antchuck
you heavily asked for the source code to help.
The source code is uploaded a long time ago.
Is there any progress you've made?
Ciao
Micha


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2009, 10:48 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
Hi,
I've uploaded a new version. Listview: Report mode is working
Ciao
Micha

Edit: Changing between list / report while the script is running is working now

Context menu was shown at random places. It is shown at the right lower corner of the screen now. In the Wince emulator GetCursorPos returns an error. GetLastError returns 120: This function is not valid on this platform. ERROR_CALL_NOT_IMPLEMENTED.
So I used GetSystemMetrics to get the screen height / width and I'm positioning the menu fixed at that location.
Please redownload V23
Ciao
Micha


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2009, 1:10 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
Frankie wrote:
Can you try to get UrlDownloadToFile and RegExMatch working? Those are two of the most useful commands/functions on a mobile phone. Theres endless uses for them that become even more useful when your not at home. Like making apps for weather, movies, stocks, ebay, myspace, facebook, youtube downloaders etc.

Hi Frankie,
Regular Expressions are working. Please download V24
Ciao
Micha


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2009, 3:16 pm 
Offline

Joined: January 11th, 2008, 7:42 pm
Posts: 20
Location: Russia
Micha,
Thank you for new version! Now context menu working ok :-)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 27th, 2009, 4:47 am 
Offline

Joined: May 21st, 2008, 10:02 pm
Posts: 13
Thanks!! edit:up to late.. Thanks micha


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 27th, 2009, 5:56 am 
Offline

Joined: May 21st, 2008, 10:02 pm
Posts: 13
werD420 wrote:
No luck on compression yet. UPX4PPC seems to break the executables. It would've been nice though
--
As a reference. I compiled a small script (some basic window spy stuff) then used upx4ppc to check out what type of compression I could get.

Before Compression: 540.55 KB
After(fastest):292.55KB - Not Working
After(maximum): 220.55KB - Not Working
--



success!! rather than compressing the output, compress the bin file.

bin file before compression
autohotkeysc_ce.bin 535KB
after compression(fastest) working perfect
autohotkeysc_ce.bin 286KB


Final compiled exe is a totally liveable 292KB :D

If there's an updated bin file for V24 id be glad to compress and send it back for ya to update the compiler with or add it in as optional

let me know. ill test the maximum compression some time tomorrow(its late here :) )


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 28th, 2009, 9:23 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
Hi, I've uploaded a new compiler bin file. (= V25 of AHKCE)
http://www.autohotkey.net/~Micha/AutohotkeyCE/AHKCompiler.zip

Thank you very much werD420 for testing upx.
I've used your results to create the new binary so the thanks is yours

Ciao
Micha


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 28th, 2009, 9:31 pm 
Offline

Joined: May 21st, 2008, 10:02 pm
Posts: 13
Excellent! Thank you again for all of your hard work!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 2nd, 2009, 3:37 pm 
Micha,
Please pack AhkCE UPX with parameter --compress-icons=0
for showing icons associated files.


Report this post
Top
  
Reply with quote  
PostPosted: May 3rd, 2009, 2:07 pm 
Offline

Joined: May 3rd, 2009, 1:50 pm
Posts: 2
Location: Germany
Micha wrote:
----------------------
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


Hello Micha,
seems to be a very good and unique windows mobile program!

Do I need these reg entries in my wm device (I did made a *.reg file out of the code content but under wm6 it could not be run)?

I do not know if it is a consecutive failure that after extracting AHK version 25 to the wm programm folder and starting autohotkeyce.exe the "edit this script" order is returning "could not open script" (though autohotkeyce.ahk is present in this folder) ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 3rd, 2009, 6:06 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
Anonymous wrote:
Micha,
Please pack AhkCE UPX with parameter --compress-icons=0
for showing icons associated files.

Hi,
I've added the switch to the post compile options. It will work with the next release. Thanks for reporting.
Ciao
Micha


Report this post
Top
 Profile  
Reply with quote  
PostPosted: May 3rd, 2009, 6:51 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
masterblaster wrote:
Do I need these reg entries in my wm device (I did made a *.reg file out of the code content but under wm6 it could not be run)?

Hi masterblaster,
If you want to click an ahk file the OS must know the coresponding exe to launch with that file. If you do not have the connection the OS complains after clicking an ahk file that it does not know how to run that kind of file.
To create a reg file you cannot just copy the commands. The AHK syntax is different from the reg file syntax. The second problem with a reg file is that the pathes inside are static. If you move the exe to another place and rerun the reg file it does not work. Sergeichs script is working regardless of the location of the exe. (But after running the script you must not move the exe or you have to rerun the script!)
So I strongly recommend to use the script.

masterblaster wrote:
I do not know if it is a consecutive failure that after extracting AHK version 25 to the wm programm folder and starting autohotkeyce.exe the "edit this script" order is returning "could not open script" (though autohotkeyce.ahk is present in this folder) ?

I've tested V25 with an emulator and my PNA and it's working fine.
I've changed the script in V26 to execute the registration as first command. Please redownload V26 and try again. Download the zip file. Extract all 3 files inside and copy them in one folder of your device. Then run the exe.
Ciao
Micha


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 3rd, 2009, 11:47 pm 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
Thank you for supporting RegEx. I hope URLDownloadToFile is working by June when my contract expires and I can get a windows mobile phone.

_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 453 posts ]  Go to page Previous  1 ... 12, 13, 14, 15, 16, 17, 18 ... 31  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group