Jump to content
Sign in to follow this  
dantheman

dynamic size of image

Recommended Posts

dantheman

How can i get the height and width of a picture(s) so that I can pass it to SplashImageOn and have the size be dynamically changed?

For $i = 1 to $updates Step 1
    InetGet($arrIMG[$i], "c:\logo" & $i &".jpg")
    SplashImageOn("Splash Screen", "c:\logo" & $i &".jpg",200,300,-1,-1,1)
    Sleep(3000)
    SplashOff()
Next

Share this post


Link to post
Share on other sites
Helge

Check out LazyCat's fileman http://www.autoitscript.com/fileman/users/Lazycat/udfs.html..

Share this post


Link to post
Share on other sites
dantheman

Check out LazyCat's fileman http://www.autoitscript.com/fileman/users/Lazycat/udfs.html..

Thanks. I appreciate it.

Share this post


Link to post
Share on other sites
dantheman

http://www.autoitscript.com/fileman/users/Lazycat/files/image_get_size.zip

I can't seem to download the file. All the other udfs for lazycat I can download. Can I download this anywhere else? Thanks.

Share this post


Link to post
Share on other sites
Helge

Try to download the "Images info reader", which I think you can use for your task.

http://www.autoitscript.com/fileman/users/Lazycat/files/image_get_info.zip

It's also newer than "Images size reader"...

Share this post


Link to post
Share on other sites
dantheman

Try to download the "Images info reader", which I think you can use for your task.

http://www.autoitscript.com/fileman/users/Lazycat/files/image_get_info.zip

It's also newer than "Images size reader"...

Excellent. One more question, is there any way to make a splash image linkable to a website (so when it popped up you could click and go wherever)? Or if not, is there anyway to do this in a GUI? Thanks.

Share this post


Link to post
Share on other sites
dantheman

Excellent. One more question, is there any way to make a splash image linkable to a website (so when it popped up you could click and go wherever)? Or if not, is there anyway to do this in a GUI? Thanks.

Any ideas? Yes/No.. maybe so?

Share this post


Link to post
Share on other sites
Helge

Sure. Make a GUI with the picture in it. Then you make a timeout-system using TimerInit and

TimerDiff, and in the script's main-loop you check if GUIGetMsg equals the picture-control.

If it does you run the link.

If you haven't touched the GUI-part of AutoIt just check out some simple examples in the help-

file or here on the forum, and see what you end up with. If you have any problems with some

part just come back here in this topic and ask.. Good luck.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.