ConsultingJoe Posted November 6, 2006 Posted November 6, 2006 the gui should look like this. <center><object archive="http://www.hanengcharts.com/HanengCharts3.jar" code="HanengCharts.class" height="200" width="300"> <param name="text_2" value="Fund Raising"> <param name="gridstop" value="1000"> <param name="text_1" value="Programs"> <param name="gridstart" value="1000"> <param name="color_shadow" value="#00FF00"> <param name="color_grid" value="#111111"> <param name="charttype" value="3DPie"> <param name="color_4" value="#C6E7DE"> <param name="color_3" value="#8C007B"> <param name="color_2" value="#FFFFC6"> <param name="value_4" value="10"> <param name="color_1" value="#31B5D6"> <param name="value_3" value="10"> <param name="licensekey" value="NY2BSR259Mx16XFYVNz8NU"> <param name="value_2" value="70"> <param name="value_1" value="10"> <param name="text_4" value="Other Expenses"> <param name="text_3" value="Administrative"> </object> </center> my au3 script doesnt work, I think it is an IE problem with embedding #include <IE.au3> #include <GUIConstants.au3> $Form1 = GUICreate("AForm1", 633, 454, 193, 115) Pie( 50, 50, 300, 200, 1000, "#FFFFFF", 25, "#FF00FF", "Item 1", 75, "#00FF00", "Item 2" ) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func Pie( $left, $top, $width, $height, $pieamount, $colorshadow, $item1value, $item1color, $item1name, $item2value, $item2color, $item2name, $item3value=-1, $item3color=-1, $item3name=-1, $item4value=-1, $item4color=-1, $item4name=-1 ) Local $html = '<center><object archive="http://www.hanengcharts.com/HanengCharts3.jar" code="HanengCharts.class" height="' & $height & '" width="' & $width & '">' $html &= '<param name="value_1" value="' & $item1value & '"><param name="text_1" value="' & $item1name & '"><param name="color_1" value="' & $item1color & '">' $html &= '<param name="value_2" value="' & $item2value & '"><param name="text_2" value="' & $item2name & '"><param name="color_2" value="' & $item2color & '">' If $item3value <> -1 And $item3color <> -1 And $item3name <> -1 Then $html &= '<param name="value_3" value="' & $item3value & '"><param name="text_3" value="' & $item3name & '"><param name="color_3" value="' & $item3color & '">' EndIf If $item4value <> -1 And $item4color <> -1 And $item4name <> -1 Then $html &= '<param name="value_4" value="' & $item4value & '"><param name="text_4" value="' & $item4name & '"><param name="color_4" value="' & $item4color & '">' EndIf $html &= '<param name="charttype" value="pie"><param name="licensekey" value="GHAM7uu58R5AXGyULtP2tMXPSVC66"><param name="color_shadow" value="' & $colorshadow & '">' $html &= ' <param name="gridstart" value="' & $pieamount & '"><param name="color_grid" value="#000000"></object></center>' $IE = _IECreateEmbedded( ) ConsoleWrite( $html ) $GUIActiveX = GUICtrlCreateObj( $IE, $left, $top, $width, $height ) GUISetState() _IENavigate ($IE, "about:blank") _IEBodyWriteHTML( $IE, $html ) Return $GUIActiveX EndFunc Thanks Check out ConsultingJoe.com
DaleHohm Posted November 6, 2006 Posted November 6, 2006 Sorry, please provide a more detailed description of what this is supposed to do and what doesn't work. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
ConsultingJoe Posted November 6, 2006 Author Posted November 6, 2006 Sorry, please provide a more detailed description of what this is supposed to do and what doesn't work.Dalewell the html code at the top is what its supposed to do. if you copy and paste it, it will work in a browser. but when you use the same could when embedding in the gui it seems like it is unrecognized.thanks Check out ConsultingJoe.com
ConsultingJoe Posted November 6, 2006 Author Posted November 6, 2006 did that help? Check out ConsultingJoe.com
DaleHohm Posted November 6, 2006 Posted November 6, 2006 (edited) did that help?well, sort of.First, can you please make your signature smaller and narrower so that it doesn't force me to scroll horizontally to read every one of your posts? (I use a tablet PC in portrait mode).There was an issue discussed a while back with Java and using about:blank that causes problems with the Java VM. Try writing your HTML to a local file and displaying that in your embedded object instead of using about:blank.Daleedit: precision Edited November 6, 2006 by DaleHohm Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
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