Jump to content

baconismidog

Members
  • Posts

    9
  • Joined

  • Last visited

baconismidog's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Necroing: I have this same issue. I'll try to explain it a different way. In the Craigslist account page, you can choose to 'renew' your posts every three days and then they'll get a fresh look from people. What we're trying to figure out is how to manage the POST command correctly. Here is the "inspect element" in Chrome for the "renew" hyperlink in the account page (I blanked out my account number with ##): <form action="https://post.craigslist.org/manage/##########" method="POST"><input type="hidden" name="action" value="renew"><input type="hidden" name="crypt" value="U2FsdGVkX182NDQ0NjQ0NNYTGOKaJXDu34zUjkZCkVXDzwxZxSW1KA"><input type="submit" name="go" value="renew" class="managebtn"></form> I know how to use string-in-string etc. to parse out the URL, actions, values, etc but what I can't get correct is the formatting for the POST command itself. I've tried including and exlcuding different parts (action, value, crypt, etc.). I get a 200 returned using the code below but it doesn't actually renew the post. I know the crypt values are different, they change regularly. ; The data to be sent $sPD = 'action=/manage/##########&name=action&value=renew&name=crypt&value=U2FsdGVkX182MzM0NjMzNOpDZW1SVeBDug_VuldCvGPgwoMzcrXJZA' ; Creating the object $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("POST", "https://post.craigslist.org", False) $oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded") ; Performing the Request $oHTTP.Send($sPD) ; Download the body response if any, and get the server status response code. $oReceived = $oHTTP.ResponseText $oStatusCode = $oHTTP.Status ;If $oStatusCode <> 200 then MsgBox(4096, "Response code", $oStatusCode) ;EndIf ; Saves the body response regardless of the Response code $file = FileOpen("Received.html", 2) ; The value of 2 overwrites the file if it already exists FileWrite($file, $oReceived) FileClose($file) Thanks for the help guys - I plan to write this up and give it away (the current batch of CL renew apps are really friggin expensive).
  2. Displayed in Chrome (I think that's what you're asking). I'm saying that inetget grabs the data from the server but the data I'm interested in happens after the page is loaded in Chrome (or IE, Firefox, whatever). If I load the page, hit ctrl+s and save the page then search for the links I'm after in the saved file they are there but if I inetget the page and search the saved file the links aren't there.
  3. Note that I don't want to use IE, I want to use Chrome. I know IE will do this. inetget/inetgetsource won't work because the data I'm interested in is loaded after the client side is displayed. WinHttp won't work, I've spoken with the UDF developer (trancexx) about it already I'd REALLY like to avoid using send or controlsend ("^s") but that's all I can come up with currently. I believe there is a "pageloaded" event in javascript but I don't know anything about java and I don't know how to incorporate it into an AutoIt script. Thanks in advance guys.
  4. Those are variables. They're pulled from the ini and dropped into $SingleEmail and $SinglePassword in a while/wend loop. Sending them w/o clipput also only sends one keystroke to a locked workstation AND on some slow workstations the @ in the email address will end up as a "2" when the workstation is unlocked (so paste is preferred). There is no Control name for the window. There used to be one ( [CLASSNN:Chrome_RenderWidgetHostHWND1] ) but recently it disappeared and the script stopped working so I had to blank it out to make it work. I know that sounds strange but it really happened. Either that or the AutoInfo proggy in Scite is broken somehow. Either way, with or without the control name it is finding the control and sending something, it's just the wrong something. Sorry to shoot down your ideas, I REALLY appreciate them but this has me stumped. I mean, it's finding the window and sending input but it's sending the bare character instead of the command that the modifier (^) should distinguish.
  5. I am trying to login to a webpage. This code works on an unlocked workstation. On a locked workstation when it tries to paste (^v) it just sends the v to the email (and I believe the password - it's obfuscated) input boxes. $ChromeTitle is the title of the window given by the Autoit Info tool. $SingleEmail is taken from an inifile. The sleep (200) were necessary or the pasting wouldn't paste the whole email (or password). The Tabs and all work, but it won't paste the clipped data. It won't send the raw data (without using ClipPut) either. WinSetState ($ChromeTitle, "", @SW_SHOW) WinSetOnTop ($ChromeTitle, "",1) WinActivate ($ChromeTitle, "") ClipPut ($SingleEmail) Sleep (200) ClipGet () Sleep (200) ControlSend ($ChromeTitle,"","","^v") Sleep (500) ControlSend ($ChromeTitle,"","","{Tab}") Sleep (500) ClipPut ($SinglePassword) Sleep (200) ClipGet () Sleep (200) ControlSend ($ChromeTitle,"","","^v") ClipPut ("")
  6. Sorry to necro this thread but this method, using [CLASS:Chrome_AutocompleteEditView], doesn't seem to work anymore. I don't want to resort to control sending an F6 or !d to highlight the URL bar and clipget to read it - that seems like it would be prone to failure in certain instances. Is there any other way to do it besides the ghetto way I've mapped out above? Thanks guys (and sorry again for the necro but this is the most promising thread I've found).
  7. Simple question. What is the Windows Explorer version of this which calls INternet explorer? "Shell.Explorer.2" I know this is simple, but I did go through the help file, installed and used the OLE/COM object viewer for a long time and just cant seem to locate Microsoft Windows Explorer VersionINdependentProgID. It is probably right in front of my eyes . IN my defense, it is very late here... *EDIT* I am currently passing a .navigate command to the shell.explorer.2 to create a dual pane file browser. The odd behavior of using IE to browse to network files is what is driving me to try to find how to call Windows Explorer. And can someone let me know how they found it? "Teach a man to fish..." Thank you in advance. B
×
×
  • Create New...