I want to set the focus and the cursor in a specific inputbox of a website. Example Ebay's login.
In a VBS script that will work with something like this code:
The same kind of code in VFP won't work. No errors but the focus stays in the default field.
How come? And is it possible to let it work properly directly in VFP? Of course I can execute a VBS from within VFP with ShellExecute but is it possible to make the above VFP code work?
In a VBS script that will work with something like this code:
Code:
Set ie = CreateObject("InternetExplorer.Application")
ie.navigate "[URL unfurl="true"]https://signin.ebay.com/ws/eBayISAPI.dll?SignIn&ru=http%3A%2F%2Fwww.ebay.com%2F"[/URL]
ie.Visible = True
do while ie.readystate<>4
loop
ie.document.getElementbyId("pass").focus()
ie.document.getElementbyId("pass").select()
The same kind of code in VFP won't work. No errors but the focus stays in the default field.
Code:
ieo=createobject("InternetExplorer.Application")
ieo.navigate("[URL unfurl="true"]https://signin.ebay.com/ws/eBayISAPI.dll?SignIn&ru=http%3A%2F%2Fwww.ebay.com%2F")[/URL]
ieo.visible=.t.
do while ieo.readystate<>4
=inkey(0.1)
enddo
ieo.document.getElementbyId("pass").focus()
ieo.document.getElementbyId("pass").select()
How come? And is it possible to let it work properly directly in VFP? Of course I can execute a VBS from within VFP with ShellExecute but is it possible to make the above VFP code work?