Arclite86 Posted April 25, 2014 Posted April 25, 2014 (edited) I am running a script on firefox it al works fine ,when suddently autoit isnt focused on the browser anymore so all codes after that will be lost, here is an example of it __FFSend: FFau3.xpath=null;try{FFau3.xpath=FFau3.WCD.evaluate("//input [@type='button']",FFau3.WCD,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;}catch(e){'_FFXPath_Error: '+e;}; ; working fine __FFRecv: [object XrayWrapper [object HTMLDocument]] - {location: {...}, x-auto-57: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, ...} __FFSend: try{FFau3.simulateEvent(FFau3.xpath,'MouseEvents','click');}catch(e){'_FFCmd_Err';}; __FFRecv: ; not focused on firefox anymore __FFWaitForRepl ==> Error TCPSend / TCPRecv: TCPRecv :10053 _FFOpenURL: http:website.nl _FFClick ==> No match: $sElement: FFau3.xpath __FFSend ==> Error TCPSend / TCPRecv: TCPSend: try{window.content.top.document.location.href='http://tweepi.com/tools/follow_by_followers#480'}catch(e){'_FFCmd_Err';}; _FFCmd ==> Error return value _FFLoadWait: ._FFOpenURL ==> No match: http:website.nl __FFSend ==> Error TCPSend / TCPRecv: TCPSend: try{FFau3.tmp=window.getBrowser().webProgress;FFau3.tmp.isLoadingDocument && FFau3.tmp.busyFlags ? false: true;}catch(e){'_FFCmd_Err';}; _FFCmd ==> Error return value .__FFSend ==> Error TCPSend / TCPRecv: TCPSend: try{FFau3.tmp=window.getBrowser().webProgress;FFau3.tmp.isLoadingDocument && FFau3.tmp.busyFlags ? false: true;}catch(e){'_FFCmd_Err';}; _FFCmd ==> Error return value I dont know if I need to us: "If error then (Do part of the script over)" because I dont know if its an error, its (somehow) not focused anymore. Edited April 25, 2014 by Arclite86
reb Posted April 25, 2014 Posted April 25, 2014 I use this to activate current tab $Handle= WinGetHandle("[class:MozillaWindowClass]","") ;then us this when ever you need it WinActivate($Handle,"") Hope it helps REB MEASURE TWICE - CUT ONCE
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