Asked by duncanb7
at 2024-10-12 03:38:54
Point:500 Replies:6 POST_ID:828378USER_ID:11059
Topic:
Windows Vista;Visual Basic Programming;Java Programming Language
AS we know , if don't want the screen updateing when we run VBA program
in Excel, we can set Application.ScreenUpdating = False. How about for
non-Microsoft office application like the Java application program is runing
in Internet Explore or standalone .exe program ? Because I am writing VBA
program to get the Java application windows and do some download file loop
from the Java application windows automatically by mouse-click simulation
so the Java application always comes out one pop download menu each 2 second
that is my purpose. But I don't want to disable of the display of the popup memu appear and dsiappear
during program looping. I could find the windows of the target internal explore windows by the windows title and get its handler by findwindow() in API function. HOw to disable the screen updating for such handle during
the application running (not Microsift Excel) by API fuction in VBA editor.
Please advise
Duncan
'Example stop update when application windows running
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Sub main()
Dim twin
Dim windowname as string
windowname = "Example-Windows Internet Explorer"
twin=FindWindow(vbNullString, windowname)
' Is there any API function to stop screen flicking during program running with twin handle
in Excel, we can set Application.ScreenUpdating = False. How about for
non-Microsoft office application like the Java application program is runing
in Internet Explore or standalone .exe program ? Because I am writing VBA
program to get the Java application windows and do some download file loop
from the Java application windows automatically by mouse-click simulation
so the Java application always comes out one pop download menu each 2 second
that is my purpose. But I don't want to disable of the display of the popup memu appear and dsiappear
during program looping. I could find the windows of the target internal explore windows by the windows title and get its handler by findwindow() in API function. HOw to disable the screen updating for such handle during
the application running (not Microsift Excel) by API fuction in VBA editor.
Please advise
Duncan
'Example stop update when application windows running
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Sub main()
Dim twin
Dim windowname as string
windowname = "Example-Windows Internet Explorer"
twin=FindWindow(vbNullString, windowname)
' Is there any API function to stop screen flicking during program running with twin handle