Jump to content

Recommended Posts

Posted

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

Posted

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?
Posted

Here is the code see attachment

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

You need to use GUICtrlSetImage :)

Posted

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")

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
×
×
  • Create New...