Jump to content
Sign in to follow this  
kalans

Issue with Images

Recommended Posts

kalans

Hello, I have an image added to my script and it works fine compiled or not. But when I use it on a different computer, the image does not display. I have the image as below:

FileInstall("C:\Users\User\Desktop\src\normal.bmp", @TempDir & "\normal.bmp", 1)
FileInstall("C:\Users\User\Desktop\src\active.bmp", @TempDir & "\active.bmp", 1)

And it is refrenced below in the code as:

GUICtrlSetImage($varhere, @TempDir& "\normal.bmp")
GUICtrlCreatePic(@TempDir & "\active.bmp", 0, 0, 40, 25)

Images and more code will be provided if requested, thanks!

Share this post


Link to post
Share on other sites
Aipion

Hello, I have an image added to my script and it works fine compiled or not. But when I use it on a different computer, the image does not display. I have the image as below:

FileInstall("C:UsersUserDesktopsrcnormal.bmp", @TempDir & "normal.bmp", 1)
FileInstall("C:UsersUserDesktopsrcactive.bmp", @TempDir & "active.bmp", 1)

And it is refrenced below in the code as:

GUICtrlSetImage($varhere, @TempDir& "normal.bmp")
GUICtrlCreatePic(@TempDir & "active.bmp", 0, 0, 40, 25)

Images and more code will be provided if requested, thanks!

Before you tried it on other computer did you compile the script then past it there.

Share this post


Link to post
Share on other sites
kalans

The script was compile and then passed over, I also tried using @ScriptDir when installing and it was the same results. Thanks!

Share this post


Link to post
Share on other sites
kalans

For whatever reason, I had @ScriptDir for when I called the images instead of @TempDir which is where it was stored for program use...Fixed now Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.