SteeLpwnage Posted May 4, 2010 Share Posted May 4, 2010 hey I'm still a greenie programmer so I need help with this script I get some errors and I don't know how to resolve them, so if any1 knows how to fix this script I would be gr8 expandcollapse popup#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 413, 43, 192, 124) $Pirate = GUICtrlCreateInput("Pirate", 24, 8, 121, 21) $Ocean = GUICtrlCreateInput("Ocean", 160, 8, 121, 21) $Run = GUICtrlCreateButton("Run", 304, 8, 75, 25, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Compression=0 #AutoIt3Wrapper_Add_Constants=n #AutoIt3Wrapper_Run_Tidy=y #AutoIt3Wrapper_Tidy_Stop_onerror=n #EndRegion ### START Koda GUI section ### Form=;**** Directives created by AutoIt3Wrapper_GUI **** #include <Misc.au3> $dll = DllOpen("user32.dll") $Ocean = GUICtrlCreateInput $Pirate = GUICtrlCreateInput $pos = MouseGetPos While 1 If _IsPressed("57", $dll) Then MouseClick("left") EndIf If _IsPressed("41", $dll) Then MouseClick("left") EndIf If _IsPressed("44", $dll) Then MouseClick("left") EndIf If _IsPressed("53", $dll) Then MouseClick("left") EndIf If _IsPressed("43", $dll) Then MouseGetPos WinWait("Puzzle Pirates - "$Pirate" on the "$Ocean" ocean", "") If Not WinActive("Puzzle Pirates - " $Pirate" on the " $Ocean"ocean", "") Then WinActivate("Puzzle Pirates - " $Pirate" on the " $Ocean"ocean", "") WinWaitActive("Puzzle Pirates - " $Pirate" on the " $Ocean"ocean", "") MouseMove(423, 381, 2) Send("a") MouseDown("left") MouseUp("left") MouseMove(31, 311, 2) Send("d") MouseDown("left") MouseUp("left") MouseMove($pos, 2) EndIf If _IsPressed("56", $dll) Then WinWait("Puzzle Pirates - " $Pirate" on the " $Ocean"ocean", "") If Not WinActive("Puzzle Pirates - " $Pirate" on the " $Ocean"ocean", "") Then WinActivate("Puzzle Pirates - " $Pirate" on the " $Ocean"ocean", "") WinWaitActive("Puzzle Pirates - " $Pirate" on the " $Ocean"ocean", "") MouseMove(636, 343, 2) MouseDown("left") MouseUp("left") EndIf WEnd Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 4, 2010 Moderators Share Posted May 4, 2010 SteeLpwnage,Please read this,then consider this extract from the Puzzle Pirates rules:6.Restrictions. You agree not to do any of the following prohibited actions: [...]13.modify any files or use any game hacking/altering/cheating software or tools, including scripting or macroing software,and ask yourself why anyone would help. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
SteeLpwnage Posted May 4, 2010 Author Share Posted May 4, 2010 SteeLpwnage, Please read this, then consider this extract from the Puzzle Pirates rules: 6.Restrictions. You agree not to do any of the following prohibited actions: [...] 13.modify any files or use any game hacking/altering/cheating software or tools, including scripting or macroing software, and ask yourself why anyone would help. M23 as I know this ain't any form of bitting or hacking because I still do the hard work only this is helping me so I don't have to constantly press the mouse button Link to comment Share on other sites More sharing options...
Valik Posted May 5, 2010 Share Posted May 5, 2010 "As [you] know" doesn't amount to much, apparently because it's a pretty clear and flagrant violation of the game's terms of use. Thread locked. Thanks for being failure #182498538375. Link to comment Share on other sites More sharing options...
Recommended Posts