Rymwa Posted December 23, 2020 Share Posted December 23, 2020 Good afternoon, everyone! Been lurking around the forums searching the past couple of days, but couldn't find anything that I particularly have in my mind, so decided to create an account and ask. Basically, I have created a script/automation process for something, but currently it works for everything and anything at hard-coded top, bottom, x, y boundaries of my screen. The script right now takes color1 of a pixel on mouse position then color2 of another at another position and runs a for loop to a user inputted number of times, clicking at color1 position. After it ran it the number, it clicks color2 and then basically waits for either me to terminate the script or input a number for the loop to run again n times at color1 and once at color2 at the end again. My two main questions are: 1. Is it possible to somewhere in the script incorporate some code that you would get a prompt asking to input a window name/title and for the loop to work only in that window's borders? 2. Would it also be possible to make the mouse clicks happen there without interfering with the actual mouse that I need to use while the script is running? Help and examples are needed and highly appreciated! Can also include the code I'm running if needed. Thanks in advance Link to comment Share on other sites More sharing options...
Nine Posted December 23, 2020 Share Posted December 23, 2020 Yes providing the code would greatly help. Can you tell us what is the application you are trying to automate ? PixelSearch and MouseClick are really the worst way to interact with a Windows Apps. Use this tool, when posting code. Thanks. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now