Jump to content

Dariorio

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Dariorio

  1. AutoBert I know, I'm just experimenting. Yesterday was like day 2 I know AutoIt.
  2. Okay so that is very strange, it works perfectly with that site and that color. But not with the site I use.. Maybe it's a very strange color ?? That's my theory. Thanks so much for helping
  3. Ok so muffin, I tried it without the "0x" but it still doesn't work ..
  4. First, I want to thank you, there is only one little problem left. You put the "0x" in front of the color so the program recognises it as a color. Now when I try and run the script it gives an error: "error: syntax error". Just don't know how to fix that so yea :$
  5. Okay so, I have an other topic running but wasn't providing enough information so I hope if I start this topic with all the information provided that I will get help. So I have no "GOAL". I'm just experimenting with AutoIt. But I got stuck, I wanted to move the mouse every 1 second to a different spot in a specified area on the screen and if the mouse moved to a specific color it would click. But the problem now is, it isn't working and I dont know why. I use this site for testing my script: http://mrdoob.com/#/106/checkbox_painter . So.. When my mouse jumps on a checkmark it should click but it doesn't and I hope you guys can help me! Thanks in advance. This is the script I got for now: HotKeySet("{F4}", "MyExit") $pos = MouseGetPos() Global $color1 = 0xDEDEDE Global $color2 = PixelGetColor While(1) $posx = random(4,1915) $posy = random(184,1014) MouseMove( $posx, $posy) sleep(1000) PixelGetColor($pos[0], $pos[1]) if $color1 == $color2 Then MouseClick("Left") sleep(200) Else sleep(100) EndIf WEnd func MyExit() Exit EndFunc
  6. Yea true, do you have enough information to help, I have no other information..
  7. Also, the URL is: http://mrdoob.com/#/106/checkbox_painter (Was not sure if I'm allowed to put links in)
  8. Well It's not really important what I want to click on because I'm just experimenting with AutoIt since I'm new to the program. The point is that I can't figure out how to automatically click on a color when the mouse hovers over it. Really hope someone could help me.
  9. Alright yeah my bad. I'm trying to randomise my mouse movement and when it hits a certain color I want it to click. I don't get any errors what so ever, but when my mouse jumps on the color (As it should) the script doesn't click.. And I can't figure out why excactly. I'm trying to click on a regular checkmark button by the way. Thanks for the fast reply also! I hope this is enough information
  10. First off, Hello everyone I'm new to AutoIt and the forums here. So.. I want to automatically click if the color of the pixel is equal to $color1 But I just can't get it to work so anyone who could give me a solution with explanation would be perfect! Here is my code and thanks in advance! HotKeySet("{F4}", "MyExit") $pos = MouseGetPos() Global $color1 = 0xDEDEDE Global $color2 = PixelGetColor While(1) $posx = random(4,1915) $posy = random(184,1014) MouseMove( $posx, $posy) sleep(1000) PixelGetColor($pos[0], $pos[1]) if $color1 == $color2 Then MouseClick("Left") sleep(200) Else sleep(100) EndIf WEnd func MyExit() Exit EndFunc
×
×
  • Create New...