Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Miniwindows
➜ dragmove is nil
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Whininguser
Canada (30 posts) Bio
|
| Date
| Thu 05 Dec 2013 03:16 PM (UTC) Amended on Thu 05 Dec 2013 06:31 PM (UTC) by Whininguser
|
| Message
| Edit:
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!
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Fri 06 Dec 2013 01:49 AM (UTC) |
| Message
| According to the original post about it, it is designed to work inside plugins:
http://www.gammon.com.au/forum/bbshowpost.php?id=9594
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 | | 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.
14,858 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top