KfirAsulin Posted January 13, 2020 Share Posted January 13, 2020 Hi, I would like to be able to Replace .png file with another in the Gui. Currenly, i am able to display the first .png file in the gui, but unable to make it 'disappear'. Thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2020 Developers Share Posted January 13, 2020 Moved to the appropriate forum, as the AutoIt Example Scripts forum very clearly states: Quote Share your cool AutoIt scripts, UDFs and applications with others. Do not post general support questions here, instead use the AutoIt Help and Support forums. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2020 Developers Share Posted January 13, 2020 What have you tried that doesn't work? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
KfirAsulin Posted January 13, 2020 Author Share Posted January 13, 2020 (edited) I tried _GDIPlus_GraphicsDispose($hCanvas) ....doesnt work. my end goal is to create a button that displays a .png image (so the parts of the button that do not show the .png will not be seen) Edited January 13, 2020 by KfirAsulin Link to comment Share on other sites More sharing options...
Nine Posted January 13, 2020 Share Posted January 13, 2020 (edited) Depends where the images come from. If they all are located on files, then use GUICtrlSetImage() function. Otherwise, show a more substantial snippet of your code than that single line you just posted Edited January 13, 2020 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
KfirAsulin Posted January 14, 2020 Author Share Posted January 14, 2020 Hi everyone, Thanks for the help :) I was able to overcome the issue, and all of the other functions I use the _GDIPlus_GraphicsDispose, _GDIPlus_BitmapCreateFromHBITMAP etc... It turnes out that the .png wasn't saved correctly, but after I fixed it, the file was loaded by autoit, and I was able to replace it with another file. :) 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