I have an ahk that does a repetitive task on a webpage.
I want to make it detect if a specific button is available in the page before it starts performing the task, otherwise it has to just close the tab.
How can I do that?
If/then statements?
-
- Posts: 1472
- Joined: 05 May 2018, 12:23
Re: If/then statements?
how are you loading the webpage? comobj ie? win http? just running regular chrome?
Re: If/then statements?
I just start chrome, open up 100-200 tabs and let the script run. I just can't use the pc while the script runs but for now I am okay with that.AHKStudent wrote: ↑28 May 2022, 02:00how are you loading the webpage? comobj ie? win http? just running regular chrome?
-
- Posts: 1472
- Joined: 05 May 2018, 12:23
Re: If/then statements?
in that case I would use imagesearch for the button https://www.autohotkey.com/docs/commands/ImageSearch.htmJimmyDee wrote: ↑28 May 2022, 13:23I just start chrome, open up 100-200 tabs and let the script run. I just can't use the pc while the script runs but for now I am okay with that.AHKStudent wrote: ↑28 May 2022, 02:00how are you loading the webpage? comobj ie? win http? just running regular chrome?