I have just started to use AHK and am running a very simple script to enter commonly used strings. It includes the following to display a help message:
Numpad9::
MsgBox,
(
0 - LastPass
1 - Email
2 - Postcode
3 - Tel
3M - Mobile
4 - Spotify
5 - VNC to pi
)
Return
This all works well unless I try to drag the displayed message box on screen with the left mouse button. The box is not redrawn in the new position and Windows no longer responds. I have to close the AHK script with Task Manager before I can continue.
I guess I'm missing something somewhere. Any help much appreciated.
[Solved] Dragging Msgbox causes Win 7 to lockup
[Solved] Dragging Msgbox causes Win 7 to lockup
Last edited by abrahad on 04 Dec 2015, 13:27, edited 1 time in total.
Re: Dragging Msgbox causes Win 7 to lockup
Works for me. Also Windows 7
Re: Dragging Msgbox causes Win 7 to lockup
So if you run a script containing just the following, does the window lock up if you try to move it?
Code: Select all
msgbox
Re: Dragging Msgbox causes Win 7 to lockup
The empty "msgbox" works ok. That is I can drag it without problems.
Re: Dragging Msgbox causes Win 7 to lockup
Update: It works ok if I hold down the SHIFT key before pressing the left mouse button.
Re: Dragging Msgbox causes Win 7 to lockup
I am guessing that the code you posted in the OP is just a part of your code - you need to reduce that code down to the bare minimum while still exhibiting the problem, then post that
Re: Dragging Msgbox causes Win 7 to lockup
Fixed! The problem was that the script included mouse debounce code. I've now moved this to a separate script and the problem has gone away.
Who is online
Users browsing this forum: bobstoner289, Google [Bot], peter_ahk, Spawnova and 347 guests