jacky_ckw Posted October 23, 2006 Share Posted October 23, 2006 hi, GuiCtrlCreatePic("test.jpg",50,20,"","") anyone knows how i can refresh a picture i placed in my GUI? i tried refreshing the same location with another picture file but it still shows the previous one... New to script...But getting the hang of it. Link to comment Share on other sites More sharing options...
jvanegmond Posted October 23, 2006 Share Posted October 23, 2006 GUICtrlSetImage github.com/jvanegmond Link to comment Share on other sites More sharing options...
4gotn1 Posted October 23, 2006 Share Posted October 23, 2006 or .. Dim $pic = GuiCtrlCreatePic("test.jpg",50,20,"","") ; ;Anywhere you wanna update the pic just do below like so: GUICtrlSetData($pic, $New_Data) should work too.... Link to comment Share on other sites More sharing options...
jokke Posted October 23, 2006 Share Posted October 23, 2006 ;Picture var. $mypic = GuiCtrlCreatePic("test.jpg",50,20,"","") ;Use this to update $mypic var. GUICtrlSetData($mypic, "test.jpg") UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt. Link to comment Share on other sites More sharing options...
jacky_ckw Posted October 26, 2006 Author Share Posted October 26, 2006 thanks 4gotn1 & jokke, i hope its not a joke! (just kidding) and thanks Manadar too. will try out the GUICtrlSetData code, did not know i can use that to refresh. New to script...But getting the hang of it. Link to comment Share on other sites More sharing options...
Paulie Posted October 26, 2006 Share Posted October 26, 2006 thanks 4gotn1 & jokke, i hope its not a joke! (just kidding) and thanks Manadar too. will try out the GUICtrlSetData code, did not know i can use that to refresh. Note that that that will re-draw the image every time its called (I think) So calling it too frequently could cause flickering Link to comment Share on other sites More sharing options...
jacky_ckw Posted October 26, 2006 Author Share Posted October 26, 2006 ok, noted. actually i have created a button to refresh, so once the refresh button is clicked the picture should refresh. thanks. New to script...But getting the hang of it. Link to comment Share on other sites More sharing options...
jacky_ckw Posted October 26, 2006 Author Share Posted October 26, 2006 is this code able to refresh my picture with another picture? let's say that i wan to change to another picture when i clicked on the button... i tried another filename but it does not refresh to the new picture. New to script...But getting the hang of it. Link to comment Share on other sites More sharing options...
jacky_ckw Posted October 26, 2006 Author Share Posted October 26, 2006 i have thought of a way to change the picture! after i clicked on the button, the new picture shows with this code. GUICtrlSetState($pic,$GUI_HIDE) $pic = GuiCtrlCreatePic("new.jpg",50,20,"","") if anyone has a better way to this, pls let me know. thanks! New to script...But getting the hang of it. Link to comment Share on other sites More sharing options...
GaryFrost Posted October 26, 2006 Share Posted October 26, 2006 i have thought of a way to change the picture! after i clicked on the button, the new picture shows with this code. GUICtrlSetState($pic,$GUI_HIDE) $pic = GuiCtrlCreatePic("new.jpg",50,20,"","") if anyone has a better way to this, pls let me know. thanks! GuiCtrlSetImage 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...
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