Jump to content

iTechTed89

Members
  • Posts

    10
  • Joined

  • Last visited

iTechTed89's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. have you tried Autoit Tidy? might just be a simple syntax error hiding can try ctrl + t
  2. hmm i cant seem to get the controls to load ... didnt change anything but the png/gif
  3. LOL Thx ... i guess my dyslexia is showing today sorry for the dumb question but your solution worked. I had it backwords... StringInStr($test,"twitter.com") fixed it
  4. Overview- Im building a websurfing program that surfs webpages from a list. I Want it to be able to tell which Url is currently surfed and do a If statement if a match is found within the URL. #include <IE.au3> Local $aURLs, $oIE, $twit, $test start() Func start() $twit = "twitter.com" Dim $aURLs _FileReadToArray("sites.txt", $aURLs) $ieObj = _IECreate($aURLs[1]) For $i = 2 To $aURLs[0] $test = _IEPropertyGet($ieObj, "locationurl") MsgBox(0, "test", $test) If StringInStr("twitter.com", $test) Then MsgBox(0, "twitter", "Twitter is Current Page") EndIf ;MsgBox(0, "next", "next") _IENavigate($ieObj, $aURLs[$i]) Next MsgBox(0, "done", "done") EndFunc ;==>start I have a txt file "sites.txt" with 1 url per line. If twitter is one of the sites i want it to do the if statement but i cant get it working correctly . Im getting the Url from $test = _IEPropertyGet($ieObj, "locationurl") MsgBox(0, "test", $test) to display but StringInStr("twitter.com", $test) isnt doing its job....
  5. anyone got any advice on how to get this working i did msg DS but he hasnt been online since april
  6. still pretty lost on this wish dane made a function for this... i did see in anouther old topic he was thinking about it but dont know what became of it.
  7. meaning? just use this? If $linktext = $s_linkText Then or is that the line i need to change and if so to what?
  8. also wtf is oÝ÷ Ù:ºÚ"µÍYÝ[Ò[Ý ÌÍÛ[Ý^ ÌÍÜ×Û[Õ^ H[ ?
  9. I cant seem to get this working... but i think it would help solve my problem here possibly → Func _IELinkClickByString(ByRef $o_object, $s_linkText, $i_index = 0, $f_wait = 1) If Not IsObj($o_object) Then __IEErrorNotify("Error", "_IELinkClickByText", "$_IEStatus_InvalidDataType") Return SetError($_IEStatus_InvalidDataType, 1, 0) EndIf ; Local $found = 0, $linktext, $links = $o_object.document.links $i_index = Number($i_index) For $link In $links $linktext = $link.outerText & "" ; Append empty string to prevent problem with no outerText (image) links If $linktext = $s_linkText Then?oÝ?÷ Ù:ºÚ"µÍ?Y?Ý?[?Ò[?Ý? ?ÌÍ?Û[?Ý^ ?ÌÍ?Ü×Û[?Õ^ H[ If ($found = $i_index) Then $link.click() If $f_wait Then _IELoadWait($o_object) Return SetError(@error, 0, -1) EndIf Return SetError($_IEStatus_Success, 0, -1) EndIf $found = $found + 1 EndIf Next __IEErrorNotify("Warning", "_IELinkClickByText", "$_IEStatus_NoMatch") Return SetError($_IEStatus_NoMatch, 0, 0) ; Could be caused by parameter 2, 3 or both EndFunc
  10. Okay iv been trying to figure this out on my own for a few days now with no previel. So what i want to do is load a twitter page and click a link matching a regex string. or somthing similar. What are my options? iv seached the forums n tried to adapt some examples there but nothing has worked. I know its possible in Vb.net as my friend is using it in his code how would i do this in autoit.ill see if i can find the code for VB n see if you can convert it This Regex matches the links i want to click. - mylikes.com/[a-zA-Z0-9]/[a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9] html Text for link is embeded in <strong> <strong>mylikes.com</strong>/l/1uvG4 Here is An Example of the <a> Tag. <a data-ultimate-url="[url=""]http://www.mylocaljobboard.com/[/url]" href="[url="view-source:http://t.co/7Os3ES20"]http://t.co/7Os3ES20[/url]" data-expanded-url="[url=""]http://mylikes.com/l/1uvG4[/url]" title="[url=""]http://mylikes.com/l/1uvG4[/url]" target="[url=""]_blank[/url]" rel="[url=""]nofollow[/url]" class="[url=""]twitter-timeline-link[/url]"><strong>mylikes.com</strong>/l/1uvG4</a> Here is the full <p> Tag. <p class="js-tweet-text">Browse the BEST Local <a href="/#%21/search/%23Jobs" title="#Jobs" class=" twitter-hashtag pretty-link" data-query-source="hashtag_click"><s>#</s><b>Jobs</b></a> for FREE. The Best <a href="/#%21/search/%23Work" title="#Work" class=" twitter-hashtag pretty-link" data-query-source="hashtag_click"><s>#</s><b>Work</b></a> Opportunities await you HERE. <a href="/#%21/search/%23money" title="#money" class=" twitter-hashtag pretty-link" data-query-source="hashtag_click"><s>#</s><b>money</b></a> <a href="/#%21/search/%23discounts" title="#discounts" class=" twitter-hashtag pretty-link" data-query-source="hashtag_click"><s>#</s><b>discounts</b></a> <a href="/#%21/search/%23free" title="#free" class=" twitter-hashtag pretty-link" data-query-source="hashtag_click"><s>#</s><b>free</b></a> <a data-ultimate-url="http://www.mylocaljobboard.com/" href="http://t.co/7Os3ES20" data-expanded-url="http://mylikes.com/l/1uvG4" title="http://mylikes.com/l/1uvG4" target="_blank" rel="nofollow" class="twitter-timeline-link"><strong>mylikes.com</strong>/l/1uvG4</a> - spon</p>
×
×
  • Create New...