what's wrong with the code?
Code: Select all
clipboard =
base := "https://www.google.com"
IE := ComObjCreate("InternetExplorer.Application")
IE.Navigate(base)
Loop
if (IE.readyState = 4) ; wait for page to load
Break
ControlSend , Internet Explorer_Server1, ^a, ahk_class IEFrame
Sleep, 100
ControlSend , Internet Explorer_Server1, ^c, ahk_class IEFrame
ClipWait, 5 ; wait for the clipboard to contain data
IE.Quit ;exit internet explorer window
MsgBox '%clipboard%'