Hyflex Posted May 28, 2013 Share Posted May 28, 2013 Hey, I'm looking for a way to login to my website using autoit (proof can be given that I own the said website) read the contents of the page and if a certain bit of html is found on the page it needs to navigate to a javascript function:If this exists: <a href="javascript:B()">Click</a> Navigate to: javascript:B() I could do with some pointers :/ Link to comment Share on other sites More sharing options...
GeekyBunny Posted May 28, 2013 Share Posted May 28, 2013 What's the website's name? You can try to navigate to this using run command o-o Run(<Whatever your thing's name is>) Link to comment Share on other sites More sharing options...
Hyflex Posted May 28, 2013 Author Share Posted May 28, 2013 What's the website's name? You can try to navigate to this using run command o-o Run(<Whatever your thing's name is>) I can't post the address publicly, only in pm. You're not understanding the navagate part, I basically want to poll certain pages (an array of links) on my site let's say every 10 mins and if in the html of the page that html string is visible then it needs to run the JavaScript function. Link to comment Share on other sites More sharing options...
Danp2 Posted May 28, 2013 Share Posted May 28, 2013 What have you tried thus far? Are you familiar with the _IE functions? If not, look in the help file under IE Management. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Hyflex Posted May 28, 2013 Author Share Posted May 28, 2013 What have you tried thus far? Are you familiar with the _IE functions? If not, look in the help file under IE Management. Yeah, I've had a look through those functions in the _IE file but I couldn't work out how to do it. I even used other peoples code on here and tried to edit it lol Link to comment Share on other sites More sharing options...
Hyflex Posted May 28, 2013 Author Share Posted May 28, 2013 I've got some bits working but now I've got problems with a GUI. I want a start/stop function to run/stop running a Function... Link to comment Share on other sites More sharing options...
bogQ Posted May 28, 2013 Share Posted May 28, 2013 (edited) whats the source of B() java func? do it need some parameter? $buffer = (in this case) returned variable with object form _IECreate _IEAttach func $buffer.document.parentwindow.execScript('javascript:B()', "javascript") or $buffer.document.parentwindow.execScript('B()', "javascript") Edited May 28, 2013 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
Hyflex Posted May 28, 2013 Author Share Posted May 28, 2013 Okay, I have the main part working now thanks I'm trying to now work on an array. $TCount = 11 Local $iMax = 11 Local $arr[$iMax] = [$TCount, $T1, $T2, $T3, $T4, $T5, $T6, $T7, $T8, $T9, $T0] Why do I have to define tcount, I want it to cycle through all of the arrays and if its blank to just ignore it... For $i = 1 to $arr[0] $x = $arr[$i] If $arr[$i] = "" Then $TCount = $i EndIf Next Link to comment Share on other sites More sharing options...
bogQ Posted May 28, 2013 Share Posted May 28, 2013 (edited) no need to define tcount if you don't need to you can leave it 0 or blank string "" or start your data from array 0 but then you need to define $I = 0 and UBound($arr) - 1 will do the work for you For $i = 1 To UBound($arr) - 1 If $arr[$i] Then;if array isn't empty ;do something like MsgBox(0,'',$arr[$I]) EndIf Next Edited May 28, 2013 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
Hyflex Posted May 28, 2013 Author Share Posted May 28, 2013 Ahh yeah, stupid of me Now, the last one I think is... setting the color of the text in _GUICtrlStatsBar_SetFont I can't work out how to set the color of the text only background.... Link to comment Share on other sites More sharing options...
bogQ Posted May 29, 2013 Share Posted May 29, 2013 (edited) im not familiar with that command, /editstart but you can post it heare for others to see if you want to or you need help with it coz i realy did not find that command even on google, so im wondering did you create it yourself or? /editend i can be wrong about this but ... more info about Status Bars http://msdn.microsoft.com/en-us/library/windows/desktop/aa511492.aspx Text Generally, use concise labels. Cut any text that can be eliminated. Prefer sentence fragments, without ending punctuation. Use full sentences (with ending punctuation) only when sentence fragments aren't significantly shorter. For optional progress labels, indicate what the operation is doing with a label that starts with a verb (gerund form) and ends with an ellipsis. For example: "Copying...". This label may change dynamically if the operation has multiple steps or is processing multiple objects. Don't use color, bold, or italic to emphasize status bar text. Edited May 29, 2013 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. 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