
WannaLearnPls
Active Members-
Posts
31 -
Joined
-
Last visited
Everything posted by WannaLearnPls
-
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 >_< -
well, there is a function to read pixels and to see what color are they, and to notice if they changed or not.. so yah, it should be doable >_< however i have yet to find out how do those functions work, as im new to AutoIt anyhow, here ya go Q19.How can I use Pixel functions ? A1.PixelCheckSum $PixelCheck=PixelChecksum(40,50,70,60) ;Check if a region of pixel has changed While 1 ;Always Check for Pixel If IsArray($PixelCheck)=1 Then ;If Pixel Region has changed (color) Then Msgbox(48,"PixelChecksum","Pixel region has changed !") EndIf WEnd taken from a great FAQ in here
-
ehh i did... i did edit this thread O_o what do you see on the 1st post of this thread?? cause i see "argh... wrong section :/ " about the title yah, my bad.. i was in a hurry when i noticed this and had no time to change it
-
You mean this? HotKeySet("{F5}", "_QuitApp") HotKeySet ("{F3}", "Print") while 1 Sleep(2000) Wend Func Print() Run("notepad.exe") Sleep(1000) Send("aaaaaaaa") EndFunc Func _QuitApp() Exit EndFunc I was taught this by a forum user last night I was trying with if statements and _IsPressed function, but this one is much better.. whenever you press F3, it will open a notepad and type "aaaaaaa" and with F5 it will close the script.. Of course, this is a mere example only, you can change the functions to whatever you want Hope it helps >_<
-
i was using _IsPressed function between if statements, but i already got the answer from the other forum, thanks though >_< however, its odd that you were able to quote me a while later after i edited my 1st post.. unless you took a lot of trouble to reply and took you all that time.. either way, thanks again!
-
omg, I didnt know that function worked like that... I just used _isDigit and if statements... my bad then i suppose, gonna try it out.. im still new at this :S Thanks for your reply! >_< uhm if you mean the one at the GUI forum, yah, i didnt intend to post this there, thats why i edited that thread about 2 mins later after posting it.. i would have deleted it if i knew how ;x
-
So.. I want to stop running my script when I press a hotkey (lets say f5) WHENEVER I want.. I know how to detect what key is pressed and such BUT since my script has a bunch of loops, I'd have to press f5 when that loop is over, or hold it, so the keystroke can be detected at the right IF statement... ...I was wondering if there was such thing to make a hotkey that no matter where the algorythm is at, it can help me exit the script or redirect it to a different function.. Hope you guys can get what I mean Thanks in advance >_<
-
argh... wrong section :/
-
try adding Sleep(100) right before "send($text)" and see how it goes >_< and do the same to any other loop you may have as main, considering what you posted was nothing but A function