AutoHotkey Community

It is currently May 26th, 2012, 11:52 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 453 posts ]  Go to page Previous  1 ... 17, 18, 19, 20, 21, 22, 23 ... 31  Next
Author Message
 Post subject:
PostPosted: October 27th, 2009, 10:21 pm 
Offline

Joined: February 13th, 2007, 3:54 pm
Posts: 21
fincs any news from Micha?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 28th, 2009, 9:49 pm 
Online
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
Actually not. He told me he would work on it "next week" because he's been busy with other projects. We'll see what will happen...

_________________
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  
 Post subject:
PostPosted: November 10th, 2009, 8:50 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
Hi,
it took (too) long (1000 times sorry) but here is a new version. Minor bug-fixes and.... (drum roll):
fincs provided the complete code for dllcall.
Thank you very much for that. It's a great progress and important thing for ahkce.
Changelog: http://www.autohotkey.net/~Micha/AutohotkeyCE/html/Changelog.html
Ciao
Micha


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2009, 9:30 pm 
Online
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
Just one thing. I'm using this test script:
Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

MsgBox Not dead 1
MsgBoxU(0, "Hello Unicode!", "Unicode is supposed to rock")
MsgBox Not dead 2
ExitApp

MsgBoxU(Options, Title, Text, HWND=0){
   StandardUnicodeConvert(TitleU, Title)
   StandardUnicodeConvert(TextU, Text)
   DllCall("MessageBoxW", "uint", HWND, "uint", &TextU, "uint", &TitleU, "uint", Options)
}

StandardUnicodeConvert(ByRef Output, Input){
   ILength := StrLen(Input)+1
   VarSetCapacity(Output, ILength*2)
   DllCall("MultiByteToWideChar", "uint", 0, "uint", 0, "str", Input, "uint", ILength, "str", Output, "uint", ILength)
}


But it silently dies. What am I doing wrong?

EDIT: Ahh yeah. MultiByteToWideChar() doesn't exist in Windows Mobile 2003 >_<
EDIT2: You forgot to add the AutoHotkey executable to the CAB file!

_________________
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  
 Post subject:
PostPosted: November 11th, 2009, 8:51 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
fincs wrote:
EDIT2: You forgot to add the AutoHotkey executable to the CAB file!

Oops, thank you for reporting. I've reuploaded the file :oops:
Ciao
Micha

Edit: Bug found in dllcall. Strings must be converted (unicode<->ascii). Working on it


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2009, 10:12 pm 
Online
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
Ah, now the script works (after some MultiByteToWideChar tweaking) :D
Just one thing: when the script can't find a DLL function it crashes (and even hides the tray icon) but stays resident in memory. Is that normal?

_________________
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  
 Post subject:
PostPosted: November 11th, 2009, 10:38 pm 
fincs wrote:
Ah, now the script works (after some MultiByteToWideChar tweaking) :D
Just one thing: when the script can't find a DLL function it crashes (and even hides the tray icon) but stays resident in memory. Is that normal?

Hi, I'll have a look at this, too
Ciao
Micha


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 12th, 2009, 10:29 am 
Thanks for great tool!
Still, as I can confirm a number of AHK's functions working I just can't execute any program using "Run" (which is documented as "working"). I've tried with just the executable name from the same directory, path with backslashes, path with slashes - I always receive ErrorLevel 0 but nothing happens... What should I check/fix?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 12th, 2009, 6:50 pm 
woj wrote:
Thanks for great tool!
Still, as I can confirm a number of AHK's functions working I just can't execute any program using "Run" (which is documented as "working"). I've tried with just the executable name from the same directory, path with backslashes, path with slashes - I always receive ErrorLevel 0 but nothing happens... What should I check/fix?

Hi,
I've tested
Code:
 run, calendar.exe
  sleep, 1000 
  MsgBox, calendar started 
  run, \program files\AutohotkeyCE\ahk2exe.exe 
  sleep, 1000 
  MsgBox, AHKCompiler started 
  run, fantasy.wma 
  sleep, 1000 
  msgbox, playing fantasy.wma

and it worked well.
Please give me an example what you have tried so far
Ciao
Micha


Report this post
Top
  
Reply with quote  
PostPosted: November 12th, 2009, 9:25 pm 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
"Some functions are not working, because there's no API for WindowsCE."

I'm not sure if this is relevant anymore but:

http://support.microsoft.com/kb/209014
http://msdn.microsoft.com/en-us/library/ms925466.aspx


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2009, 10:33 am 
As I have no calendar I try with
Code:
IfExist \windows\pword.exe
{
    MsgBox Pocket Word exists!
}
and get the confirmation.

What is starting Pocket Word properly:
Code:
Send {LWin}
WinWaitActive,XXXXX,,1
Send r
WinWaitActive,XXXXX,,1
Send {ASC 92}windows{ASC 92}pword.exe{Enter}


What is showing messagebox with 0 and nothing more happens:
Code:
Run,\windows\pword.exe,,UseErrorLevel
MsgBox %ErrorLevel%


Perhaps I miss something in the custom system image but what should I ask to be added?


Report this post
Top
  
Reply with quote  
PostPosted: November 13th, 2009, 12:16 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
randallf wrote:
"Some functions are not working, because there's no API for WindowsCE."

I'm not sure if this is relevant anymore but:

http://support.microsoft.com/kb/209014
http://msdn.microsoft.com/en-us/library/ms925466.aspx

Hi, sorry if this is missunderstandable,
there is of course an api, but some api-calls just do not exist on CE.
Ciao
Micha


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2009, 12:50 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
@woj
which version do you use. Old versions aren't working well.
I'll have a look at it at home.

Edit: pword can be started with your code. V31 should be working. I'll upload V32 the next few days with more bigfixes.
Ciao
Micha


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2009, 9:29 am 
I've been using V31, the latest at the time.
Now with V32 'the Run is running' ;-)
Thanks a lot! That's great to have a scripting engine on CE!

I've a different question, perhaps I am not the only one experiencing that kind of problem: I have to use sleeps in scripts instead of 'WinWaitActive' because the latter SOMETIMES seems "hanging" even though there is a window visible and active. Using the "Open" context menu I can confirm waiting on 'WinWaitActive'... Can it be the Input Panel coming in the way? I've been ignoring it flashing visible/invisible during the script... Can I do something?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2009, 12:52 pm 
woj wrote:
...I have to use sleeps in scripts instead of 'WinWaitActive' because the latter SOMETIMES seems "hanging"...

Hi, WinWaitactive waits till the window is in foreground. It does not try to bring it to the front.
Perhaps you can try WinActive:
Quote:
Six attempts will be made to activate the target window over the course of 60ms. Thus, it is usually unnecessary to follow WinActivate with WinWaitActive.

Does the script continue running if you manually activates the window?
Perhaps it's still a bug in the function or the window title does not fully match. Can you give an example?


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, Bing [Bot], Google Feedfetcher, iDrug and 57 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