Jump to content

refresh picture


Recommended Posts

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

;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

thanks 4gotn1 & jokke, i hope its not a joke! :whistle: (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

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. :whistle:

New to script...But getting the hang of it.

Link to comment
Share on other sites

;)

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!

:whistle:

New to script...But getting the hang of it.

Link to comment
Share on other sites

;)

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!

:whistle:

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...