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 ➜ General ➜ Setting background image

Setting background image

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


Posted by Turncoat   (2 posts)  Bio
Date Sat 30 Jul 2011 03:28 AM (UTC)

Amended on Sat 30 Jul 2011 03:29 AM (UTC) by Turncoat

Message
Using the function SetForegroundImage(), I tried doing the following in the instant run command box:


SetBackgroundImage ("greybg.jpg", 13)


This did not work, so I searched a bit and found a previous forum post regarding it, so I tried...


check (SetBackgroundImage (GetInfo (66) .. "greybg.jpg", 13))


It gave the following error:


Error number: 0
Event:        Run-time error
Description:  [string "Immediate"]:1: General problem with a parameter to a script call

stack traceback:

	[C]: in function 'error'

	[string "Check function"]:1: in function 'check'

	[string "Immediate"]:1: in main chunk
Called by:    Immediate execution


I figure this may be a problem with me trying to run it in the immediate window (ctrl+i). If that is the case, where/how should I add/run it?

Thanks for any assistance regarding this!
Top

Posted by Ircria   (24 posts)  Bio
Date Reply #1 on Sat 30 Jul 2011 05:19 AM (UTC)
Message
Checking the return call page(http://mushclient.com/scripts/function.php?action=errors), your error seems to be eBadParameter, which with that function, is returned for a bad filetype or a filepath with less than five characters. The documentation on said function(http://mushclient.com/scripts/function.php?name=SetBackgroundImage) states that the supported filetypes are .BMP and .PNG. You can try using some sort of image software (MS Paint is always good) to convert your image to one of those formats.
Top

Posted by Turncoat   (2 posts)  Bio
Date Reply #2 on Sat 30 Jul 2011 05:28 AM (UTC)
Message
I feel so stupid for it to be something that simple. Ircria, thank you very very very much, it was the file type that needed fixed (converted it with mspaint), and now it is perfectly fine. Thank you again!
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,312 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.