Chimerians

Help with basic script

11 posts in this topic

#1 ·  Posted (edited)

Hello guys, im new in this forum and i'm looking for help to make a basic script, this script should be like

Focus in 1 active window

Search for "a" pixel colour on (x,y coordinate)
if colour "a" found then  press F1
wait(y seconds)

Search for "b" pixel colour on (x,y coordinate)
if colour "b" found then  press F2
wait(y seconds)

Search for "c" pixel colour on (x,y coordinate)
if colour "c" found then  press F3
wait(y seconds)

and the script should be always running until I close it

couldnt someone help me with this?

Edited by Chimerians

Share this post


Link to post
Share on other sites



#2 ·  Posted

Welcome,

12 minutes ago, Chimerians said:

couldnt someone help me with this?

Help as in coding it for you or did you already do some research? :)
What is it for as this feels like game automation to me?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted

Just now, Jos said:

Welcome,

Help as in coding it for you or did you already do some research? :)
What is it for as this feels like game automation to me?

Jos

Hi jos, I did some research and im still searching, i dont have any skills at coding but im trying to learn and do something.

This is not related to any game but to make my professional life easier.

Share this post


Link to post
Share on other sites

#4 ·  Posted

Just now, Chimerians said:

This is not related to any game but to make my professional life easier.

Care to share what that is as checking for pixels is in general not the best approach?
Rather use WinXXXX and ControlXXXX  functions for automation of  windows applications.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

There are tests that youre required to press X key if a certain image appears, not everyone plays games here, I requested some help, if you want to help me with my request im really thankful, if not, thank you alot anyway

Edited by Chimerians

Share this post


Link to post
Share on other sites

#6 ·  Posted

Not sure why you are remaining vague and actually somewhat "in attack mode" when I ask some questions. 
I am fine when you don't want to share more details and wish you lots of success with your scripting.

Over-and-out,
Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#7 ·  Posted

1 minute ago, Jos said:

Not sure why you are remaining vague and actually somewhat "in attack mode" when I ask some questions. 
I am fine when you don't want to share more details and wish you lots of success with your scripting.

Over-and-out,
Jos

I'm sorry Jos, but youre the only one here in "attack mode", I asked for help, you said that this looks like game automation, I said its not and explained you the situation, now you said i'm beeing "vague", you want my to write in here the name of the company i work for and perhaps my emplo number? Like i said before, if you want to add something usefull to my script, im very thankful

 

Best regards

Share this post


Link to post
Share on other sites

#8 ·  Posted

16 minutes ago, Jos said:

Care to share what that is as checking for pixels is in general not the best approach?
Rather use WinXXXX and ControlXXXX  functions for automation of  windows applications

I do not see what could be making you feel attacked in this reply after you stated it isn't for a game.
Would think this is a pretty open question with some advice in it.

Like i said ...  I am done with you as it seems like you feel very defensive about my initial question about gaming and that is really your problem.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#9 ·  Posted

2 minutes ago, Jos said:

I do not see what could be making you feel attacked in this reply after you stated it isn't for a game.
Would think this is a pretty open question with some advice in it.

Like i said ...  I am done with you as it seems like you feel very defensive about my initial question about gaming and that is really your problem.

Jos

No one is beeing "defensive" about anything, its just like you didnt add any value to the topic

Share this post


Link to post
Share on other sites

#10 ·  Posted

My 2 cents worth:
Pixel based operations are not very reliable as they depend on screen size, resolution, window position, user interaction etc.
That's why we suggest Win* or Control* functions.
To give more detailed advice we need to know what you exactly try to achieve, what you have tried before (please post your code), and what - if anything - went wrong (please post detailed error description plus what you get in the SciTE output pane).


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#11 ·  Posted

BTW: Could you please give meaningful titles to your threads as everyone on this forum is looking for help ;)
The more information you provide the more help you'll get :)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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