Jump to content
Sign in to follow this  
speedi

how do I open (display) a graphic file (.jpg)

Recommended Posts

speedi

What command do I use to open a graphic file like mypicture.jpg???

I just want to display it for a short while then close it....

I did a search on this and was unable to find help... Thanks!

Share this post


Link to post
Share on other sites
zackrspv

What command do I use to open a graphic file like mypicture.jpg???

I just want to display it for a short while then close it....

I did a search on this and was unable to find help... Thanks!

So, you just want to open it:

ShellExecute(@MyDocumentsDir&"\My Pictures\testa.JPG")

Or, do you want to embed it? Ie, create a UI, with the picture as the background, and then close it?

Which do you need to do?


-_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë.

Share this post


Link to post
Share on other sites
Hiyoal

Why not make a splash screen with the picture?! :)

Share this post


Link to post
Share on other sites
zackrspv

Why not make a splash screen with the picture?! :)

See, I'm not really a fan of splash screens for this type of useage; but in reality, using a simple GUI, one can do that too:

$img = @ScriptDir & "\FILE.jpg"
$splashGUI = GUICreate("", 500, 375, Default, Default, $WS_POPUPWINDOW)
$splashPIC = GUICtrlCreatePic($img, 0, 0, 500, 375)
GUICtrlSetState($splashPIC, $GUI_DISABLE)

Secondly, you can use GUICTRLSETIMAGE() to constantly update the image too.

It all really depends on what the OP wants to do tho.


-_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë.

Share this post


Link to post
Share on other sites
speedi

So, you just want to open it:

ShellExecute(@MyDocumentsDir&"\My Pictures\testa.JPG")

Or, do you want to embed it? Ie, create a UI, with the picture as the background, and then close it?

Which do you need to do?

Perfect - that is exactly what I wanted... Thanks! It is part of a routine to test the battery duration for an updated and larger battery on my notebook..

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.