AutoHotkey Community

It is currently May 27th, 2012, 12:29 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 453 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22, 23, 24 ... 31  Next
Author Message
 Post subject:
PostPosted: November 16th, 2009, 8:12 pm 
Offline

Joined: November 15th, 2009, 10:21 pm
Posts: 21
Location: London, UK
THAT'S WHAT I CALL A EXQUISITE PROGRAMMER!

This project is marvelous!

Well done Micha.

_________________
Image

http://www.autohotkey.net/~FirstToyLab/


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2009, 11:29 am 
Here is my script for importing certificates. There are two CA's and one user's with private key. Sometimes it runs properly and sometimes hangs on WinWaitActive (the WinActivate was not enough)... What is kind of strange - the script usually hangs on WinWaitActive,Import?
Code:
Send {LWin}
Sleep,1000
Send s
Sleep,1000
Send c
Sleep,1000
Send c
Sleep,1000
Send {Enter}

WinActivate,Certificates
WinWaitActive,Certificates
Send !i
WinActivate,Import
WinWaitActive,Import
Send {Enter}
WinActivate,Select
WinWaitActive,Select
Send {ASC 92}storage card{ASC 92}dtm.cer
Send {Enter}
Sleep,1000
IfWinActive,Root
{
Send {Enter}
}

WinActivate,Certificates
WinWaitActive,Certificates
Send !i
;;Sleep,1000
WinActivate,Import
WinWaitActive,Import
Send {Enter}
;;Sleep,1000
WinActivate,Select
WinWaitActive,Select
Send {ASC 92}storage card{ASC 92}fiddler.cer
Send {Enter}
Sleep,1000
IfWinActive,Root
{
Send {Enter}
}

WinActivate,Certificates
WinWaitActive,Certificates
Send m
Sleep,500
WinActivate,Certificates
WinWaitActive,Certificates
Send !i
;;Sleep,1000
WinActivate,Import
WinWaitActive,Import
Send {Enter}
;;Sleep,1000
WinActivate,Select
WinWaitActive,Select
Send {ASC 92}storage card{ASC 92}usr.cer
Send {Enter}

WinActivate,Certificates
WinWaitActive,Certificates
Send !i
;;Sleep,1000
WinActivate,Import
WinWaitActive,Import
Send {Enter}
;;Sleep,1000
WinActivate,Select
WinWaitActive,Select
Send !tp!n{ASC 92}storage card{ASC 92}usr.pvk
Send {Enter}

WinActivate,Certificates
WinWaitActive,Certificates
Send {Esc}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2009, 11:32 am 
I forgot to add - the script does not resume when I activate the import dialog, event when the old one is closed and the new one is brought up.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 1st, 2009, 10:20 am 
It looks like there is really something wrong with WinWaitActive.
I think the line
Code:
048: WinWaitActive,Root,1 (159.99)

should never be reported in the script log...

[Deleted double post. ~jaco0646]


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 11th, 2009, 1:30 pm 
Offline

Joined: May 12th, 2009, 2:37 pm
Posts: 640
Location: Gloucester UK
Morning All,

Does anyone know how to invoke the software keyboard using AHKCE? I have a couple of GUI's which will show the keyboard if it is present before they are started but won't if it wasnt.



Also I thought I'd share my work-around for displaying a progress bar using AHKCE

First I create a GUI containing a progress bar of zero length (I like to have no title bar and extra border)
Code:
Gui, -0xC00000
Gui, +0x800000
Gui, Add, Text, w200 Center, Scanning Data
Gui, Add, Progress, w0 vData, 0
Gui, Show, w210, Data
Return


Then at any pont during the script that I wish to advance the progress bar I use ControlMove like so:

Code:
ControlMove, msctls_progress321, , , 20, , Data
(the number in red is the new length of the bar)

I hope that's of use to someone


edit: wow, my eleventy-first post


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 12th, 2010, 9:10 am 
Offline

Joined: February 12th, 2008, 2:25 pm
Posts: 13
Location: Munich, Germany
First of all -
thanks a lot for your great work.

I'd just like to ask if anyone else is experiencing problems with 'iniRead'?

So I installed the latest version (which should support it I think) and couldn't get it working on my PPC.
Well - I'm using WM2003, so could this the problem?
AHK works there in general, the script also runs fine on the Desktop PC, but on my PDA the variables return empty if reading the ini-file.

Another question would be, if some of you have tried skinned GUIs with AHK-CE, so e.g. buttons using images or text on images (there was a thread with a link mentioning that Backgroundtrans makes the whole window transparent, not just its control. Unfortunately there wasn't a really simple solution so far and my workaround is terrible).

Any help/comments would be great -

thanks again for the port!

Cheers,
thewer


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 22nd, 2010, 12:14 am 
Offline

Joined: March 9th, 2009, 12:15 am
Posts: 28
1000 thanks for AHK-CE, great work!
(I'm only missing a window-spy like script)

_________________
http://monschein.org


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 11:48 am 
Offline

Joined: May 12th, 2009, 4:13 am
Posts: 7
Hi Micha,

I found that ControlGetFocus doesn't work. after googling, I seem to find a solution in http://www.smartphonedn.com/qa/getfocusip.html. It would be great if you can integrate into the ahk exe. :?:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 3rd, 2010, 2:20 am 
Offline

Joined: February 12th, 2008, 2:25 pm
Posts: 13
Location: Munich, Germany
Hi there -

just found another problem I would be happy if someone knows a solution for:
I want to replace the existing text/label of (alltogether 8) text controls.
So within a loop I normally would do

GuiControl,, MyTextControl, NewText or
GuiControl,Text , MyTextControl, NewText

However on my device this leads to the new text written above the old one.
What seems to miss is a kind of redrawing of the control:
If I hide the controls and show them again, the old text has vanished.
However this isn't really a solution as it makes the whole process very slow...
So when looping over only 8 controls, it takes 1-2 seconds to refresh the contents. Unfortunately I need them to be rather responsive as they"re updated quite often (kinf of context buttons).

Another question - probably rather advonced - how do I get rid of the tap and hold gesture? Sorry, I'm aware it was sure difficult to implement, but in my case it's rather annoying (I'm trying kind of mouse gestures).

Thanks a lot for help -

und nochmals: Ein Superprojekt, Micha! :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 26th, 2010, 2:13 pm 
Offline

Joined: October 15th, 2007, 3:10 pm
Posts: 790
Location: England
Thanks very much for this Port to CE/PPC, it is helping me greatly.

However, I seem to have found a bug. I have the below example Script to show the issue. It is very possible it has been reported before, so apologies if it has. I thought I would post anyway, as I found a workaround in case anyone is interested.

1) Run the script and type a long string into the edit box and hit the Go button (e.g. "ABC123456")
2) A message box (Before) will appear showing you the control's associated variable has been blanked
3) A message box (After) will appear showing the new contents of the variable after the Gui, Submit.

No problems .

However, if you try it again a second time, typing a shorter string into the box (e.g. "XYZ"), the "After" message box will appear with "XYZ123456" in it... of course it should just be "XYZ".

Code:
Gui, Add, Edit, w200 vBarcodeInput
Gui, Add, Button, gButtonFind Default, Find
Gui, Show
Return

ButtonFind:
   BarcodeInput := "" ; clear control var (just to make sure)
   MsgBox, Before: %BarcodeInput%
   Gui, Submit, NoHide
   MsgBox, After: %BarcodeInput%

   GuiControl, , BarcodeInput, ; clear edit control
   GuiControl, Focus, BarcodeInput ; focus edit control
Return

GuiClose:
GuiEscape:
   ExitApp
Return


It is as if the null terminator is not being copied in the second time, or perhaps if the capacity of the var is not being updated or something like that?

I tried just setting the capacity of the variable to 0 using VarSetCapacity(BarcodeInput, 0) and using BarcodeInput := 0 but this didn't work either.

I managed to find a workaround using VarSetCapacity to "zero-out" the variable and then blank it, which seems to work:

Code:
Gui, Add, Edit, w200 vBarcodeInput
Gui, Add, Button, gButtonFind Default, Find
Gui, Show
Return

ButtonFind:
   VarSetCapacity(BarcodeInput, StrLen(BarcodeInput), 0)
   BarcodeInput := "" ; clear control var (just to make sure)
   MsgBox, Before: %BarcodeInput%
   Gui, Submit, NoHide
   MsgBox, After: %BarcodeInput%

   GuiControl, , BarcodeInput, ; clear edit control
   GuiControl, Focus, BarcodeInput ; focus edit control
Return

GuiClose:
GuiEscape:
   ExitApp
Return



Edit: Hmm it appears that Micha has not made any posts or made any changes to the code since 13th November 2009, so we may be stuck :(
Maybe fincs can help?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2010, 5:54 pm 
Offline

Joined: March 27th, 2010, 5:36 pm
Posts: 1
Hello. I just stumbled across this thread yesterday. Micha has done an outstanding job of porting AHK to CE/Windows Mobile. Nice work sir!

I'm familiar with writing software for CE (mostly C, some C++), have done a few porting XP to CE projects and have some experience writing compiler and scripting interpreters for DOS/XP so I assume the innards of AHK will look somewhat familiar.

Anyhow, I'd like to download the source and and perhaps contribute to the project. I have Visual Studio 2008 installed, multiple SDKS, and an office full of Datalogic Mobile hardware (CE42,50, WinMobile 5, 6.0, 6.1, 6.5). (see http://mobile.datalogic.com)

I installed Tortoise SVN and attempted to checkout the source from Micha's repository here.

http://www.autohotkey.net/~Micha/repos/ ... ohotkeyCE/

I get a 200 OK error and no source. Is there a problem with the repository? I tried spidering the source with HTTrack and no luck either. I get the folder tree and one index.html file.

If someone can help me get the source (ZIP or RAR or SVN?) I'll see if I can compile here and go from there.

Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 28th, 2010, 6:49 am 
Based on the error you got, it looks like you would have to download each file by right-clicking on it and selecting save as....

I don't see where there is a zip of all the files. That would be convenient if that was added.

You can send a private message to micha directly in order to make certain requests.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 28th, 2010, 12:19 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
Futurity wrote:
I have tested some more functions:
SendMessage FAIL
PostMessage FAIL
ControlSend FAIL
ControlFocus FAIL


Hi,
ControlSend and ControlFocus should work.
Post/SendMessage: I'll have a look at them.
Working commands are mentioned at http://www.autohotkey.net/~Micha/Autoho ... mands.html
Ciao
Micha


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 28th, 2010, 12:30 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
mic2009 wrote:
Hi Micha,

I found that ControlGetFocus doesn't work. after googling, I seem to find a solution in http://www.smartphonedn.com/qa/getfocusip.html. It would be great if you can integrate into the ahk exe. :?:

Hi mic2009 I've got,
->
Not Found
The requested URL /qa/getfocusip.html. was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 28th, 2010, 12:53 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
Now that a Unicode version of AutoHotkey is available (thanks to jackieku and Lexikos) I think time would be better spent trying to get it work on CE.
This option would make AutoHotkeyCE faster and smaller (due to the ANSI<->Unicode conversion code that would have been taken out).
Micha, what do you think?

_________________
fincs
Highly recommended: AutoHotkey_L (see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)
[My project list]


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 ... 18, 19, 20, 21, 22, 23, 24 ... 31  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cristi®, Google Feedfetcher, tidbit and 55 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