Jump to content

darkyr

Members
  • Posts

    13
  • Joined

  • Last visited

darkyr's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. actually it seems it doesnt work until i click the browse button myself then it proceeds to fill and submit, does anybody know why doesnt it pick up the _IeAction popup window and only picksup the mouse click one? MouseMove(_IEPropertyGet($oInputFile, "screenx") + _IEPropertyGet($oInputFile, "width") - 10, _ _IEPropertyGet($oInputFile, "screeny") + _IEPropertyGet($oInputFile, "height")/2) MouseClick("left") $Window = WinWait("Choose File to Upload","",5) ControlSetText($Window, "", "Edit1", "File here") ControlClick($Window, "", "Button2") found dale's example to work but its still interesting if somebody could explain why the IeAction popup doesn't get catched by winwait, thanks!
  2. thank you, i got it to work, it seemed the problem was that it didnt finish loading the last page so the script didn't go forward, it just needed a _IeloadWait() .. i kinda feel stupid now $Window = WinWait("Choose File to Upload") ControlSetText($Window, "", "Edit1", "File here") ControlClick($Window, "", "Button2") but this works perfectly, thanks again !
  3. still didn't work and C:\Autoexec.bat was from an example i found in the forums, thanks for replying
  4. $oForm=_IEFormGetObjByName($oIE, "uploadfile") $oInputFile=_IEFormElementGetObjByName($oForm, "photo_upload") _IEAction($oInputFile, "click") WinWait("Choose File to Upload") $hChoose = WinGetHandle("Choose File to Upload") ControlSetText($hChoose, "", "Edit1", "C:\AUTOEXEC.BAT") ControlClick($hChoose, "", "Button2") The internet explorer "choose file to upload" pops up but after that the functions don't set the text nor do they click the button. Could somebody take a look and tell me if I'm missing something?
  5. <li id="aboutme_2" item_type="static" fieldid="4d75736963"> <label>Music:</label> <p class="default_text hide_me"> <a class="edit" href="#"> <span>Add your favorite music types and artists...</span> </a> </p> <div> <textarea maxlength="1200"></textarea> <input class="greyBtn" type="button" value="Save"> <input class="greyBtn" type="button" value="Cancel"> </div> </li> I want to fill this textarea, anybody has any ideas on how I can go about doing that? I presume i should use _IEFormElementGetCollection ? but what do i do after i do that
  6. $page=_INetGetSource("http://pagelink") $pageArray = StringSplit($page, @CRLF) For $i = 1 To $pageArray[0] If StringInStr($pageArray[$i], "Confirmation code:") Then MsgBox(0, "Found it", $pageArray[$i]) $b = _StringBetween($pageArray[$i], "Confirmation code: ", "</a>") MsgBox(0, "Found it", $b[0]) EndIf Next this piece of code works for anybody that will be trying to do this in the future, thank you all
  7. the function I posted does not find the user@yahoo.com in the source
  8. <tbody> <tr> <td><input type="checkbox" name="emailTable:0:j_id29" checked="checked" disabled="disabled" /></td> <td> user@yahoo.com</td> <td><a href="/linktoit/index.html?dataModelSelection=message%3Aemails%5B0%5D&amp;actionMethod=index.xhtml%3AmailQueue.select" id="emailTable:0:j_id35">Confirmation code: oO6aI2Nq5m</a></td> <td> </td> <td> Oct 16, 2011 10:51:08 AM</td> </tr> </tbody> </table> I am trying to make a function that will get this and return it /linktoit/index.html?dataModelSelection=message%3Aemails%5B0%5D&amp;actionMethod=index.xhtml%3AmailQueue.select I have tried this function but it doesn't work I know it doesn't do what I want but I was taking baby steps and still couldn't figure it out, any help would be greatly appreciated. Thanks Func GetEmail() $page = _INetGetSource('http://workcomputer.com/mail/') $pageArray = StringSplit($page, @CRLF) For $i = 1 To $pageArray[0] If StringInStr($pageArray[$i], "user@yahoo.com") Then MsgBox(0, "Found it", $pageArray[$i]) Next EndFunc
  9. My question is when i ping google do i ping it through the proxy or from my ip... Dim $aRecords2 If Not _FileReadToArray("proxy.txt",$aRecords2) Then MsgBox(4096,"Error", " Error reading log to Array error:" & @error) Exit EndIf $y=1 $no=0 while $no=0 $y=$y+1 $proxy=$aRecords2[$y] RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyEnable", "REG_DWORD", "1") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", "REG_SZ", $proxy) If Ping("www.google.com",250)<>0 then MsgBox(0, $proxy, $proxy) $no=1 EndIf WEnd $oIE = _IECreate("http://www.whatsmyip.org")
  10. no it cant be that i just saw it works .... but has a massive delay before redirecting to the lalalala.profile
  11. it logins to a website then navigates to a given page where it clicks a button 1000 times, logs out and repeats for every user in a txt file
  12. everything almost works fine, only problem is after the script logs in it never navigates to lalala.profile... <Removed for rules violation>
×
×
  • Create New...