Jump to content
Sign in to follow this  
affelol45

Pixelsearch and Send

Recommended Posts

affelol45

Hey Guys :)

Im really new at all of this scripting.

Im trying to make a program that will click a series of key if a certain pixel is present, however when I run the scrip all I get is some "bling" noices

Would appreciate some help :)

While $i <= 10

$coord = PixelSearch(627, 155, 661, 169, 0X2A0A22)

If Not @error Then

Send("DOWN")

Sleep(1000)

Send("DOWN")

Sleep(1000)

Send("DOWN")

Sleep(1000)

Send("UP")

Sleep(1000)

Send("Enter")

Sleep(1000)

EndIf

Edited by affelol45

Share this post


Link to post
Share on other sites
JohnQSmith

however when I run the scrip all I get is some "bling" noices

Make sure you're sending the keys to the correct program.


Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Share this post


Link to post
Share on other sites
affelol45

How would I do that? By using ControlSend ?

Share this post


Link to post
Share on other sites
JohnQSmith

Or a WinActivate to make sure it's in the foreground.


Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Share this post


Link to post
Share on other sites
affelol45

Hmm I just tested it with WinActivate, the keys got send but nothing happened hmm

Share this post


Link to post
Share on other sites
JLogan3o13

Hi, affelol45, what application are you trying to interact with? Based on the type of app, there may be other ways to do what you would like in the window.


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
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
Sign in to follow this  

×