Jump to content

winwaitactive


Recommended Posts

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

#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

  • Moderators

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. :idea:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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. :idea:

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

"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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...