Jump to content

milkman

Active Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by milkman

  1. Thanks guys, sorry I misunderstood the file.
  2. click at the spot the mouse is currently
  3. Perform a mouse click operation. MouseClick ( "button" [, x, y [, clicks [, speed ]]] ) In the help file it says that the 4th optional perimeter is speed. How can I use the optional perimeter 'speed' without having to define an x and y value.
  4. I get this error when I run the script C:\Program Files\AutoIt3\beta\Include\IE.au3 (848) : ==> Variable must be of type "Object".: If IsObj($o_object.elements.item ($s_name, $i_index)) Then If IsObj($o_object^ ERROR
  5. I found the part of the source where it talks about the check boxes, unfortunitally they have the same name. How can I check them both.
  6. Im getting this error, what does it mean? I have the IE.au3 in the right folder, because the functions work for other scripts. C:\Program Files\AutoIt3\beta\Include\IE.au3 (848) : ==> The requested action with this object has failed.: If IsObj($o_object.elements.item ($s_name, $i_index)) Then If IsObj($o_object.elements^ ERROR
  7. Ive looked through IE.au3, but would the check boxes be considered a form? WHich function would I use. Also in my defense, this was requested by a member at a site I belong to. =P Are check boxes considered forms?
  8. I need to know how to check boxes on a web site. Here is a picture of what I need. Those 2 check boxes at the bottum. How can I do this.
  9. Well I have managed to bypass cheat engine for nProtect so i'm sure there is a way around it. I've heard it has something to do with API hooks, maybe im wrong. Does that help at all?
  10. I am trying to bypass AutoIT programs past a program called nprotect for a game called maplestory. Nprotect somehow blocks AutoIT and ACtool. Its not that the AutoIT program closes, it just wont click, or what ever function I want it to do. Any ideas?
  11. Gahh still doesnt loop that right part.
  12. Works Perfectly thank you so much. I only need help with one more thing. After the whole script happens, a new page loads, and I need it to load the whole 'If this picture is there then go here' again after each refresh. ; ---------------------------------------------------------------------------- ; ; AutoIt Version: 3.1.0 ; Author: Calvin <teamgonuts@gmail.com> ; ; Script Function: ; Auto-Plays Scorchy Slots ; ; ---------------------------------------------------------------------------- ; Script Start - Add your code below here #include <file.au3> #include <IE.au3> HotKeySet( "\" , "close") Func close () Exit EndFunc Dim $x, $Count, $Move[100] $oIE = _IECreate() _IENavigate($oIE, "http://www.neopets.com/games/tyranuevavu.phtml") $oForm = _IEFormGetObjByIndex($oIE,2) _IEFormSubmit($oForm) _IELoadWait($oIE, 0) $sloc = @TempDir & "\Htmltext.txt" $Body = _IEBodyReadHTML($oIE) FileDelete($sloc) FileWrite($sloc, $Body) Dim $aRecords If Not _FileReadToArray( $sloc, $aRecords) Then MsgBox(4096,"Error", " Error reading log to Array error:" & @error) Exit EndIf For $x = 1 to $aRecords[0] If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/2_spades.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/3_spades.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/4_spades.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/5_spades.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/6_spades.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/7_spades.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/8_spades.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/9_spades.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/10_spades.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/11_spades.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/12_spades.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/13_spades.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/14_spades.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/2_hearts.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/3_hearts.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/4_hearts.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/5_hearts.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/6_hearts.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/7_hearts.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/8_hearts.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/9_hearts.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/10_hearts.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/11_hearts.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/12_hearts.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/13_hearts.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/14_hearts.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/2_clubs.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/3_clubs.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/4_clubs.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/5_clubs.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/6_clubs.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/7_clubs.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/8_clubs.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/9_clubs.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/10_clubs.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/11_clubs.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/12_clubs.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/13_clubs.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/14_clubs.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/2_diamonds.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/3_diamonds.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/4_diamonds.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/5_diamonds.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/6_diamonds.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/7_diamonds.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=higher&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/8_diamonds.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/9_diamonds.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/10_diamonds.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/11_diamonds.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/12_diamonds.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/13_diamonds.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf If StringInStr($aRecords[$x], "http://images.neopets.com/games/cards/14_diamonds.gif") Then _IENavigate($oIE, "http://neopets.com/games/tyranuevavu.phtml?type=play&action=lower&bs=1"); need your #1 pic web site here EndIf Next
  13. I cant refrence it by name, it is un named. How can I refrence it by id?
  14. Okay I made a script that selects the second form on the page. $oForm = _IEFormGetObjByIndex($oIE,2) _IEFormSubmit($oForm) But the probelm is about every 10 times, the form im looking to press isnt the number 2 on the page, so 1/10 it selects the wrong form. Any way to avoid this?
  15. I tried that but its not exactly what I need, what im trying to do is If one picture is on screen do one thing but If another picture is on screen do something else.
  16. Last question hopefully. I got the entire script working so Im like yay! Using this code $oForm = _IEFormGetObjByIndex($oIE,2) _IEFormSubmit($oForm) But the probelm is about every 10 times, the form im looking to press isnt the number 2 on the page, so 1/10 it selects the wrong form. Any way to avoid this?
  17. I need help on how to do a script that searchs a page for a certain picture ( i have the source of the picture) and depending on what picture it is, goes to a certain link. So If this picture is on screen go to this url, but if this other picture is on screen go to this other url.
  18. Few questions. 1. Why is there 2 $oForms in $oForm = $oForm = _IEFormGetObjByIndex($oIE,0) 2. In $oForm = $oForm = _IEFormGetObjByIndex($oIE,0) what does the ($oIE, 0) mean? 3. What would I put in the $oSubmit = _IEFormElementGetObjByName($oForm, "SubmitButton") "SubmitButton" part?
  19. So how can I fix this?
  20. ooo so I would use the _IEFormGetCollection() and then use the _IEFormGetObjByIndex() then _IEFormSubmit() ?
  21. Here is my scirpt. I hit 'm' once, the CD Tray opens. I hit 'm' again, the CD tray closes. I hit 'm' a third time, and instead of opening the CD tray again, nothing happens. What am I doing wrong?
×
×
  • Create New...