moocher Posted October 30, 2006 Posted October 30, 2006 I got a homepage which launches an applet The html on the page are <html> <head> <title>Tid (reg./godkendelse)</title> <meta name="Microsoft Theme" content="none, default"> <meta name="Microsoft Border" content="none, default"> </head> <body> <p> <object classid="clsid:CAFEEFAC-0013-0001-0001-ABCDEFFEDCBA" width="0" height="0" codebase> <param name="code" value="jarcache.Main"> <param name="archive" value="jarcache.jar"> <param name="codebase" value="http://ptas.tdk.dk:7915"> <param name="configuration" value="config.txt"> <param name="type" value="application/x-java-applet;version=1.2.2"> <param name="MAYSCRIPT" value="true"><embed MAYSCRIPT="true"><noembed>No JDK 1.2.2 support for APPLET! </noembed> No JDK 1.2.2 support for APPLET!! </object> </body> </html> <script Language="Javascript"> function getAnummer(){ return "ÈCcBB";} </script> What i want to is to get a handle or something so i can interact with the applet.. Right now I'm using the WinWaitActive and a bunch of tabs (The applet contains some form I need to fill)
Valuater Posted October 30, 2006 Posted October 30, 2006 IE.au3 should do the trick see help for use, the bottom of the help page has some great examples Also, Welcome to Autoit 1-2-3 has 15 IE.au3 examples 8)
moocher Posted October 30, 2006 Author Posted October 30, 2006 Can you give me a hint which of them i should look into I think I tried em all, but really cant see to get the handle
Gigglestick Posted October 30, 2006 Posted October 30, 2006 I tried everything I could find on here and everything I could think of for a similar Java applet on an internal site where I work, and couldn't get anything to work. The best I've been able to come up with is that everything appears in the same location relative to the window, so my script watches for certain window titles, then uses Send and MouseClick commands. For what I need, that works within an acceptable margin. I wish I could truly interact with the Java controls though. My UDFs: ExitCodes
moocher Posted October 30, 2006 Author Posted October 30, 2006 Exactly what I'm doing atm The problem is that the loadtime / the time to tab in the java is not the same so sometimes the applet dont get all my tabs due to fast tabbing
Gigglestick Posted October 30, 2006 Posted October 30, 2006 You might try using the pixel functions to wait for the tabs to load or something. My UDFs: ExitCodes
moocher Posted October 30, 2006 Author Posted October 30, 2006 Yea but i dont like to rely on the color of the applet Since its all grey and black text
DaleHohm Posted October 31, 2006 Posted October 31, 2006 The Java applet will be represented in the HTML code as an embed, object or applet tag. You can get a reference to it with _IETagNameGetCollection and then you may be able to use _IEPropertyGet($oTag, "readyState") to check to see if it's loadstate is complete or 4. I haven't tested, but it is worth a try. 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
moocher Posted November 1, 2006 Author Posted November 1, 2006 Well going to test it tommorow Though im not worried about the load time at the beginning.. more the time the program uses when i enter numbers etc
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