[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Miniwindows
. . -> [Subject]  dragmove is nil
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

dragmove is nil

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Whininguser   Canada  (30 posts)  [Biography] bio
Date Thu 05 Dec 2013 03:16 PM (UTC)

Amended on Thu 05 Dec 2013 06:31 PM (UTC) by Whininguser

The problem was gone after I put the code in a plugin (which contained nothing else), but I'd love to know why the code below would generate error messages when executed from a script file.


Here's my entire code for a basic miniwindow. It's not part of any plugin. Just some test code in my script file.

require "movewindow"

win = "w1"

WindowCreate(win, 1, 1, 500, 350, 0, 0, ColourNameToRGB("black"))

windowinfo = movewindow.install (win, miniwin.pos_top_right, miniwin.create_absolute_location, false, nil, {mouseup=MouseUp, mousedown=LeftClickOnly, dragmove=LeftClickOnly, dragrelease=LeftClickOnly},{x=1, y=1})

movewindow.add_drag_handler(win, 0, 0, 0, 0)			   

WindowShow(win, true)

If you drag this window while receiving any data from the mud, you'd get the following message in a popup window:

Cannot find the function
'mw_w1_movewindow_info.dragmove' - item 'dragmove' is nil

When you click "OK", the popup would come up again right away until you stop getting data from the mud.

I'm using the mush package on aard's homepage.

Any ideas on how to fix this? Thanks!
[Go to top] top

Posted by Nick Gammon   Australia  (21,607 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Fri 06 Dec 2013 01:49 AM (UTC)
According to the original post about it, it is designed to work inside plugins:


I'm not sure the exact reason why yours isn't working, I haven't worked on that for a while, but some stuff was intended to be only for plugins.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Whininguser   Canada  (30 posts)  [Biography] bio
Date Reply #2 on Sat 07 Dec 2013 02:52 AM (UTC)
I see. Thanks!
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]