I've been using AHK for a couple of years, but today ran into an error that I haven't experienced before, and searching for solutions or similar situations didn't help...
First, the code in question:
Code: Select all
Loop, %times
{
; selecting search term
clipboard := % searchterm
Send ^E
Sleep 1000
Send ^V
Sleep 1000
Send {Enter}
Sleep 3000
; grab page data
}
This is meant to be run in combination with Edge and Chrome: basically, grab direct search results for an external list of research terms. It seems as though the 3 Send commands only execute with the first pass of the loop. I've tried different AHK installs on this particular computer and tried changing the loop's execution (open the browser, execute the send commands, etc.), but so far the Send commands only works properly on the first loop. The Sleep commands are still being executed in each loop, though.
This feels so weird and is bugging me so much. Any advice or pointers would be amazing! Thank you!