Jump to content

moneypulation

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by moneypulation

  1. Works like a charm Thanks!
  2. Hey guys I wanna create a tool I can save time and nerves with. It will press keys for me till I want to stop but that is exactly my problem. I want to create a pause function so I don't have to restart the autoit script again. The script I made looks like this: Func go() Local $hDLL = DllOpen("user32.dll") $ispressed = _IsPressed("51",$hDLL) Do Send("a") Sleep(500) Send("b") Sleep(500) Until $ispressed = 1 DllClose($hDLL) EndFunc But it won't react to my hotkey (Q) and keep writing abababab and so on. So, how can I improve this script? Maybe use another loop? Thanks for helping sincerly, money
  3. It's just a cool name in my opinion because it combines money with manipulation where you can interpret alot from but that's not the topic here No I just want to test something on moving pictures (video so to speak) and the efficiency of reacting to pictures. This doesn't have to deal with a gamebot. The function name is more or less random because I'm not far enough to code what to do next because I'm stuck with this problem Please just post help and don't discuss about my script being illegal :/
  4. Ok I'll try the exitloop. My username? I made it up in my mind, why?
  5. Hello, I want to use the ImageSearch function in order to search 10-15 different 15x15 Pixel pictures. But the problem is that the pictures are from a GIF you could say. So I'm just looking for one picture of it. Using ImageSearch to find 1 picture in a gif, there is no problem. But when I do something like 10 If functions to find one of the 10 pictures, the script doesn't find them: While 1 $IS = _ImageSearch("weissgelb.png",1,$outputx,$outputy,40) If $IS = 1 Then MouseClick("left",$outputx,$outputy,1) wartenaufglitzieinsammlung() EndIf $IS = _ImageSearch("gelb.png",1,$outputx,$outputy,40) If $IS = 1 Then MouseClick("left",$outputx,$outputy,1) wartenaufglitzieinsammlung() EndIf $IS = _ImageSearch("gruenblau.png",1,$outputx,$outputy,40) If $IS = 1 Then MouseClick("left",$outputx,$outputy,1) wartenaufglitzieinsammlung() EndIf $IS = _ImageSearch("orange.png",1,$outputx,$outputy,60) If $IS = 1 Then MouseClick("left",$outputx,$outputy,1) wartenaufglitzieinsammlung() EndIf $IS = _ImageSearch("weissgruen.png",1,$outputx,$outputy,40) If $IS = 1 Then MouseClick("left",$outputx,$outputy,1) wartenaufglitzieinsammlung() EndIf $IS = _ImageSearch("blaugelb.png",1,$outputx,$outputy,40) If $IS = 1 Then MouseClick("left",$outputx,$outputy,1) wartenaufglitzieinsammlung() EndIf $IS = _ImageSearch("hellblaugelb.png",1,$outputx,$outputy,50) If $IS = 1 Then MouseClick("left",$outputx,$outputy,1) wartenaufglitzieinsammlung() EndIf $IS = _ImageSearch("rotlila.png",1,$outputx,$outputy,50) If $IS = 1 Then MouseClick("left",$outputx,$outputy,1) wartenaufglitzieinsammlung() EndIf WEnd My thesis is that while my desktop shows the fitting picture for picture 3, the script is actually searching for picture 11 so it doesn't react to picture 3. This way of searching many pictures is inefficient in my opinion so does someone know how to improve my script? With ImageSearchArea I would just get minimal improvement because I'm looking for almost my complete desktop. And also 15x15 pixel is the minimum size for the pictures because otherwise the script doesn't find them anyway. Or maybe there is a better function than ImageSearch in order to search for several pictures. Maybe also important information: When the script found one of the pictures I want to start a new function so it won't search anymore for the pictures. Maybe there is also an alternative or something that makes it more efficient than my actual script My mother language is not english so feel free to ask me if you didn't understand something sincerly money
×
×
  • Create New...