Bertman Posted May 16, 2006 Share Posted May 16, 2006 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 Link to comment Share on other sites More sharing options...
jpm Posted May 16, 2006 Share Posted May 16, 2006 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 ?Bertdifficult to help you without the script. how do you update the picture? Link to comment Share on other sites More sharing options...
Bertman Posted May 16, 2006 Author Share Posted May 16, 2006 (edited) Here is the code see attachment Picture.au3 is only the code Picture.rar is code + pictures (so you can test)Pictures.rarPicture.au3 Edited May 16, 2006 by Bertman Link to comment Share on other sites More sharing options...
jpm Posted May 16, 2006 Share Posted May 16, 2006 Here is the code see attachmentYour script is always creating a new image when you want to update.You need to use GUICtrlSetImage Link to comment Share on other sites More sharing options...
Bertman Posted May 16, 2006 Author Share Posted May 16, 2006 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") Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now