kalans Posted February 20, 2012 Share Posted February 20, 2012 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! Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2012 Share Posted February 20, 2012 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. Link to comment Share on other sites More sharing options...
kalans Posted February 20, 2012 Author Share Posted February 20, 2012 The script was compile and then passed over, I also tried using @ScriptDir when installing and it was the same results. Thanks! Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2012 Share Posted February 20, 2012 Can i see your code please. Link to comment Share on other sites More sharing options...
kalans Posted February 22, 2012 Author Share Posted February 22, 2012 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now