ID:159825
 
The title says it all. I have tried
usr << "[winget(usr,"mainwindow.button","image")]"
to see if I even have the right params but evidently I do not. I tried image-file, file-image, imagefile, fileimage, file, etc. What did you guys name the param for changing an image?

According to
http://www.byond.com/members/DreamMakers/ forum?id=661703&view=1

"image" is the right param but it is not. Is there a place I can go to get a list of all of the param names?

I appreciate any help
I'm going to assume that it isn't working for you because of how you are trying to apply the image...

Read this thread and see if it helps you at all:
http://www.byond.com/members/DreamMakers/ forum?id=618033&view=1
"image" is the correct param, my guess is you got one of your ID's wrong. Do you have a window with the ID "mainwindow" and a button on it with the ID "button"?
The skin reference is usually pretty helpful.
In response to AJX
I just found out that winget does work but I have to put sleep(10) to give it time or else it will not recognize that mainwindow.button has an image on it even though the change was made in the custom interface.

winget(usr,"mainwindow.button","image")

Unfortunately, winset still does not work even with extremely long periods of time. Is this the right syntax?

winset(usr,"mainwindow.button","image='blahblah.jpg'")

I appreciate any advice you can give
In response to Kaiochao
Thanks for the help but for some reason
winset(usr,"mainwindow.button","image=blahblah.jpg")

still does not do anything.

Additional Information
First this is being done in the Login section of my code.
Second mainwindow.button is the correct name
Third assume blahblah is the name of an actual jpg that is in the working folder
Fourth assume it is not a timing issue. I have accounted for time and this line of code is still ignored

Given that information what could be the possible reasons for this line of code not to work?

I appreciate any help you can give me
In response to Snakelinux
Give this a try:
winset(usr,"mainwindow.button","image=['blahblah.jpg']")
In response to tenkuu
tenkuu wrote:
Give this a try:
> winset(usr,"mainwindow.button","image=['blahblah.jpg']")
>


I think that's on the right track, but what you probably want is:

winset(usr,"mainwindow.button","image='\ref['blahblah.jpg']'")


If blahblah.jpg is already in your resources, then this will work just fine:

winset(usr,"mainwindow.button","image='blahblah.jpg'")


I think the missing ingredient all along here was probably the single quotes.

Lummox JR
In response to Lummox JR
Thank you so much Lummox JR. I tested it and it works.

Thanks again