apollopimp Posted October 21, 2009 Share Posted October 21, 2009 (edited) here is the source for the button from the web page using DeBugBar .. ive been trying to figure out how to make this button refresh every 10 seconds without it using the mouse the name of the button is Refresh. <A style="COLOR: #fff; TEXT-DECORATION: underline" href="javascript:Site.deleteCache();Site.reload()">Refresh</A> hope someone can help me with this thanks Edited October 21, 2009 by apollopimp Link to comment Share on other sites More sharing options...
Mison Posted October 21, 2009 Share Posted October 21, 2009 Try force refresh.... For $i = 1 To 5 Send("^{F5}") ; Ctrl + F5 Sleep(5000) Next Hi ;) Link to comment Share on other sites More sharing options...
apollopimp Posted October 21, 2009 Author Share Posted October 21, 2009 that refreshes the whole page and reloads to a different page than i am trying to refresh.. The refresh button on the web page only refreshes the info on the page in the same frame.. Link to comment Share on other sites More sharing options...
DaleHohm Posted October 21, 2009 Share Posted October 21, 2009 _IELinkClickByText 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 Link to comment Share on other sites More sharing options...
apollopimp Posted October 21, 2009 Author Share Posted October 21, 2009 _IELinkClickByTexthow would i use that i have no clue what i am doing i have tried many different things here is one #include <IE.au3>$oIE = _IEAttach ("Demon Slayer by Chris on MySpace Apps", "embedded")_IELinkClickByText ($oIE, "Refresh")how would i attach to my page and than use _IELinkClickByText to find the Refresh and click on it? Link to comment Share on other sites More sharing options...
DaleHohm Posted October 21, 2009 Share Posted October 21, 2009 You show the code you tried (good), but don't describe the results - including messages in the SciTe console (bad). You mention Frames, so you may need to look at _IEFrameGet* functions. 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 Link to comment Share on other sites More sharing options...
apollopimp Posted October 21, 2009 Author Share Posted October 21, 2009 what would be the best info from DeBugBar for me to post here so we can figure out what i need to do.. Link to comment Share on other sites More sharing options...
Authenticity Posted October 21, 2009 Share Posted October 21, 2009 I guess that it's sufficient to do something like: $oIE.document.parentwindow.eval('Site.deleteCache();Site.reload();') or just navigating to this javascript: _IENavigate($oIE, 'javascript: Site.deleteCache();Site.reload();') For example: #include <IE.au3> Global $oIE = _IECreate() Global $sHTML = _GenHTML() _IEDocWriteHTML($oIE, $sHTML) $oIE.document.parentwindow.eval("myFunc();myFunc();") While _IEPropertyGet($oIE, 'visible') Sleep(20) WEnd Exit Func _GenHTML() Local $s_HTML = "" $s_HTML &= "<HTML>" & @CRLF $s_HTML &= "<HEAD></HEAD>" & @CRLF $s_HTML &= "<BODY><INPUT TYPE=button VALUE='Test' onclick='javascript: myFunc()'>" & @CRLF $s_HTML &= "<script TYPE='text/javascript'>" & @CRLF $s_HTML &= "function myFunc(){" & @CRLF $s_HTML &= "alert('Test');" & @CRLF $s_HTML &= "}" & @CRLF $s_HTML &= "</SCRIPT>" & @CRLF $s_HTML &= "</BODY>" & @CRLF $s_HTML &= "</HTML>" Return $s_HTML EndFunc Link to comment Share on other sites More sharing options...
apollopimp Posted October 21, 2009 Author Share Posted October 21, 2009 (edited) Thanks but i have no clue how to add the right info to make that work for mehere a screen shot of the DOM tree just hoping it might help Edited October 21, 2009 by apollopimp Link to comment Share on other sites More sharing options...
apollopimp Posted October 23, 2009 Author Share Posted October 23, 2009 is there anyone that can help some more with this? 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