Hello!
This is the first time I can't get a website selected. I am trying to screen capture the whole page and then will filter through it. I open up IE, go to the website, let it load, then try to select all, copy the whole page and throw the info into a temp table but nothing gets populated. I have tried clicking on the IE page after the code ran and then trying running oie.ExecWB(17,1) & oie.ExecWB(12,1) and this time it will select everything. I have tried opening a random website and the ExecWB codes work just fine. I have done some searching but at a lost. I need this to be able to run by itself.
Does anyone know how to get the page selected without having to manually clicking the site in IE?
This is the first time I can't get a website selected. I am trying to screen capture the whole page and then will filter through it. I open up IE, go to the website, let it load, then try to select all, copy the whole page and throw the info into a temp table but nothing gets populated. I have tried clicking on the IE page after the code ran and then trying running oie.ExecWB(17,1) & oie.ExecWB(12,1) and this time it will select everything. I have tried opening a random website and the ExecWB codes work just fine. I have done some searching but at a lost. I need this to be able to run by itself.
Does anyone know how to get the page selected without having to manually clicking the site in IE?
Code:
Select a
Create Table Sys(2023)+[\detailimport] (Import C(250))
oie = Createobject([internetexplorer.application])
oie.Visible = .T.
lnav=[[URL unfurl="true"]https://www.pricecharting.com/game/pokemon-scarlet-&-violet/lightning-energy-257[/URL]]
oie.Navigate(lnav)
_Cliptext=[]
WaitForIE()
oie.document.getElementbyId([game_search_box]).focus(1)
oie.document.getElementbyId([game_search_box]).value = "Spidops ex #19 Pokemon Scarlet & Violet"
oie.document.forms(0).submit(1)
WaitForIE()
*!* INKEY(3)
oie.ExecWB(17,1) **************************
oie.ExecWB(12,1) **************************
Select a
Zap
Erase Tempz.txt
Strtofile(_Cliptext,[Tempz.txt],0)
Append From Tempz.txt Sdf
Set Deleted On
Delete For Len(Alltrim(Import))=0
Select detailimport
brow
PROCEDURE WaitForIE
DO WHILE oIE.Busy OR oIE.ReadyState <> 4
DOEVENTS
ENDDO
ENDPROC