Jump to content

Mousemove in fps.


Recommended Posts

maybe you give the source code so we know what you did wrong hmh ?

Have Questions About GUI (Graphical User Interface) ? Post Them Here :GUI Help And Support ForumHave Questions About General AutoIt ? Post Them Here : General Help And Support ForumNew To AutoIt ? Be Shure To Check Out The FaQ's (Frequently Asked Questions) Or FaQ ยน There You May Find Great Help That Will Guide You True The Wonderful Programming Language AutoItOthere Good Place To Get Some Knolage Of AutoIt Is The Example Script ForumNotice A Bug ? Please Go And Report it At Bug Report Section And Help The Devolepers Of AutoIt Update And Fix The Programming LanguageWant To Thank The People For This Great Forum And Programming Language ? Then DonateWhen You Found The Answer Your Looking For Please Add [Resolved] To The Thread's Name That Will Show Otheres That You Have Found What Your Looking For And They Whount Have To Enter The Thread.

Link to comment
Share on other sites

Here

HotKeySet("{F5}", "_PixelSearch") 
HotKeySet("{F6}","_stop") 

Func _PixelSearch() 
   While 1 
    $i=mousegetpos()
    $coord = PixelSearch ($i[0]-100,$i[1]-100,$i[0]+100,$i[1]+100, 0x725F4D) 
    If IsArray($coord) Then
    MouseClick('left', $coord[0], $coord[1], 1, 10)
    EndIf
   WEnd 
EndFunc 

Func _stop() 
   While 1 
      Sleep(100) 
   WEnd 
EndFunc 

While 1 
sleep(10) 
WEnd
Edited by bf2forlife
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...