The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Difference between revisions of "Clicker Macro"

From A Tale in the Desert
Jump to navigationJump to search
m (New page: <pre> // Repeat Clicker // coded by: kibble // Instructions: Start the macro and hold the mouse cursor over the spot you wish to click // and wait for the macro to start. It...)
 
m
Line 10: Line 10:
 
constants
 
constants
 
   objWindow = eGenesis Client        // <-- Program Window Title
 
   objWindow = eGenesis Client        // <-- Program Window Title
 +
  Action = leftclick                // <-- Action to perform (keys d for dig)
 
   intCount = 500                    // <-- Number of Times to Repeat
 
   intCount = 500                    // <-- Number of Times to Repeat
 
   intDelay = 25                      // <-- Delay in seconds between clicks
 
   intDelay = 25                      // <-- Delay in seconds between clicks
Line 26: Line 27:
  
 
mousepos MousePnt[1], MousePnt[2]
 
mousepos MousePnt[1], MousePnt[2]
leftclick
+
$Action
  
 
// Main
 
// Main
Line 33: Line 34:
 
   setactivewindow $objWindow
 
   setactivewindow $objWindow
 
   mousepos MousePnt[1], MousePnt[2]
 
   mousepos MousePnt[1], MousePnt[2]
   leftclick
+
   $Action
 
end
 
end
 
</pre>
 
</pre>

Revision as of 01:06, 5 February 2009

// Repeat Clicker
// coded by: kibble

// Instructions: Start the macro and hold the mouse cursor over the spot you wish to click
//               and wait for the macro to start. It will save the location, you can move the
//               cursor after the macro starts.

// Declares
constants
  objWindow = eGenesis Client        // <-- Program Window Title
  Action = leftclick                 // <-- Action to perform (keys d for dig)
  intCount = 500                     // <-- Number of Times to Repeat
  intDelay = 25                      // <-- Delay in seconds between clicks
end                                  // 15 = fish, 25 = limestone/dirt(no food)

constructs
  MousePnt = list
end

// Init
SetActiveWindow $objWindow
delay 3 sec                          // <-- Delay before the macro saves the mouse position
listadd MousePnt, {MouseX}
listadd MousePnt, {MouseY}
delay 2 sec                          // <-- Delay before the macro starts after getting mouse position.

mousepos MousePnt[1], MousePnt[2]
$Action

// Main
loop $intCount
  delay $intDelay sec
  setactivewindow $objWindow
  mousepos MousePnt[1], MousePnt[2]
  $Action
end