Jump to content

Send


Recommended Posts

Why will this not Send("{8}"), it will click left click just fine but, I would rather it Send("{8}"). If I comment out ;Send("{8}") and uncomment LC($pixels[0],$pixels[1]) it works perfectly

LC is a Left Click function I have made and it works just fine

Thank you

func _SummonPets()

      Global $Pets = False

   while(Not($Pets))
      $pixels = PixelSearch(1780,1407,1782,1409,0x295219,1)

      if NOT(@error) Then
         ;LC($pixels[0],$pixels[1])
         Send("{8}")
         GUICtrlSetData($CastPet, "Pets")
         sleep(5500)
      EndIf

     WEnd

EndFunc

Link to comment
Share on other sites

  • Developers

Which program are you automating that has Pets that you can Cast? (Maybe it would be good to read our forum rules first.)
What exactly do you want to send? an 8 or the 3 characters "{8}"? 

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...