AutoHotkey Community

It is currently May 27th, 2012, 10:38 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 453 posts ]  Go to page Previous  1 ... 27, 28, 29, 30, 31  Next
Author Message
 Post subject:
PostPosted: September 17th, 2011, 1:38 am 
Online

Joined: January 15th, 2007, 2:37 pm
Posts: 573
None wrote:
I'll look into the compile problem but in the mean time a function to get the curent battery %


Hey None, What is the NTM() function your calling from this script. When I search for it I only get results for this thread and another you started. The code does seem to work just fine with this commented out.

For those interested AHK for WinCE seems to be working on my older device.

HP RX3715
Windows Mobile 2003 Second Edition

Does anyone know how to access the IR transmitter?

_________________
Links to my scripts.
---------------------------------------------------------------------------------------------

I too have an app for that... and that... and that, and that, and that.
It's called a web browser.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 17th, 2011, 7:36 am 
Online

Joined: January 15th, 2007, 2:37 pm
Posts: 573
I'm not seeing many scripts posted for others to use so I'll post some I've done and maybe I'll start a trend. What I have so far is mostly been for testing purposes.

Battery Monitor
From None
Here is an updated version of None's battery monitor. It uses a progress bar, GuiControl, WinSetTitle and updates itself via SetTimer. Only tested on Windows Mobile 2003 Second Edition.

Battcheck.ahk
Image

Code:
#SingleInstance, Force
IsCharging := % GetBatt("charge")
CurrentBatt := % GetBatt()
If IsCharging = 1
   Charge = Charging
Else Charge =
Gui, Add, Progress, x5 y5 w200 vBattCharge, %CurrentBatt%
Gui, Add, Text, x5 y25 w40, 0`%
Gui, Add, Text, x50 y25 w40, 25`%
Gui, Add, Text, x100 y25 w40, 50`%
Gui, Add, Text, x150 y25 w30, 75`%
Gui, Show, w210 , Battery %CurrentBatt%`% %Charge%
SetTimer, Check, 5000
Return
Check:
IsCharging := % GetBatt("charge")
CurrentBatt := % GetBatt()
If IsCharging = 1
   Charge = Charging
Else Charge =
GuiControl, , BattCharge, %CurrentBatt%
WinSetTitle, Battery, , Battery %CurrentBatt%`% %Charge%
Return

GuiClose:
Gui, Destroy
ExitApp

GetBatt(x="") {
VarSetCapacity(OutVar, 24, 0)
DllCall("GetSystemPowerStatusEx", "Uint", &OutVar, "Uint", 1)
If (x="")
Return NumGet(OutVar,2,"char")
If (x="charge")
Return (NumGet(OutVar,1,"char")&8=8) ? 1 : 0
}

_________________
Links to my scripts.
---------------------------------------------------------------------------------------------

I too have an app for that... and that... and that, and that, and that.
It's called a web browser.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 18th, 2011, 2:12 am 
Online

Joined: January 15th, 2007, 2:37 pm
Posts: 573
Application Launcher

This is just a set of 12 large buttons, easy to hit with fat fingers, that can launch apps on the PPC.

Must have None's "GetFile" function. Place it in you lib folder in the "\Program Files\AutoHotkeyCE\lib" same as on a desktop.

First is with simple buttons.
The options tab allows you to select a button, choose an app to run and enter a name for the button.
Button Launcher
Image.

Updated, 9/25/11
Added tabs to create 48 launch buttons.
This version uses images for the buttons and changes the image when clicked.
Image Launcher. The zip file contains the script, ini and images.
Image

Notes:
I have only been successful at displaying bmp images.
The layers seem to work backwards in Win CE. If you want text to appear on top of a button the text must be added first.
BackgroundTrans does not seem to work for text. The images have been designed to outline the text area.
Winset, Redraw and GuiControl MoveDraw don't seem to work. As a work around all images are initially added but the clicked are hidden. GuiControl, Hide/Show is used for the on click effect.

Both versions read and write an ini file. If in the same folder the same ini file will be used by both.

_________________
Links to my scripts.
---------------------------------------------------------------------------------------------

I too have an app for that... and that... and that, and that, and that.
It's called a web browser.


Last edited by specter333 on September 25th, 2011, 4:51 pm, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 18th, 2011, 2:22 am 
Online

Joined: January 15th, 2007, 2:37 pm
Posts: 573
Get Screen Size

This may have been started by someone else in this topic. I can't remember now. It's just a test of built in variables. It retrieves the device's screen size and the size of the active gui window which is of course, itself.
Get Screen Size
Image

As you can see in the pic, the Maximize and Restore buttons don't show so I added the buttons on bottom to test with. If you click where they should be on the bar they do still work.

_________________
Links to my scripts.
---------------------------------------------------------------------------------------------

I too have an app for that... and that... and that, and that, and that.
It's called a web browser.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 18th, 2011, 2:26 am 
Online

Joined: January 15th, 2007, 2:37 pm
Posts: 573
Time

This is just a clock that's big enough to see without my glasses and easy to dismiss.
Time
Image

_________________
Links to my scripts.
---------------------------------------------------------------------------------------------

I too have an app for that... and that... and that, and that, and that.
It's called a web browser.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 3rd, 2011, 1:46 am 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
specter333 wrote:
What is the NTM() function your calling from this script.
I forgot to remove it when I posted that code.
It is a function I use to change the contents of the tray menu from the default which is not as useful on a ppc.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: November 15th, 2011, 6:46 am 
Does any one met the same problem in Wince.
my code show below:

UrlDownloadToFile , http:\\10.168.1.1\web\a.txt, \Windows\a.txt

It's a bug or just a wrong usage!!

THANKS!!


Report this post
Top
  
Reply with quote  
PostPosted: December 16th, 2011, 7:14 am 
Online

Joined: January 15th, 2007, 2:37 pm
Posts: 573
Anonymous wrote:
Does any one met the same problem in Wince.
my code show below:

UrlDownloadToFile , http:\\10.168.1.1\web\a.txt, \Windows\a.txt

It's a bug or just a wrong usage!!

THANKS!!


I've been working with this a lot over the last week and no success. I've been able to control another computer over a network with pie but not with AHK or download anything with AHK.

My guess is Pocket Internet Explorer is not capable of using this command. The manual says it must be Internet Explorer 3 or greater so I bet pie just can't do it.

_________________
Links to my scripts.
---------------------------------------------------------------------------------------------

I too have an app for that... and that... and that, and that, and that.
It's called a web browser.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 25th, 2012, 4:27 pm 
Offline

Joined: January 25th, 2012, 4:17 pm
Posts: 1
Great tool.
Thank you.
One thing can you put it in BIG BOLD LETTERS on
http://www.autohotkey.net/~Micha/AutohotkeyCE/html/index.htm
that compiled script exe/AutoHotkeyCE
Quote:
REQUIRES TOOLHELP.DLL
in CE device/directory that hosts script/compiled exe?

I bet a lot of 'not working' reports is due that

This is also a case with net distributed CE emulators.

PS.
Super easy script that could be posted on homepage as a very useful example for beginners:
Quote:
Run, \Storage Card\Somedir\someprogram.exe, \Storage Card\Somedir\, UseErrorLevel

Very usefull script for anyone wanting to make use of default original shell in many CE based navigation devices by replacing map/player/picture viewer exe with other program.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 25th, 2012, 11:06 am 
Offline

Joined: March 24th, 2009, 2:25 pm
Posts: 22
I want to write a small timer for myself using ahk. Could you please tell me if there is a way to make the pda vibrate and also to suspend the device?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2012, 9:00 pm 
To suspend the device, please use i.e
Shutdown, 8
Ciao
Micha


Report this post
Top
  
Reply with quote  
 Post subject: 2 New Win CE Scripts
PostPosted: March 25th, 2012, 10:41 am 
Online

Joined: January 15th, 2007, 2:37 pm
Posts: 573
Here are a couple more scripts I've created for use on my PPC. I use these on an HP RX3715 Running WM 2003SE.

Countdown Timer
This is an adaptation of the countdown timer I posted many years ago, which was one of my first scripts. Just set the time using the three edit boxes and click "Go", which then changes to "Reset".

Image
Download Richard's Countdown Timer for Win CE.

You can minimize the gui with the "Hide" button and there is a "Show" option in the tray menu. The timer auto-unhides at 5 seconds and at 0 plays Alarm1.wav until the user takes action such as clicking "Reset"

I use jballi's MCI library for the counting part, it needs to be in you lib folder or included. Download it here.

Sound FX Player
I find this very useful as I run sound for plays quite a bit and need an easy way to play the sound effects. I have had a similar script on my tablet for a while but using my PPC takes up less desk space. It uses "SoundPlay" but the Win CE version only works with .wav files.

Image
Download Richard's Sound FX Player for Win CE.

To use, place a copy of the script into a folder containing your .wav files. When started, the player reads the files and adds them to the drop down list. It also sets the title of the window to the folder's name.

Select a file from the drop down list and tap anywhere over the word "FX" to start playback. Tap again to stop playback.

Playing a non existent file to stop playback does not work like on a windows system, it instead plays a default sound. For a work around place a short, blank wav file in the folder. Here is one you can download, Stop.wav.

_________________
Links to my scripts.
---------------------------------------------------------------------------------------------

I too have an app for that... and that... and that, and that, and that.
It's called a web browser.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 31st, 2012, 12:51 pm 
Offline

Joined: March 31st, 2012, 12:37 pm
Posts: 1
Hello there! Sorry, this is a random question out of the blue... But is there any chance that I could get AutoHotkey running on my Jornada 720? The 720 runs "Windows CE 3.0 based HPC2000". AutoHotkey would come in very, very handy on the 720 when running an application called Sunvox. Another Sunvox user has installed AutoHotkey on a NEC MobilePro and reports success. I have tried to install it on my Jornada 720, but it first warns me that it was not made for the device, but allows me to install it. If I then navigate to the two exe files it installs and I try to run them, it tells me that "Cannot find 'AutohotkeyCE' (or one of its components). Make sure the path and filename are correct...." and the same message if I try to run the other exe file except that it says: "Cannot find 'Ahk2Exe'..."
If there is any chance that I could get it to work it would be fantastic, but if not then I will go away and leave you in peace! Thanks, Teamoth


Report this post
Top
 Profile  
Reply with quote  
PostPosted: April 9th, 2012, 7:35 pm 
Hello all, I just want to start by saying WOW, thank you all for the hard work. I have just come across this when looking for mobile macros and it's blowing my mind. Very useful stuff. I have a rather ignorant question. I'm looking for a way to send highlighted text (phone number) directly to the phone. Ideally I would be able to highlight any number, click hold and choose DIAL, or at the very least run a script that will copy > open phone > paste > dial.

I'm sure this is doable from what I'm seeing so far. I guess the more direct question is, what executable runs the "phone" in windows CE 6.5? if I compile a script and have it running in the background, would it recognize my holding mouse down and allow me for options such as I've mentioned above?

Thank you all for your time, and I'm sorry if my questions sound lazy, I'm off to reading the forums so I may be able to find some of the answers. I would appreciate any timesaving suggestions.

Newb


Report this post
Top
  
Reply with quote  
PostPosted: April 13th, 2012, 3:13 pm 
I figured out a way to execute a compiled script by holding down the SEND key... I'm still having difficulties pulling up the phone app from within a scrpit for some reason, it is called from a dll in the shortcut, as opposed to an actual exe. Still cuts down on time but a bit of a pain in the butt. Currently I can get a compiled script to copy whatever is highlighted to the clipboard, I then have to manually bring up the phone, click menu and paste... any suggestions would be welcome.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 453 posts ]  Go to page Previous  1 ... 27, 28, 29, 30, 31  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 12 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