Jump to content
Sign in to follow this  
Bertman

Refresh Picture And/or Gui

Recommended Posts

Bertman

Hello,

I have a GUI with a picture on it. This picture will change when you press a button in a random picture. But sometimes you will still see the old picture. When you set you forcus on an other program and drag it over my AutoIt prog, then he will show the pictures.

Is there a way to force this ?

Bert

Share this post


Link to post
Share on other sites
jpm

Hello,

I have a GUI with a picture on it. This picture will change when you press a button in a random picture. But sometimes you will still see the old picture. When you set you forcus on an other program and drag it over my AutoIt prog, then he will show the pictures.

Is there a way to force this ?

Bert

difficult to help you without the script. how do you update the picture?

Share this post


Link to post
Share on other sites
Bertman

Here is the code see attachment

Picture.au3 is only the code

Picture.rar is code + pictures (so you can test)

Pictures.rar

Picture.au3

Edited by Bertman

Share this post


Link to post
Share on other sites
jpm

Here is the code see attachment

Your script is always creating a new image when you want to update.

You need to use GUICtrlSetImage :)

Share this post


Link to post
Share on other sites
Bertman

Oke, so you need I need to do something like this ?

$Pic = GUICtrlCreatePic ( $Img[2], 250, 20, 25, 14 )

GUICtrlSetImage ($Pic, "C:\Test\Image.jpg")

Share this post


Link to post
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
Sign in to follow this  

×