Sign in to follow this  
Followers 0
Bertman

Refresh Picture And/or Gui

5 posts in this topic

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



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

#3 ·  Posted (edited)

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

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

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  
Followers 0