WannaLearnPls
Active Members-
Posts
31 -
Joined
-
Last visited
WannaLearnPls's Achievements
Seeker (1/7)
0
Reputation
-
Problems with "+" at input box
WannaLearnPls replied to WannaLearnPls's topic in AutoIt GUI Help and Support
Hmm you mean as for instance x+=1 as x=x+1? That's not what I meant but thanks though >_< All right! I've fixed it with the Send([Text], 1).. didn't realise of that parameter thingy.. thanks a lot -
Hi all, I've got a problem with the operator "+" at my input boxes.. My program reads a string of characters on an input box, and then types them back. Everything works all right, except for the "+" operator.. My guess is it is due to the "shifting" mode, and it takes the "+" as if I wanted to use the Shift key.. so, my question is, what key should I input if I want to have a "+" operator typed? I know it's a rather stupid question, but I've looked a bit on the search and haven't found it.. and I don't have much time right now >_< So.. thanks in advance to whoever could help me out with this little problem
-
Problem with Window Info Tool
WannaLearnPls replied to Jefferds44's topic in AutoIt General Help and Support
If you are trying to make a bot for a game or something, if it has nProtect and others (like GameGuard and such) you won't be able to read pixels or other info.. because they are being protected.. however, you could do it on a different way If that was not your intention, nevermind this post >_< -
Some Questions About Making a Bot
WannaLearnPls replied to italiano21's topic in AutoIt General Help and Support
Well, to start with, you could've done the identation better, so you wouldn't get mixed up while fixing the code.. and the same for whoever looks at your code Sorta like this HotKeySet("{F1}", "_start") HotKeySet("{F2}", "_exit") $xTop = 30 $yTop = 73 $xBot = 1002 $yBot = 692 $mobGreen = "0xA5AC94" $ON = False Opt("PixelCoordMode", 1) Opt("MouseClickDelay", 300) Sleep(6000) while 1 while $ON = True $coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$mobGreen,5) $n = @error If NOT @error Then while $n = 0 $x = Random($coord[0], $coord[0]+40, 1) $y = Random($coord[1], $coord[1]+40, 1) Sleep(150) MouseClick("left", $x, $y) Sleep(150) $mm = PixelGetColor ( 534 , 388 ) $mob = Hex($mm, 6) If $mob = "CD2718" Then ExitLoop EndIf WEnd EndIf WEnd $coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$mobGreen,5) $n = @error wend If $mob = "CD2718" Then while $mob = "CD2718" Send("{1}") Send("{3}") Send("{2}") Send("{5}") $mm = PixelGetColor ( 534 , 388 ) $mob = Hex($mm, 6) wend Else Send("{Right 7}") Endif Func _start() $ON = True EndFunc Func _exit() $ON = False EndFunc Regarding the MouseDown and MouseUp functions.. you could use the MouseMove(x,y) function before them, and then the mouse would move as well >_< Anyway, try a bigger delay.. say 500... if that doesn't work, try a bigger one till it works? About the exiting function.. you could just make a Func _exit() While 1 Sleep(500) WEnd EndFunc and that should work as well! Anyway, you got an If statement in there (If $mob = "CD2718") which is outside of your loop.. shouldn't it be on the inside? Good luck! -
if you could disable it just like that you would be able to make hacks and such as well... no fun >_
-
Hehe I know.. but.. the weird thing, as I said, was the timing.. For instance.. let's say I opened this thread at 5:00 pm.. then at 5:15 pm when i realised of my mistake, I edited it.. and at 5:25pm you somehow quotted me what I previously had written.. and if that happened I can only think that you hit the Quote button before 5:15pm, but you finished your reply at 5:25 pm.. Anyhow, nevermind >_<
-
Some Questions About Making a Bot
WannaLearnPls replied to italiano21's topic in AutoIt General Help and Support
Hehe certainly! I didn't get to see the code so I didn't notice that >_ -
Indeed.. I'm new around here, but I completely agree with you Doesn't matter the amount of lines.. If you don't specify what problem you got with your code, how are we supposed to know?? Anyhow, if you are trying to use this on a game or application with security, such as GameGuard, you won't be able to get the Control ID just like that... There might be a way, but I don't know it since I didn't bother to look for that yet.. And for what I've seen it's not likely you will get your answer on these forums as well >_<
-
Some Questions About Making a Bot
WannaLearnPls replied to italiano21's topic in AutoIt General Help and Support
Uhm, you might try that pixel function, but as I said, I'm new to AutoIt and I have yet to try those >_ -
Need help with Mouse / Autofire problem
WannaLearnPls replied to Toysrme's topic in AutoIt General Help and Support
If so, I guess he could add another HotKey to go into a function, and then use a loop with _IsPressed(), to know when to start the autoclicking, and viceversa.. and then another HotKey to stop him from being on these function? -
Well... You could use this function then $CurrentColor = PixelGetColor ( x , y ) You would need to compare $CurrentColor to the black colour you want to compare with (you need to know the exact "tone" of black. You can use the AutoIt Window Info for that). If they match, it means that pixel is now black, else, it is not.. For that you would need to know the pixel coords beforehand of course.. >_< In case you don't know the coords, you should make up a way to check specific places, unless there's already a function for that which I don't know of, which is possible considering I'm rather new to AutoIt I have not tried those pixel thingy stuff, but thats the way I'd do it if I were to
-
Need help with Mouse / Autofire problem
WannaLearnPls replied to Toysrme's topic in AutoIt General Help and Support
so, to sum up, you want to trigger a function when you click your mouse, and stop it when you click again? -
Some Questions About Making a Bot
WannaLearnPls replied to italiano21's topic in AutoIt General Help and Support
not sure about the pixel function as i have yet to try those... but regarding the clicks, you could try holding down a bit the click so it gives the game time to "recieve" the click... you can do that by Sleep(150) MouseDown("left") ;for left clicking.. or "right" for right clicking Sleep(300) MouseUp("left") Sleep(150) or Opt("MouseClickDownDelay", 300) ;this way all your clicks will be pressed for 0.3 seconds if those dont work... i got no idea what would it be.. hopefully this will work >_<