Jump to content

Recommended Posts

Posted

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!

Posted

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.
Posted

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!

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
×
×
  • Create New...