I want to make a bot for mff. an auto plant and water bot, but how can i make it click every square 1 time?
Edit:
sry i forgot the $y part of the loop before... here's the correct one:
Code:
Dim $middleOfTheFirstRect[2] = [<x>,<y>], $widthOfRects = <width>, $heightOfRects = <heigth>
For $x=0 To 11
For $y=0 To 9
MouseClick('left', $middleOfTheFirstRect[0]+$x*$widthOfRects, $middleOfTheFirstRect[1]+$y*$heightOfRects, 1, 0)
Next
Next
Can you explain me where to add it and if i to edit something
and can you maybe explain me how it works/ what it means?
I am a beginner. I began yesterday.
Can you explain me where to add it and if i to edit something
and can you maybe explain me how it works/ what it means?
I am a beginner. I began yesterday.
for loops are incrementing the given variable from the given start, to the given endpoint...
Code:
For <variable>=<startpoint> to <endpoint>
<action>
Next
for example:
Code:
For $variable=1 to 5
MsgBox(0, "for loop example", "current value of "&$variable>)
Next
is equal to:
Code:
MsgBox(0, "for loop example", "current value of 1")
MsgBox(0, "for loop example", "current value of 2")
MsgBox(0, "for loop example", "current value of 3")
MsgBox(0, "for loop example", "current value of 4")
MsgBox(0, "for loop example", "current value of 5")
so all you have to do is looping through the x and y coordinates in your case...
using 2 for-loops would be a nice and clean way to do that.
starting @ the middle of the first rectangle and walk through them all, by simply increasing the coordinates by width and heigth of the rects...
Ok i added this in my bot but it goes from top to bottom i want to go it from left to right :$
and if someone does have another screen resolution does it work then?
Ok i added this in my bot but it goes from top to bottom i want to go it from left to right :$
and if someone does have another screen resolution does it work then?
it handles the inner loop first...
simply change the order of the loops, to make it go from left to right first.
in order to get the middle of the first rect, you could used pixelsearch.
it handles the inner loop first...
simply change the order of the loops, to make it go from left to right first.
in order to get the middle of the first rect, you could used pixelsearch.
I just found out that loops
but if i want to use pixelsearch for what do i have to seek then? the whole screen(where you plant) or just 1 rectangle? and can you make a bot scroll down so it makes sure that you can see the whole screen(where you plant)
I just found out that loops
but if i want to use pixelsearch for what do i have to seek then? the whole screen(where you plant) or just 1 rectangle? and can you make a bot scroll down so it makes sure that you can see the whole screen(where you plant)
if you wanna make it work in any case, you'll have to switch to paket based stuff.
pixelbased bots will allways find their limits... since you can't hande the users browser settings, scrolling down won't fix any problems... pixelsearch will only work, if the pixel you're looking for, is currently visible on the users screen.
you can also use controlclick so it clicks on parts of the screen that are not visible.
or if you want it to farm while you are afk then you can also use winhttp.
NOZER'S FREE ELO BOOSTING - LIMITED TIME ONLY [CLICK HERE] 07/21/2013 - League of Legends Trading - 27 Replies LIMITED TIME ONLY
Proof:http://puu.sh/3cOXY.jpg
Hey ePVP, I'm fairly new to this community and have been offering ELO boosts for a while now. So far I've had 10+ customers so far, but many vouches. As of recently, one vouch went extremely sour and I noticed that a main factor in people trusting my service is a large amount of reputation/trades. In light of this, I am offering some free boosts. If you are interested, please add me on skype: nozerlol
Requirements:
I can only boost 1-2...
If you know any 90 cap private server click me, if not don't waste your time 03/31/2012 - SRO Private Server - 8 Replies Hello everyone! I opened this topic to ask for a 90 cap private silkroad server if there is any, I'm tired of searching for one, maybe I'm blind and can't see it so if you know any please reply :) Thanks a lot
C++ Rectangle Hilfe 12/21/2010 - C/C++ - 5 Replies Hey,
ich brauche mal kurz Hilfe.
Es geht darum, dass dieses Rextangle(viereck), wenn ich mit der Pfeiltaste nach unten drücke um 10 nach unten gesetzt werden soll. Nur kommen da 2 Fehler beim erstellen
void D3D9Menu::Boarderstest(LPDIRECT3DDEVICE9 pDevice,ID3DXFont* pFont)
{
if(GetAsyncKeyState(VK_DOWN)&1)
{
DrawRectangle(pDevice,10,10,150,10,1,MenuRahmen3) = DrawRectangle(pDevice,10,10 +10,150,10,1,MenuRahmen3);
Looking for Program that records mouse click time 12/05/2006 - Conquer Online 2 - 1 Replies what the topic says, anyone know of anything? I want to know the exact times (down to the second) when i left click/ right click my mouse in the game