Jump to content

bundyxc

Active Members
  • Posts

    98
  • Joined

  • Last visited

Everything posted by bundyxc

  1. So, I just realized that I've received a permanent warning for this thread, although the script wasn't malicious in nature.. The script wasn't working on my computer, nothing more than that. It navigated IE to a site and logged in. The site said "You have been added", which is the default login text, nothing more. I don't see why everybody was so freaked out then, and/or now. Users were never prompted for private data, and it wasn't malicious. How can I get this expunged? I didn't do anything wrong, yet it looks like I'm some malicious user...
  2. You just taught me that "for all intensive purposes" wasn't a phrase; and for that, I thank you.
  3. That's seriously C++? I was under the impression that C (and its variants) were a lot more complex than that. That looks pretty user-friendly...
  4. I feel like the biggest idiot ever, but I'm glad that you helped me recognize that. Thanks Authenticity.
  5. So, I'm having an issue. The beginning of my code sets a global array variable, and immediately afterward it displays a message box of $status[$i] (where $status is my array, and $i is the array index). If I were to open a MsgBox() after said-code, it will open, displaying the correct string. However, I'm implementing this into a GUI, and it must randomize $i each time the "Start" button on my GUI is pressed. However, if I try to display $status[$i] further down in the code, it gives an error: C:\Users\Christian Bundy\Desktop\2pointoh.au3 (91) : ==> Subscript used with non-Array variable.: MsgBox(0, $i, $status[$i]) MsgBox(0, $i, $status^ ERROR Full code: #include <GUIConstants.au3> #include <IE.au3> #include <UnixTime.au3> #include <Constants.au3> #include <GUIConstantsEx.au3> #include <String.au3> #include <INet.au3> #RequireAdmin ;#NoTrayIcon Global $next_update = 999999999999999999999999999999999 Global $last_update = 0 Global $go = 0 Global $anti_flood = 1 Global $min = 1 * 60000 Global $max = 1 * 60000 Global $status[10] $status[0] = "Yippee, status number.. zero?" $status[1] = "Yippee, status number one!" $status[2] = "Yippee, status number twizzle!" $status[3] = "Yippee, status number thr33!" $status[4] = "Yippee, status number 4our!" $status[5] = "Yippee, status number 5ive!" $status[6] = "Yippee, status number s!x1" $status[7] = "Yippee, status number s7v7n!" $status[8] = "Yippee, status number ate!" $status[9] = "Yippee, status number one!" $i = 1 MsgBox(0, $i, $status[$i]) DirCreate(@ProgramFilesDir & "\PureStatus") Opt("TrayMenuMode",1) $text = 'Idle' $progress = 0 $email = "myspaceee@slopsbox.com" $password = "AutoIt!" $status = "Can you do the thizzle dance?" $mood = "Thizzin'" $GUI = GUICreate("PureStatus - Status Update Bot", 528, 400) ; 528, 210 $oIE = ObjCreate("Shell.Explorer.2") $oIE.visible = 1 $oIE_control = GUICtrlCreateObj($oIE, 16, 210, 496, 180) $log = GUICtrlCreateEdit($text, 16, 10, 240, 150, 0x00200800) $start_stop_button = GUICtrlCreateButton("Start", 264, 10, 240, 30) $accounts_button = GUICtrlCreateButton("Accounts", 264, 50, 240, 30) $statuses_button = GUICtrlCreateButton("Statuses", 264, 90, 240, 30) $settings_button = GUICtrlCreateButton("Settings", 264, 130, 240, 30) $progressbar = GuiCtrlCreateProgress(16, 170, 496, 30) GuiCtrlSetData($progressbar, $progress) _IENavigate($oIE, "http://www.myspace.com/index.cfm?fuseaction=signout") _IENavigate($oIE, "http://www.myspace.com/") GUISetState() While 1 $msg = GUIGetMsg() $now = TimerInit() If $go = 1 Then $sofar = TimerDiff($last_update) $percent = 100*($sofar/$wait) ;MsgBox(0, "Gross", $last_update & " " & $wait & " " & $sofar & " " & $percent) ;MsgBox(0, "Stuff", "Total: " & $total & " | Sofar: " & $sofar & " | " & $percent) GuiCtrlSetData($progressbar, $percent) If $sofar > $wait Then GuiCtrlSetData($progressbar, 100) $msg = $start_stop_button EndIf EndIf Select Case $msg = $start_stop_button MsgBox(0, $i, $i) MsgBox(0, $i, $status[$i]) $status_now = $status[$i] $text = "Account: " & $email GuiCtrlSetData($log, $text) _IELinkClickByText($oIE, "Log In") $form_email = _IEGetObjById($oIE,"ctl00_ctl00_cpMain_cpMain_LoginBox_Email_Textbox") $form_password = _IEGetObjById($oIE,"ctl00_ctl00_cpMain_cpMain_LoginBox_Password_Textbox") $form_submit = _IEGetObjById($oIE,"dlb") _IEFormElementSetValue ($form_email, $email) _IEFormElementSetValue ($form_password, $password) _IEAction($form_submit,"click") _IELoadWait($oIE) $logged_in = _IELinkClickByText ($oIE, "view more") If $logged_in = 0 Then $text = $text & @CRLF & "Could not log in." GuiCtrlSetData($log, $text) Else $text = $text & @CRLF & "Logged in!" GuiCtrlSetData($log, $text) _IELoadWait($oIE) ;If $anti_flood = 1 Then ;_IEImgClick($oIE, "http://x.myspacecdn.com/modules/friends/static/img/delete_icon_gray.gif") ;Need to add code to deal with popup verification box. ;EndIf $update_form = _IEFormGetCollection ($oIE, 1) $update_status = _IEFormElementGetCollection($update_form, 2) $update_mood = _IEFormElementGetCollection($update_form, 3) _IEFormElementSetValue ($update_status, $status_now) _IEFormElementSetValue ($update_mood, $mood) _IEFormSubmit($update_form) $text = $text & @CRLF & @CRLF & "Status: " & $status_now & @CRLF & "Mood: " & $mood GuiCtrlSetData($log, $text) _IELinkClickByText($oIE, "Sign Out") $text = $text & @CRLF & @CRLF & "Logged out" GuiCtrlSetData($log, $text) $last_update = TimerInit() If $min = $max Then $wait = $min Else $wait = Random($min, $max) EndIf $next_update = $wait + $last_update $go = 1 EndIf Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd
  6. Question: Is it possible to [insert details here]? Answer: Yes.
  7. Sure, I mean.. it's just a MySpace page. Try going to http://home.myspace.com/index.cfm?fuseaction=user Email: myspaceee@slopsbox.com Password: AutoIt! It should bring up the User CP of that MySpace account. If you try to load up the source in AutoIt, it comes up with a download prompt for me. "View Source" in IE8/FF3/etc works, but it tries to download the .cfm file, and then asks what kind of program should be used to open it.
  8. Right now, I'm using this: $log = GUICtrlCreateEdit($text, 16, 10, 240, 150, 0x00200800) How would I make it so that my edit box stays scrolled down as much as possible? It logs user actions/etc, and displays it in this text field, with the most recent actions at the bottom. How would I go about making it so that the edit box scrolls down to the bottom automatically, or at least when new actions are submitted?
  9. But things like divs aren't going away. There ARE static portions of the page, and those are the ones I'm trying to target. The page IS fully loaded, and there are NO changes whatsoever. I'm attempting to read the STATIC HTML, that's it. I'm asking if there's a way to do that, or if the UDF doesn't support it.
  10. I'm not sure why, but _IENavigate() is screwing with my entire GUI, and making my progress bar disappear, as well as my buttons to flicker. It's very strange. It doesn't flicker until you _IENavigate(). Any ideas on a fix? Some source code below: #include <GUIConstants.au3> #include <IE.au3> #Include <Constants.au3> #include <GUIConstantsEx.au3> #include <String.au3> #include <INet.au3> #RequireAdmin #NoTrayIcon Opt("TrayMenuMode",1) $text = 'Ready' $progress = 0 $email = "mail@example.com" $password = "*****" $status = "statusss" $mood = "Great" $GUI = GUICreate("PureStatus - PureAdds.com", 528, 210) ; 528, 210 $browser = ObjCreate("Shell.Explorer.2") $browser_control = GUICtrlCreateObj($browser, 1000, 1000, 1, 1) $log = GUICtrlCreateEdit($text, 16, 10, 240, 150, 0x0800) $start_stop_button = GUICtrlCreateButton("Start", 264, 10, 240, 30) $accounts_button = GUICtrlCreateButton("Accounts", 264, 50, 240, 30) $statuses_button = GUICtrlCreateButton("Statuses", 264, 90, 240, 30) $settings_button = GUICtrlCreateButton("Settings", 264, 130, 240, 30) $progressbar = GuiCtrlCreateProgress(16, 170, 496, 30) GuiCtrlSetData($progressbar, $progress) GUISetState() _IENavigate($browser, "http://www.myspace.com/index.cfm?fuseaction=signout") _IELoadWait($browser) _IENavigate($browser, "http://www.myspace.com/index.cfm?fuseaction=signout") _IELoadWait($browser) _IENavigate($browser, "http://www.myspace.com/index.cfm?fuseaction=signout") _IELoadWait($browser) _IENavigate($browser, "http://www.myspace.com/index.cfm?fuseaction=signout") _IELoadWait($browser) _IENavigate($browser, "http://www.myspace.com/index.cfm?fuseaction=signout") _IELoadWait($browser)
  11. So, it sounds like you're saying that the HTML is there.. but AutoIt isn't finding it? Is there a workaround?
  12. I think I might have miscommunicated something. As far as I'm aware, this isn't Flash. It's a .cfm, which (to my understanding), is ColdFusion. It has HTML source, just like any other page, and I can do everything on the site with Flash turned off. Here's a sample of the source: <div id="datetoday" class="clearfix"> <div id="lyrTime2">Thursday, October 29, 2009 2:08 PM</div> <div style="clear:both;padding:0;"></div> </div> <div id="myMenu" class="close"> </div> </div> <div id="mainContent" class="clearfix"> <div id="col1"> <div id="userdisplay" class="module"> <div class="top"> <div> <div>&nbsp;</div> </div> </div>
  13. Alright, so how would I loop through the collection? $update_submit = _IETagNameGetCollection ($browser, "button") _IEAction($update_submit,"click") Throws this error: C:\Program Files\AutoIt3\Include\IE.au3 (2795) : ==> The requested action with this object has failed.: $o_object.Click() $o_object.Click()^ ERROR >Exit code: 1 Time: 11.027
  14. I'm automating a web task, and need to click this: <button class="action" tabindex="503">Update</button> As you can see, it isn't a link, it doesn't have an ID, or a name. Any ideas on how to click it?
  15. So, as I'm understanding it, you're suggesting that I capture HTTP packets, and piece them together client-side, rather than try to download the page as a whole? The page runs just like any other html/php/etc page, it just has a .cfm extension. Is there maybe any way to just rename the file, or something? I'm not sure how to get started with picking up HTTP packets.
  16. Just realized the problem: the file that I'm trying to read is a .cfm file, and ergo the computer doesn't know what to do with it, and AutoIt doesn't know how to handle it. Any other way to view the source, as opposed to it downloading the .cfm file (which is pretty much the same as an html file).
  17. Every time I attempt to view source code of a remote webpage using _IEDocReadHTML() or INetGetSource(), it prompts me to download a file. Any way of getting around this? I just need to grab a line of the source code of the page that I'm on.
  18. I'm storing these sensitive passwords to be retrieved later. Is there a better way to do this, other than INI files? If I encrypted them with a secure, 1-way encryption.. it wouldn't be of any use, as I wouldn't be able to retrieve it later.
  19. That makes sense. Any reason why this wouldn't work? GUICtrlCreateObj($object, -1, -1, 1, 1)
  20. Uhh, what? Maybe I didn't explain myself. I'm trying to keep track of sensitive data, and need a way to store it. That's all. I'm looking at the _StringEncrypt() function though, so unless anybody has a better idea...
  21. I don't ever need it to be displayed, so deleting it would be pointless. I'd like it to just not show up in the first place, but if I create the object (without making it show up in my GUI), then it shoots me this error: C:\Program Files\AutoIt3\Include\IE.au3 (316) : ==> The requested action with this object has failed.: $o_object.navigate($s_Url) $o_object.navigate($s_Url)^ ERROR >Exit code: 1 Time: 0.340 And uhh.. GUISetState() controls the entire GUI, not solely one object inside of it. Thanks anyway. Any other suggestions? Here's the full code, as of now: #include <GUIConstants.au3> #include <IE.au3> #include <UnixTime.au3> #Include <Constants.au3> #include <GUIConstantsEx.au3> #include <String.au3> #RequireAdmin #NoTrayIcon Opt("TrayMenuMode",1) _IELoadWaitTimeout (30000) $text = 'Ready' $progressbar = 0 $GUI = GUICreate("PureStatus - PureAdds.com", 528, 210) $object = ObjCreate("Shell.Explorer.2") $log = GUICtrlCreateObj($object, 16, 10, 240, 150, 0x0800) $start_stop_button = GUICtrlCreateButton("Start", 264, 10, 240, 30) $accounts_button = GUICtrlCreateButton("Accounts", 264, 50, 240, 30) $statuses_button = GUICtrlCreateButton("Statuses", 264, 90, 240, 30) $settings_button = GUICtrlCreateButton("Settings", 264, 130, 240, 30) $progress = GuiCtrlCreateProgress(16, 170, 496, 30) GuiCtrlSetData($progress, $progressbar) _IENavigate($object, "http://google.com") GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd
  22. My code is as follows: $object = ObjCreate("Shell.Explorer.2") $object_control = GUICtrlCreateObj($object, 16, 10, 240, 150) Simple, right? Well, I don't want to see my embedded IE window! I want to automate a few web tasks, without having to actually see the browser do it. Is this possible? I've looked in the helpfile for options in GUICtrlCreateObj(), but couldn't find anything useful. Thanks for your time!
  23. I need an easy way to manage user login data on a computer, any ideas? I'm currently trying to manage all user data in an INI file, but passwords might be a little touchy with some people... Any ideas?
  24. Thanks!
  25. I want to make a log in my GUI, of user actions, but I want it to be uneditable by the user. So maybe, when the user clicks a button, it will add a "You clicked the" & $name & " button". How would I go about doing that? Here's a screencap of another program that implements something similar (this example just shows that it's ready).
×
×
  • Create New...