nier10 Posted September 20, 2012 Share Posted September 20, 2012 (edited) Hi i have been researching for some stuff's about how to make this run on background. I tried installing vmware and it seems it doesn't work. Any help is very much appreciated WinWaitActive ("TITLE"); HotKeySet('{enter}', '_Exit') Func _Exit() Exit EndFunc $Mobcolor = 0x15181E $Sel = "Left" $i = 0 While $i <= 10 $coord = PixelSearch( 7, 28, 1669, 1041, $Mobcolor ) If Not @error Then MouseClick ($Sel, $coord[0], $coord[1],5,0) Sleep (15000) endif WEnd Edited September 20, 2012 by nier10 Link to comment Share on other sites More sharing options...
boogieoompa Posted September 20, 2012 Share Posted September 20, 2012 Something like this? Just replace the Msgbox with whatever pixel function you need. Also I would guess that controlclick is a better option than mouseclick. local $win = "Untitled - Notepad" HotKeySet('{enter}', '_Exit') While 1 WinWaitActive($win) ;turns on hot keys Sleep(1000) MsgBox(0,"","Notepad is Active!") WEnd Func _Exit() Exit EndFunc Link to comment Share on other sites More sharing options...
JohnOne Posted September 20, 2012 Share Posted September 20, 2012 it seems it doesn't work. You're right it does not work, and it wont, pixelsearch needs the window to be visible on the screen. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Venix Posted September 20, 2012 Share Posted September 20, 2012 (edited) $MobcolorJust to clarify I hope you’re not trying to make a game bot, I know "Mob" is a term that is often related to creatures that you kill in a game. The factor that you want to do pixel searches in the background also makes me think you could be trying to make a bot.Sorry if I misjudge your intentions but please check out the rules if you haven’t done so already. Edited September 20, 2012 by Venix 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