miketh2005 Posted June 18, 2010 Share Posted June 18, 2010 Hi. I have this code: #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <IE.au3> _IEErrorHandlerRegister() $oIE = _IECreateEmbedded() #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 923, 877, 206, 31) $GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 939, 892) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd _IENavigate($oIE, "http://www.cellsolid.com/files/template.png") But, it's not working, it's just showing a blank screen, yet the URL is correct. What's wrong? I'm trying to embed a .png into a GUI, because GUICtrlCreatePic doesn't support PNG, and I need the image to be as clear as possible. Thanks alot. Link to comment Share on other sites More sharing options...
Mobius Posted June 18, 2010 Share Posted June 18, 2010 (edited) ~ Edited March 2, 2011 by Mobius Link to comment Share on other sites More sharing options...
miketh2005 Posted June 18, 2010 Author Share Posted June 18, 2010 Thanks alot! But, quicktime is trying to load the image. Why is quicktime appearing? I just want it to show the image :/ Thanks Link to comment Share on other sites More sharing options...
l3ill Posted June 18, 2010 Share Posted June 18, 2010 (edited) Quicktime is probably your default *.png viewer. -I have to assume that it is having problems because of the png ending. I tried .com, .net, and .htm and all worked fine. Edit: Did you get it working? I have been playin around with it and couldn't get it to work until I added the debugger for line 12... for some reason that made it work: #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <IE.au3> _IEErrorHandlerRegister() $oIE = _IECreateEmbedded() $Form1 = GUICreate("Form1", 923, 877, 206, 31) $GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 939, 892) _IENavigate($oIE, "[url="http://www.cellsolid.com/files/template.png"]http://www.cellsolid.com/files/template.png[/url]") ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : _IENavigate($oIE, "[url="http://www.cellsolid.com/files/template.png"]http://www.cellsolid.com/files/template.png[/url]") = ' & _IENavigate($oIE, "[url="http://www.cellsolid.com/files/template.png"]http://www.cellsolid.com/files/template.png[/url]") & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console GUISetState() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Edited June 18, 2010 by billo My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example     Link to comment Share on other sites More sharing options...
l3ill Posted June 18, 2010 Share Posted June 18, 2010 careful when using the above code, the forum added url tags. My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example     Link to comment Share on other sites More sharing options...
miketh2005 Posted June 19, 2010 Author Share Posted June 19, 2010 No, quicktime isn't default for viewing .pngs Yes, that worked, but there is a white border I want the picture to look like it's the GUI. I want to replicate the MSN log viewer's window. Thanks alot! Link to comment Share on other sites More sharing options...
miketh2005 Posted June 19, 2010 Author Share Posted June 19, 2010 Bump. Please help Thanks. Link to comment Share on other sites More sharing options...
miketh2005 Posted June 20, 2010 Author Share Posted June 20, 2010 Bump. Can't anyone help meh Link to comment Share on other sites More sharing options...
miketh2005 Posted June 20, 2010 Author Share Posted June 20, 2010 Ok, I just converted my .png to a .jpg, it didn't lose as much quality as I thought it would. Thanks. 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