Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Tore Bleken
  Where is Tore Bleken?
 Stokke
 Norway
 Tore Bleken
 To: Russell Hill
  Where is Russell Hill?
 Sydney
 Australia
 Russell Hill
 Tags
Subject: RE: Any tips for migrating from XP to Win7
Thread ID: 395425 Message ID: 395487 # Views: 35 # Ratings: 1
Version: Visual FoxPro 9 SP2 Category: Windows 7 and VFP
Date: Wednesday, January 15, 2014 11:58:20 AM         
   


> >
> > Are you sure that there is nothing wrong with your code? I never experienced this problem with any version, up to and including IE 11.
> >
> > There's a fine line between helping and adding to the confusion.
> >
> > How to create sample data
>
> Provisionally sure at least. The code worked for years on end until I moved to a Windows 7 PC with IE 9 installed.
>
> When I uninstalled IE 9 and reverted to IE 8 the code worked again.
>
> My previous posting was as follows:
>
> Hi all,
>
> I have a program that interacts with my company's website using the following IE Automation.
>
>
oWeb = CreateObject("InternetExplorer.Application")
> oWeb.Top = 5
> oWeb.Left = 5
> oWeb.Height = 800
> oWeb.Width = 800
> oWeb.Visible = .T.
> 
> SetForeGroundWindow(oWeb.HWND)  && Uses DECLARE in WIN32API in main form.
> 
> oWeb.Navigate2("https://www.giddy-up.com.au/venue/Venue-Login.asp")
> 
> DO WHILE oWeb.ReadyState # 4
>    waiting = Sleep(3000)
> ENDDO
> 
> oWeb.Document.frmLogin.gulogin.Value = lcUser
> 
> oWeb.Document.frmLogin.gupwd.Value = lcPassword
> 
> oWeb.Document.frmLogin.Submit()

>
> The last line of code clicks on the web page's Login button after the username and password go into the appropriate TextBoxes.
>
> This code has been working successfully for years on XP machines.
>
> One of the PCs was recently replaced with a Windows 7 machine and the same code no longer works.
>
> The PC seems very fast by comparison to other PCs so I've tried placing various Sleep() calls without success.
>
> I don't think speed is the issue anyway because when I place a MessageBox() before and after the Submit line I can see the username and password successfully "entered" at the point of the first MessageBox() but at the point of the second MessageBox(), which normally has moved on to the next web page, nothing has happened - that is, the line ...
>
> oWeb.Document.frmLogin.Submit() && This line previously moved on to the next web page but now does nothing.
>
> appears to have not clicked successfully on the Login button.
>
> ....

Ah, now I remember. I found that in some cases, or maybe in all cases, empty event calls are not allowed anymore. Try to change oWeb.Document.frmLogin.Submit() into oWeb.Document.frmLogin.Submit(.T.)

There's a fine line between helping and adding to the confusion.

How to create sample data

ENTIRE THREAD

Any tips for migrating from XP to Win7 Posted by Margaret Duddy @ 1/14/2014 8:12:13 PM
RE: Any tips for migrating from XP to Win7 Posted by Ali Koumaiha @ 1/14/2014 8:27:50 PM
RE: Any tips for migrating from XP to Win7 Posted by Margaret Duddy @ 1/14/2014 8:38:26 PM
RE: Any tips for migrating from XP to Win7 Posted by Marcio Souza @ 1/14/2014 8:30:24 PM
RE: Any tips for migrating from XP to Win7 Posted by Margaret Duddy @ 1/14/2014 8:37:59 PM
RE: Any tips for migrating from XP to Win7 Posted by Pete Sass @ 1/14/2014 8:33:24 PM
RE: Any tips for migrating from XP to Win7 Posted by Margaret Duddy @ 1/14/2014 8:37:32 PM
RE: Any tips for migrating from XP to Win7 Posted by Stefan Wuebbe @ 1/14/2014 8:51:58 PM
RE: Any tips for migrating from XP to Win7 Posted by Margaret Duddy @ 1/14/2014 9:09:35 PM
RE: Any tips for migrating from XP to Win7 Posted by Tony Vignone @ 1/14/2014 11:06:39 PM
RE: Any tips for migrating from XP to Win7 Posted by Stefan Wuebbe @ 1/15/2014 9:12:53 AM
RE: Any tips for migrating from XP to Win7 Posted by Tony Vignone @ 1/15/2014 6:00:26 PM
RE: Any tips for migrating from XP to Win7 Posted by Stefan Wuebbe @ 1/15/2014 7:03:00 PM
RE: Any tips for migrating from XP to Win7 Posted by Russell Hill @ 1/15/2014 3:46:59 AM
RE: Any tips for migrating from XP to Win7 Posted by Tore Bleken @ 1/15/2014 9:12:18 AM
RE: Any tips for migrating from XP to Win7 Posted by Russell Hill @ 1/15/2014 11:47:02 AM
RE: Any tips for migrating from XP to Win7 Posted by Tore Bleken @ 1/15/2014 11:58:20 AM
RE: Any tips for migrating from XP to Win7 Posted by Russell Hill @ 1/15/2014 10:53:33 PM
RE: Any tips for migrating from XP to Win7 Posted by Tore Bleken @ 1/16/2014 9:12:38 AM
RE: Any tips for migrating from XP to Win7 Posted by Tony Vignone @ 1/16/2014 12:55:49 AM
RE: Any tips for migrating from XP to Win7 Posted by tom knauf @ 1/16/2014 2:32:13 PM