Jump to content

killertone

Members
  • Posts

    6
  • Joined

  • Last visited

killertone's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. Yes the hwnd was taken before, just not on the picture. Let me try the innertext thing. Edit: Thanks! _IEPropertySet($element, "innertext", "your_text") did the job!
  2. Greetings! I have been trying to get send to this textarea on a website a message through ControlSend because _IEFormElementSetValue doesnt work on it, so i get the hwnd of the IE window then do the ControlSend to the window, and the message it sends doesnt type some of the letters. The textarea <textarea style="overflow:hidden;height:undefinedpx;" class="form-control input-sm" placeholder="Add a comment" rows="1" data-reactid=".0.3.2.1.2.0.$view.8.1.0.0.1"></textarea> How im getting the textarea: $comment_area = _IETagNameGetCollection($oIE,"textarea") for $element in $comment_area if $element.placeholder = "Add a comment" Then _IEAction($element,"focus") Sleep(1500) ;_IEFormElementSetValue($element,$comment_list[$random_index]) ;_IEFormSubmit($element) ControlSend($hIE,"","[CLASS:Internet Explorer_Server; INSTANCE:1]",$comment_list[$random_index],1) ;Send("{ENTER}") Sleep(3000) ;Hacer que sea random EndIf Next When i use _IEFormElementSetValue it changes the text on the box, but it doesn't change the value or something because when i send an Enter key it doesn't submit the message (I Also tried _IEFormSubmit) With ControlSend it does send it but corrupted, for example: Message: Pretty nice Result: ety nice Also i know the element is the actual one im referring because if i use _IEAction($element,"focus") it focuses the one i want. Any help appreciated!
  3. A I dont know if this is the most effective way, but i always do it like this: $imgColl = _IETagNameGetCollection($oIE,"img") For $img In $imgColl      if $img.src = "(The src found in the html)" then       _IEAction($img,"click")    EndIf  Next
  4. I dont know if this is the most effective way, but i always do it like this: $imgColl = _IETagNameGetCollection($oIE,"img") For $img In $imgColl if $img.src = "(The src found in the html)" then EndIf Next
  5. I think ive found a way: The sites HTML has two div elements that have a variant height, if i delete the "data-react-id" from those divs the site stops loading new images, how can i erase this attribute? Because i can get information from the element such as Class Name, Innertext, etc but there is no div.data-react-id = "", is there another way to change an attribute from an HTML element?
  6. Hello! So i have been scripting for a while using Autoit and until now i wasnt having any dificulties. Im trying to make a script that goes into this website and likes an specific amount of images The problem is that, when you scroll down in the website, it keeps showing you more and more images BUT the html changes so in the html you can only find the ones that are currently on your view, so its like it may be always the same divs but the content changes. I cant explain myself too clearly, but what i would like to try and do would be to stop this javascript or something that is always showing me more images, OR is there a way to trick the brower/website into thinking i have a screen resolution that i specify?
×
×
  • Create New...