Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

;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.
Posted

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. ;)

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

Posted

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

Posted

ok, noted.

actually i have created a button to refresh, so once the refresh button is clicked the picture should refresh.

thanks. :whistle:

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

Posted

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.

Posted

;)

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.

Posted

;)

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.

 

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
  • Recently Browsing   0 members

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