n0dy Posted January 27, 2010 Share Posted January 27, 2010 Retrieve text From Firefox Window- HelpGuys, Please help me in Retrieving text from a Firefox window.Here is LinkI tried various functions, Wingettext and also ControlGettext, its not doing anything. Code i am trying:$text = ControlGetText ("Time in Abu Dhabi - Mozilla Firefox", "", "[CLASS:MozillaWindowClass; INSTANCE:5]" ) MsgBox (0, "Time", $text)Is it possible anyway to do it what i am trying? Please help in correcting the code. Link to comment Share on other sites More sharing options...
whim Posted January 27, 2010 Share Posted January 27, 2010 Why not just use AutoIt time functions and calculate Abu Dhabi time ?whim Link to comment Share on other sites More sharing options...
n0dy Posted January 27, 2010 Author Share Posted January 27, 2010 I didnt understand. Can i make a timer which is synchronized with online accurate time window like i have given in link? So that i can run a program when the autoit timer will reach 0? But the thing is , it should not even 100ms slow from Firefox window > Online accurate time. Please Clarify. Because i want to make a Functioned script, i setText for it but connected to The firefox window link i have given. And when the settext reaches given conditional text, it do Run () command. Like this Below code, if the above code could be working. While 1 Switch ControlGetText ("Time in Abu Dhabi - Mozilla Firefox", "", "[CLASS:MozillaWindowClass; INSTANCE:8]") Case " 7:42:50 " Run ( "C:\\Tippingpoint.pdf") EndSwitch WEnd Regards, n0dy Link to comment Share on other sites More sharing options...
whim Posted January 27, 2010 Share Posted January 27, 2010 Well, AbuDhabiTime = YourSystemTime + TimeZoneDifference, isn't it ? The "Date Management" UDF functions should help take care of intricacies like daylight saving etc. HTH, whim Link to comment Share on other sites More sharing options...
n0dy Posted January 27, 2010 Author Share Posted January 27, 2010 Buddy, the thing i need is like not even 100ms from the World accurate time. So in that case,i cannot use my systemclock for this purpose. The thing is i dont know how to code and so i will be able to get the text which is on firefox window link. And it is online, and it runs 24/7 and keep the accuracy of seconds:mm:hr. From all that, i need only seconds. Please see the code and open the link window i have given. Maybe you can help me more. Thanks indeed. Appreciated. Regards, n0dy Link to comment Share on other sites More sharing options...
n0dy Posted January 27, 2010 Author Share Posted January 27, 2010 And the other thing, i Want to use the online time on firefox window link, As a timer to fullfill my needs. That's why i want to retrieve text from it. Link to comment Share on other sites More sharing options...
n0dy Posted January 27, 2010 Author Share Posted January 27, 2010 I am heartily waiting for repies Guys Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted January 27, 2010 Share Posted January 27, 2010 Does that look like a control? No. Does au3info show anything on it? No. So forget about ControlGetText() and use the FF UDF or the IE UDF (see helpfile). .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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