Jump to content

Need help on how to make this to run on background (pixelsearch)


nier10
 Share

Recommended Posts

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 by nier10
Link to comment
Share on other sites

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

$Mobcolor

Just 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 by Venix
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...