Register forum user name Search FAQ

Gammon Forum

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 ➜ Tips and tricks ➜ Image in Miniwindow

Image in Miniwindow

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


Posted by WizardsEye   (24 posts)  Bio
Date Fri 20 Feb 2009 09:25 AM (UTC)
Message
I wanted to personalize my things a bit by putting an image for each of my characters in the upper right hand screen. Here's what I tried using the Cntr+I

WindowLoadImage win, "im1", "C:\Program Files\MUSHclient\worlds\New Worlds\lykan.bmp"
WindowDrawImage win, "im", 100, 100, 0, 0, 6, 3

When I try to run it. The following error shows up:

Argument not optional: 'WindowDrawImage'

Am I doing something wrong here?
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 20 Feb 2009 09:06 PM (UTC)
Message
If you look at the documentation for WindowDrawImage it actually takes 11 arguments. You have supplied 8. Hence the error message.


http://www.gammon.com.au/scripts/doc.php?function=WindowDrawImage

However if all you want to do is display a character image, this isn't the easiest way. Images drawn with WindowDrawImage have to be displayed inside a miniwindow, the code to create which, you haven't shown.

See this:

http://www.gammon.com.au/mushclient/mw_other.htm#SetForegroundImage

With a single line of shorter code, you can display an image in the corner.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by WizardsEye   (24 posts)  Bio
Date Reply #2 on Fri 20 Feb 2009 11:47 PM (UTC)
Message
GAH I must be an idiot some days. I was looking at the the images and not seeing the code for it. Just one minor thing I had to do was remove the parenthesis. Apparently the system didn't like it. Thank you for your patience.
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.


16,336 views.

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

Go to topic:           Search the forum


[Go to top] top

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