Swimming_Bird Posted July 5, 2005 Share Posted July 5, 2005 (edited) Sorry, i looked all over the place and am quite suprised that i was unable to find any information on this. Mainly I'm curious as to how i can incorperate images used in the gui with the compilex exe without having the image extracted to a temporary folder for use. Thx and sorry for the dumb question. Edited July 5, 2005 by Swimming_BIrd Link to comment Share on other sites More sharing options...
w0uter Posted July 5, 2005 Share Posted July 5, 2005 AFAIK the only way to use an image in autoit is to extract it first. would be cool if it was possible though. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Swimming_Bird Posted July 5, 2005 Author Share Posted July 5, 2005 how do you go about making images useable with compiled exes on any machine? Link to comment Share on other sites More sharing options...
GaryFrost Posted July 5, 2005 Share Posted July 5, 2005 For example place near top of script: If @Compiled Then If Not FileExists(@ScriptDir & "\myimage.gif") Then FileInstall( "myimage.gif", @ScriptDir & "\myimage.gif") EndIf SciTE for AutoItDirections for Submitting Standard UDFs  Don't argue with an idiot; people watching may not be able to tell the difference.  Link to comment Share on other sites More sharing options...
Swimming_Bird Posted July 5, 2005 Author Share Posted July 5, 2005 hrm, if i set the destination of the file to a temp directory and the location of the image to be the temp directory would that work? how often/when is the temp folder cleaned? Link to comment Share on other sites More sharing options...
LxP Posted July 5, 2005 Share Posted July 5, 2005 hrm, if i set the destination of the file to a temp directory and the location of the image to be the temp directory would that work?Most definitely -- this is how I handle GUI images in my scripts.how often/when is the temp folder cleaned?It is best practice to delete this file yourself when your script is exiting:local $picPath = @tempDir & "\guiPic.bmp" guiCtrlCreatePic($picPath, ...) ... fileDelete($picPath)Regards,Alex Peters Link to comment Share on other sites More sharing options...
Swimming_Bird Posted July 5, 2005 Author Share Posted July 5, 2005 thanks for the help 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