Sign in to follow this  
Followers 0
kalans

Issue with Images

5 posts in this topic

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



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

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

Can i see your code please.

Share this post


Link to post
Share on other sites

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  
Followers 0