| View previous topic :: View next topic |
| Author |
Message |
jamestr
Joined: 05 Apr 2004 Posts: 96 Location: Connecticut USA
|
Posted: Sat May 15, 2004 10:36 pm Post subject: AHK does not terminate under WinME |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sun May 16, 2004 4:48 am Post subject: |
|
|
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 |
|
 |
jamestr
Joined: 05 Apr 2004 Posts: 96 Location: Connecticut USA
|
Posted: Sun May 16, 2004 5:26 pm Post subject: |
|
|
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 |
|
 |
Larrydalooza Guest
|
Posted: Sun May 16, 2004 7:41 pm Post subject: SoundPlay |
|
|
| 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
|
Posted: Mon May 17, 2004 3:03 am Post subject: |
|
|
| Thanks both of you for the info. I should be able to resolve this now. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Thu May 20, 2004 6:31 pm Post subject: |
|
|
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 |
|
 |
jamestr
Joined: 05 Apr 2004 Posts: 96 Location: Connecticut USA
|
Posted: Thu May 20, 2004 10:39 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Thu May 20, 2004 10:56 pm Post subject: |
|
|
| 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 |
|
 |
jamestr
Joined: 05 Apr 2004 Posts: 96 Location: Connecticut USA
|
Posted: Fri May 21, 2004 5:16 am Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri May 21, 2004 5:32 am Post subject: |
|
|
| Thanks for verifying it, and thanks to Larry for pointing out the exact trouble spot. |
|
| Back to top |
|
 |
|