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

Gammon Software Solutions forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Miniwindows
. . -> [Subject]  Error when trying to create miniwindows

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Error when trying to create miniwindows
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Mon 02 Mar 2009 05:13 AM (UTC)  quote  ]
Message
In what way is it not working? If this is related to your other post about the experience bar, try what I suggested there.

- Nick Gammon

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

Posted by Trayn318   (5 posts)  [Biography] bio
Date Mon 02 Mar 2009 03:29 AM (UTC)  quote  ]
Message
I can't get mini windows to work? is there a tab or something I need to click or should I just delete my mushclient and reload it from scratch?
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Wed 06 Aug 2008 03:46 PM (UTC)  quote  ]
Message
Oh... if you're just sleeping the script, then yes, I think that that will cause the whole client to block until the call to sleep ends. I think that normally what you do is to create a timer that, after the desired time, calls the script again. Nick has several examples of how to do this with coroutines on the forums; I don't remember the links or post titles off-hand, but I think one of the keywords is "pausing".

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Grek   Sweden  (12 posts)  [Biography] bio
Date Wed 06 Aug 2008 03:43 PM (UTC)  quote  ]
Message
I can't say for sure anymore, been a while, but I recall having problems using time.sleep().

Maybe I forgot to thread it though. :)
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Wed 06 Aug 2008 03:30 PM (UTC)  quote  ]
Message
Quote:
I did update to the latest version available on the Downloads page before posting - would be good if the link somehow always pointed to the latest version available. :)


See the MUSHclient FAQ, item 4 :-)
http://www.gammon.com.au/forum/?id=7794

Part of the reasoning is that people who see forum announcements will see the "test" versions, whereas people who aren't interested in following the latest-and-greatest will just go to the download page.

Quote:
Another question, does lua have the same issues with threading as python?

Well, I'm not sure which issues Python has with threading. :) Lua does not natively support concurrent multi-threading, although it does have something called cooperative multi-threading ("coroutines" in its vocabulary). What kind of issues are you running into?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Grek   Sweden  (12 posts)  [Biography] bio
Date Wed 06 Aug 2008 03:18 PM (UTC)  quote  ]

Amended on Wed 06 Aug 2008 03:26 PM (UTC) by Grek

Message
Thanks David, I was just about to start converting 300 lines of python to lua.

I did update to the latest version available on the Downloads page before posting - would be good if the link somehow always pointed to the latest version available. :)

Edit:

Another question, does lua have the same issues with threading as python?
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Wed 06 Aug 2008 03:14 PM (UTC)  quote  ]
Message
You're using a version before miniwindows were introduced... maybe you should try upgrading?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Grek   Sweden  (12 posts)  [Biography] bio
Date Wed 06 Aug 2008 02:53 PM (UTC)  quote  ]

Amended on Wed 06 Aug 2008 03:03 PM (UTC) by Grek

Message
MUSHClient v4.27

Line in error:
world.WindowCreate("test", 100, 100, 300, 300, 12, 0, 16777215)
Script error
World: IoM
Execution of line 1 column 0
Immediate execution
Traceback (most recent call last):
File "<Script Block 50>", line 1, in <module>
world.WindowCreate("test", 100, 100, 300, 300, 12, 0, world.ColourNameToRGB("white"))
File "L:\Programmering\Python25\Lib\site-packages\win32comext\axscript\client\pyscript.py", line 142, in __getattr__
return getattr(self._scriptItem_.dispatchContainer,attr)
File "L:\Programmering\Python25\Lib\site-packages\win32com\client\dynamic.py", line 500, in __getattr__
raise AttributeError, "%s.%s" % (self._username_, attr)
AttributeError: world.WindowCreate

Line in error:
world.WindowCreate("test", 100, 100, 300, 300, 12, 0, world.ColourNameToRGB("white"))
[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.


2,438 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]