Jump to content
Sign in to follow this  
Layanor

Will not always send

Recommended Posts

Layanor

Hello! 

For some reason, this code will not type the letter C for me all the time. 
   WinActivate("GAME")
   $select = PixelSearch (951, 191, 952, 192, 0x6701FF,1)
   if not(@error) Then
      Send("c")
      EndIf

It will only sometimes type C. However if my cursor is not in the GAME window, it will type C. When am I doing wrong?

Share this post


Link to post
Share on other sites
KickStarter15

Ooops!:D missed this Forum Rules.


Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.