Jump to content

George__

Active Members
  • Posts

    27
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

George__'s Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks i will try that, I was trying it first on something that was always there however it would not find it when it refreshed however when the refresh code was not there it found it. It was almost as if it was refreshing to fast before the webpage was fully searched what i didn't understand with the use of the if else statement
  2. they are all in line it just moved the first one
  3. While $count = 0 For $i = 0 To UBound($asLink)-1 _IELoadWait($oIE) If StringInStr($asLink[$i][1], $sSearch1) And StringInStr($asLink[$i][1], $sSearch1) Then _IENavigate($oIE, $asLink[$i][0]) _IELoadWait($oIE) $count = $count + 1 ExitLoop Else Send ("{F5}") _IELoadWait($oIE) EndIf Next WEnd Everything works with out the loop there is more code but this seems to be whats wrong but basically it will keep constantly refreshing the page however wont find the link until its like 20th refresh and that varies however i want it to go to the link a soon as it is there however it is clearly there but does not find it. Also if there a way to detect a new text to be added to the page. Any help would be much appreciated:)
  4. Is there a way I can convert my autoit script into javascript as I would like to make it an application. I can use anywhere on my phone and computers which restricted me to run autoit but allow me to run javascript for personal use.
  5. 1 - Yes Both change 2 - Once it goes to the items page then find 'Add To Basket' 3 - Eg. http://www.currys.co.uk/gbuk/apple-iphone-6s/mobile-phones-and-accessories/mobile-phones/362_3412_32041_267_ba00011553-bv00309416/xx-criteria.html So the Keyword would be Iphone 6s for example and for it to go to click the link also how to make it click on the one nearest to a colour for example Rose Gold Local $oIE = _IECreate($url) Local $iPosition = StringInStr($oIE, $keyword) MsgBox($MB_SYSTEMMODAL, "", "The search string ", $keyword ," first appears at position: " & $iPosition) MouseClick("left",$iPosition, 1, 1) ;_IELinkClickByText($oIE, $keyword)
  6. How can i use StringInStr to find the word with in a webpage and click on the link like _IELinkClickByText However not having to be specific to match the full string. I cannot find this anywhere. Also how to use this on the page your are brought to after it has click on the link. Any help will be much appreciated. Thanks George
  7. forgot to add is there anyway IEcreate opens chrome instead of IE
  8. http://www.amazon.co.uk/s/ref=nb_sb_noss_1?url=search-alias%3Daps&field-keywords=iphone+6s&rh=i%3Aaps%2Ck%3Aiphone+6s For example Apple iPhone 6s 16GB (Sim Free, Unlocked) - Space Grey is very specific is there a way I can make it so that I can make search for iPhone 6s then click on that link also it says by apple on each item but lets say I wanted to click on the iphone closest to 02. I cant think of a way to explain it....... Hope that helps
  9. Because I thought as it was a old thread and wont be answered to as it wont be seen
  10. For _IELinkClickByText is there anyway for me to make it keywords not needed the whole text? Theres also 3+ texts that are the same but have colours on a second line is there anyway I can find the keyword nearest to the colour of choice when theres 3+ colours? Also after its clicked on the link how do get the data from the new page thats opened which can vary?
  11. Also after its clicked on the link how do get the data from the new page?
  12. Thanks I finally got it to work after realising my IE was corrupt..... Is there anyway for me to make it keywords not needed the whole text? Also theres 3+ texts that are the same but have colours on a second line is there anyway I can find the keyword nearest to the colour of choice when theres 3+ colours?
  13. How do i go about creating code to look for text within a webpage I have looked at image search and pixel search however both don't seem to cater for my needs is there anyway i can get it to find the text within the webpage get the co-ordinates and click on it?
×
×
  • Create New...