speedi Posted May 18, 2008 Share Posted May 18, 2008 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! Link to comment Share on other sites More sharing options...
zackrspv Posted May 18, 2008 Share Posted May 18, 2008 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ë 맧ëñ§ë øƒ !ïƒë. Link to comment Share on other sites More sharing options...
Hiyoal Posted May 19, 2008 Share Posted May 19, 2008 Why not make a splash screen with the picture?! Link to comment Share on other sites More sharing options...
zackrspv Posted May 19, 2008 Share Posted May 19, 2008 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ë 맧ëñ§ë øƒ !ïƒë. Link to comment Share on other sites More sharing options...
speedi Posted May 19, 2008 Author Share Posted May 19, 2008 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.. 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