My current method of doing this is:
Code: Select all
Send ^a^c
If InStr( Clipboard, "stopping variable" )
Break
Code: Select all
Send ^a^c
If InStr( Clipboard, "stopping variable" )
Break
Code: Select all
Clipboard := ""
Loop,
{
Send ^a
Sleep 50
Send ^c
Sleep 100
}Until Clipboard
If InStr( Clipboard, "stopping variable" )
Break
This is a great addition - honestly the select all method has been working so far and it's quick enough that I suppose I don't need to fix what ain't broke.Sir Teddy the First wrote: ↑26 Aug 2019, 13:26You could try WinText, possibly with DetectHiddenText on, but as I am not using Chrome myself, I'm not entirely sure that this will work.
Despite that, you could increase your chance of success by adding a sleep command inbetween the send-command, maybe even a second loop that checks your clipboard, like this:
This way you could be sure that the script actually copied something from the website.Code: Select all
Clipboard := "" Loop, { Send ^a Sleep 50 Send ^c Sleep 100 }Until Clipboard If InStr( Clipboard, "stopping variable" ) Break
Users browsing this forum: famko, Sharon, teadrinker and 38 guests