Souls Posted December 17, 2006 Share Posted December 17, 2006 I made a LITTLE autoclicker that help me lvl in a game named Eternal Wars.It works fine but i realised that they make a random security test that can bann my account if my autoclicker continues.So heres the code:expandcollapse popup;AUTOCLICKER HotKeySet("{F2}", "msn") HotkeySet("{F11}", "HK_STOP") HotKeySet("{DEL}", "quit") Func msn() ;cliks while(1) Send("{TAB}") Send("{TAB}") Send("{ENTER}") Sleep(2400) Send("{TAB}") Send("{ENTER}") Sleep(2400) WEnd EndFunc ;Stops the program Func HK_STOP() while 1 = 1 Sleep(100) wend EndFunc ;the exit function Func quit() Exit EndFunc TrayTip("Souls Autoclicker", "DELETE= Exit", 5, 1) TraySetIcon("Shell32.dll",112) ; Need to keep the program running until you press the hotkey while(1) sleep(1000) WEndwhat I need now is someone to help me make a code so that when in the coordinate X:442 Y:478 there is a white color to stop the autoclicker immediately before it click tooo much.The games website is: Eternal WarsAnd my recruit page:Eternal Wars Link to comment Share on other sites More sharing options...
martin Posted December 17, 2006 Share Posted December 17, 2006 Have a look at PixelGetcolor in help file. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
CoePSX Posted December 17, 2006 Share Posted December 17, 2006 PixelGetColor is the answer. [quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"]╔══════════════════════════════╗║░░██░░░░░░░░██░░███░░░████░░░█║║░█░░█░░██░░█░░█░█░░█░█░░░░█░█░║║░█░░░░█░░█░████░███░░░██░░░█░░║║░█░░█░█░░█░█░░░░█░░░░░░░█░█░█░║║░░██░░░██░░░██░░█░░░░███░█░░░█║╚══════════════════════════════╝[/font] Link to comment Share on other sites More sharing options...
Souls Posted December 17, 2006 Author Share Posted December 17, 2006 I know how to do that and i know the color code but i dont know what is the script to make when in pixel x442y478 there is color 0xFFFFFF (white) Link to comment Share on other sites More sharing options...
Souls Posted December 17, 2006 Author Share Posted December 17, 2006 ok so what i need is the script of : If in coord 442 478 appears color 0xFFFFFF I need to stop the program If in coord 922 447 appears color 0x371617 I also need to stop the program thx in advance!!! Link to comment Share on other sites More sharing options...
James Posted December 17, 2006 Share Posted December 17, 2006 Make it sleep for a couple of seconds between each click XD Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Souls Posted December 17, 2006 Author Share Posted December 17, 2006 But what could be the code? If (442,478=0xFFFFFF) Then (exit) or something like that? plz post! Link to comment Share on other sites More sharing options...
CoePSX Posted December 17, 2006 Share Posted December 17, 2006 If (PixelGetColor (442, 478) = 0xFFFFFF) Then Exit EndIf [quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"]╔══════════════════════════════╗║░░██░░░░░░░░██░░███░░░████░░░█║║░█░░█░░██░░█░░█░█░░█░█░░░░█░█░║║░█░░░░█░░█░████░███░░░██░░░█░░║║░█░░█░█░░█░█░░░░█░░░░░░░█░█░█░║║░░██░░░██░░░██░░█░░░░███░█░░░█║╚══════════════════════════════╝[/font] Link to comment Share on other sites More sharing options...
Souls Posted December 17, 2006 Author Share Posted December 17, 2006 thx ^^ Link to comment Share on other sites More sharing options...
Souls Posted December 17, 2006 Author Share Posted December 17, 2006 (edited) Oh no something bad happened As soon that i start the program it closes! edit: ok fixed it ^^ Edited December 17, 2006 by Souls Link to comment Share on other sites More sharing options...
CoePSX Posted December 17, 2006 Share Posted December 17, 2006 Maybe you should replace the Exit command by something that doesn't close the program. [quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"]╔══════════════════════════════╗║░░██░░░░░░░░██░░███░░░████░░░█║║░█░░█░░██░░█░░█░█░░█░█░░░░█░█░║║░█░░░░█░░█░████░███░░░██░░░█░░║║░█░░█░█░░█░█░░░░█░░░░░░░█░█░█░║║░░██░░░██░░░██░░█░░░░███░█░░░█║╚══════════════════════════════╝[/font] Link to comment Share on other sites More sharing options...
Souls Posted December 17, 2006 Author Share Posted December 17, 2006 Ok so here is the new code. Check it for errors expandcollapse popup;AUTOCLICKER HotKeySet("{F2}", "msn") HotkeySet("{F11}", "HK_STOP") HotKeySet("{DEL}", "quit") Func msn() ;clicks while(1) Send("{TAB}") Send("{TAB}") Send("{ENTER}") Sleep(2400) Send("{TAB}") Send("{ENTER}") Sleep(2400) WEnd EndFunc ;Stops the program Func HK_STOP() while 1 = 1 Sleep(100) wend EndFunc ;the exit function Func quit() Exit EndFunc If (PixelGetColor (442, 478) = 0xFFFFFF) Then Exit EndIf If (PixelGetColor (922, 447) = 0x371617) Then Exit EndIf TrayTip("Souls Autoclicker", "DELETE= Exit", 5, 1) TraySetIcon("Shell32.dll",112) ; Need to keep the program running until you press the hotkey while(1) sleep(1000) WEnd Link to comment Share on other sites More sharing options...
CoePSX Posted December 17, 2006 Share Posted December 17, 2006 Shouldn't the pixel checking be inside the clicking function? [quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"]╔══════════════════════════════╗║░░██░░░░░░░░██░░███░░░████░░░█║║░█░░█░░██░░█░░█░█░░█░█░░░░█░█░║║░█░░░░█░░█░████░███░░░██░░░█░░║║░█░░█░█░░█░█░░░░█░░░░░░░█░█░█░║║░░██░░░██░░░██░░█░░░░███░█░░░█║╚══════════════════════════════╝[/font] Link to comment Share on other sites More sharing options...
Souls Posted December 17, 2006 Author Share Posted December 17, 2006 like: Func msn() ;clicks If (PixelGetColor (442, 478) = 0xFFFFFF) Then Exit EndIf If (PixelGetColor (922, 447) = 0x371617) Then Exit EndIf while(1) Send("{TAB}") Send("{TAB}") Send("{ENTER}") Sleep(2400) Send("{TAB}") Send("{ENTER}") Sleep(2400) WEnd EndFunc like this or how? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now