Jump to content

Recommended Posts

Posted

what do you want to use? autoit?

i don't get your question (maybe i don't wanna get it :o)

ya to make a bot with auto it though i dunno how to make =( cuz i really need a pro to teach me on how to set the cursor to click on monsters automatically :">

Posted

ya but if i set the co ord for mouse it doesnt click on monster everytime since the monster moves around rather than stationary so i am just wondering if there is a way to detect the monster before auto clicking on it :o

Posted

Shouldn't there be a WEnd at the nd of that.

The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Posted

could you post the errors?

it supposed to search the entire desktop for the color red (0xFF0000)

you've got to look for the colour of your monster so it can click there (autoitwindowinfo)

maybe you should use scite

http://www.autoitscript.com/autoit3/scite/

its a lot easier to read

here is the autoitbeta

http://www.autoitscript.com/autoit3/files/beta/autoit/

cause i don't know if you might need that as well

Posted

well i pasted this into notepad :

while 1

$coord = pixelsearch (0,0,@desktopwidth,@desktopheight,0xFF0000,0,2)

;check the whole desktop for the color red

mouseclick ("left",$coord[0],$coord[1],1); click it

wend

and then ran it with autoit and also with a RPG game opened to Window mode but then it poped up

-----------------------------------------------------------

Line 18 (File "C:\..................................."):

Mouseclick("left",$coord[0],$coord[1],1);click it

mouseclick("left",$coord^ERROR

Error: Subscript used with non-Array variable

------------------------------------------------------------

Posted (edited)

as i said it's because of the color

try this 1, open this thread first

winactivate ("Just wondering can this be used for RPG game bot?")
send ("{lctrl}{home}")
while 1
$coord = pixelsearch (0,0,@desktopwidth,@desktopheight,0x000084,0,2)
if not @error then
mouseclick ("left",$coord[0],$coord[1],1); click it
msgbox (0, "", "Wow, I've just found this color!!!")
endif
wend
Edited by Nuffilein805
Posted

can u teach me so that it clicks in the game rather than on desktop and click on color like green or like an moving object that be awesome thx :">

Posted (edited)

actually it alt + tabbed to site and clicked on the blue font on the site and poped up message " i found blue" ehehe.. nice

Edited by -=HWD=-
Posted

i just told you, that you have to find the color!!! use autoitwindowinfo or this script

hotkeyset("!{f10}", "getcolor"); press alt+f10 to get the color
while 1
sleep (10)
wend
func getcolor()
$a = mousegetpos()
$b = pixelgetcolor ($a[0],$a[1])
msgbox (0, "", "The color is: " & $b)
endfunc

the time you have the color post it here and i'll help you

Posted

ok here is you script

hotkeyset("!{f9}", "start");alt+f9
hotkeyset("!{f8}", "stop");alt+f8

while 1
sleep (50)
wend

func start()
while 1
$coord = pixelsearch(0,0,@desktopwidth,@desktopheight,"0x"&hex(10850939,6),0,2)
if not @error then
mouseclick("left",$coord[0],$coord[1],1)
sleep(5000);sleeps 5 sec before next click
endif
wend
endfunc

func stop()
while 1
sleep (50)
wend
endfunc

start the script when you're in your game-window

it will sleep 5 sec between each click

good luck have fun

if you need more help just ask

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...