Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/14/2012 in all areas

  1. I have merged Neils SciTE v 3.20 Source with our own repository and have made it available in a separate directory in the Beta site. SciTE v 3.20 SciLexer.dll v3.20 History of changes My Changes: Support for "(" in filenames on error lines to fix the issue that double clicking these error lines wouldn't work.Jump to Line and Column now when double clicking the error from au3Check.Fold in Commentblocks fixes for the AU3 lexer.Word Highlighting modifications: highlight.current.word=1 highlight.current.word.by.style=1 highlight.current.word.colour=#00D040 #~ highlight.current.word.autoselectword=1 #~ highlight.current.word.wholeword=1 #~ highlight.current.word.matchcase=1 #~ highlight.current.word.minlength=2 Appreciate when people can test and let me know if they see issues or if all is working fine. Cheers, Jos Updated to 3.20 6/9/2012.
    1 point
  2. topsecret, If you have the full SciTE4AutoIt3 editor upi can run SciTEConfig (look under the <Tools> menu with an au3 file open) and adjust the colours. If you are using the SciTE-lite that comes with the AutoIt installer then it is a bit more complicated - and this might not be 100% corect as I have not used that for many years! Open the "au3.properties" file under the <Options> menu, scroll down to the bottom and you will see the #Color Settings section. Copy this section, open the "User Options File" under the same menu and paste the section - you can now change the colours as you wish and they will survive future updates. If you have not upgraded to the full SciTE4AutoIt3 package I would strongly advise that you do so - lots of extra goodies to help in coding Autoit. You can get it here. M23
    1 point
  3. you know you are posting a answer to a question that was back in 2008?
    1 point
  4. Hi, The function _IELinkGetCollection returns an object collection not an array, you will have to change the Navigate function logic or convert the collection to an array first. Edit: Yes, you are correct, take a look at the ParseLinks function in the script below. #include <IE.au3> Global $g_oIE = _IECreate('http://www.example.com') Global $g_listOfLinks Main() Func Main() ParseLinks() ; get an array of links from the page Navigate(10) EndFunc ;==>Main Func Navigate($iNavCount) For $i = 1 To $iNavCount Step 1 $iIndex = Random(0, UBound($g_listOfLinks) - 1, 1) $sLink = $g_listOfLinks[$iIndex] Sleep(3000) Next EndFunc ;==>Navigate ; Return values on success: an array of links and sets @extended to link count ; Return values on failure: 0 and sets @error to non-zero Func ParseLinks() Local $aLinks[1000], $n = 0 Local $oLinks = _IELinkGetCollection($g_oIE) ; get link collection OBJECT For $oLink In $oLinks ; loop over link collection items $g_listOfLinks[$n] = $oLink.href ; put the url into the array $n += 1 ; up the count Next ReDim $g_listOfLinks[$n] ; correct size Return SetError(Not $n, $n, $g_listOfLinks) ; return array EndFunc ;==>ParseLinks
    1 point
×
×
  • Create New...