[Solved] Dragging Msgbox causes Win 7 to lockup

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
abrahad
Posts: 5
Joined: 02 Dec 2015, 05:47

[Solved] Dragging Msgbox causes Win 7 to lockup

02 Dec 2015, 05:59

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.
Last edited by abrahad on 04 Dec 2015, 13:27, edited 1 time in total.
grant
Posts: 323
Joined: 14 Oct 2015, 17:27

Re: Dragging Msgbox causes Win 7 to lockup

02 Dec 2015, 06:21

Works for me. Also Windows 7
abrahad
Posts: 5
Joined: 02 Dec 2015, 05:47

Re: Dragging Msgbox causes Win 7 to lockup

02 Dec 2015, 12:28

The empty "msgbox" works ok. That is I can drag it without problems.
abrahad
Posts: 5
Joined: 02 Dec 2015, 05:47

Re: Dragging Msgbox causes Win 7 to lockup

02 Dec 2015, 13:46

Update: It works ok if I hold down the SHIFT key before pressing the left mouse button.
abrahad
Posts: 5
Joined: 02 Dec 2015, 05:47

Re: Dragging Msgbox causes Win 7 to lockup

04 Dec 2015, 13:23

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.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], macromint, peter_ahk and 342 guests