AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AHK does not terminate under WinME

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
jamestr



Joined: 05 Apr 2004
Posts: 96
Location: Connecticut USA

PostPosted: Sat May 15, 2004 10:36 pm    Post subject: AHK does not terminate under WinME Reply with quote

I was testing 1.0.10 under winme
and noticed the following:

selecting 'reload script' from the tray icon, starts a New instance of ahk, and the old instance seems to hang.

selecting exit from the try icon causes the tray icon to disappear, but the ahk instance seems to hang.

wintop.exe indicated i had 5 instances of ahk running after a few exits and reloads.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun May 16, 2004 4:48 am    Post subject: Reply with quote

Does this happen with all scripts or just one in particular? It doesn't happen on Win98se and since Me is so similar to 98, it's a bit baffling.

If anyone else has WinME, perhaps you can test the Reload and Exit menu items in the tray to see if this is a single-computer issue or something more widespread.
Back to top
View user's profile Send private message Send e-mail
jamestr



Joined: 05 Apr 2004
Posts: 96
Location: Connecticut USA

PostPosted: Sun May 16, 2004 5:26 pm    Post subject: Reply with quote

Ah ha!

SoundPlay, seems to be the culprit.

if i play a sound and then do a trayicon reload, the original instance hangs.

if i dont play the sound its ok.




+q::
send zzzzzyyyyyy
SoundPlay, e:\awav\.short.wav
return

^q::
send 3333333344444
SoundPlay, e:\awav\.boing.wav
return
Back to top
View user's profile Send private message
Larrydalooza
Guest





PostPosted: Sun May 16, 2004 7:41 pm    Post subject: SoundPlay Reply with quote

I think I had to add some clean up for SoundPlay in AutoIt3 in the "exit cleanup" function. There is an open handle that needs closing. It is a call to mciExecString or some crap. Lar.
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Mon May 17, 2004 3:03 am    Post subject: Reply with quote

Thanks both of you for the info. I should be able to resolve this now.
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu May 20, 2004 6:31 pm    Post subject: Reply with quote

I think it only hangs under Win9x, so I couldn't test it out on my system. If you get a chance, maybe re-download the latest version (which has the fix) and see if the problem is gone.

http://www.autohotkey.com/download/

Thanks,
Chris
Back to top
View user's profile Send private message Send e-mail
jamestr



Joined: 05 Apr 2004
Posts: 96
Location: Connecticut USA

PostPosted: Thu May 20, 2004 10:39 pm    Post subject: Reply with quote

the version i d/l today has a 5/14 mod date.

problem still is the previous instance hangs after playing sound and performing a reload.

maybe hang isnt the right word, wintop shows it using 30% of cpu.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu May 20, 2004 10:56 pm    Post subject: Reply with quote

You must have gotten it before the update. The mod date should be today (5/20) on all the major files in the release.
Back to top
View user's profile Send private message Send e-mail
jamestr



Joined: 05 Apr 2004
Posts: 96
Location: Connecticut USA

PostPosted: Fri May 21, 2004 5:16 am    Post subject: Reply with quote

This script now runs fine, under winme. Thanks for the cure!



Code:
+q::
send zzzzzyyyyyy
SoundPlay, e:\awav\.short.wav
return

^q::
send 3333333344444
SoundPlay, e:\awav\.boing.wav
return
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri May 21, 2004 5:32 am    Post subject: Reply with quote

Thanks for verifying it, and thanks to Larry for pointing out the exact trouble spot.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group