Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Acc Unable to execute mouse click
#8
All use of Acc finally can not manually close the dialog window, what parameters need to be set? Huh


Macro Macro3
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 364 206 "Dialog"
;3 ActiveX 0x54030000 0x0 0 0 364 206 "SHDocVw.WebBrowser {8856F961-340A-11D0-A96B-00C04FD705A2}"
;END DIALOG
;DIALOG EDITOR: "" 0x2040801 "*" "" "" ""

str controls = "3"
str ax3SHD
if(!ShowDialog(dd &sub.DlgProc &controls)) ret

#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,mac "sub.WaitForLoaded" "" hDlg
ret

#sub WaitForLoaded
function hDlg
SHDocVw.WebBrowser we3
we3._getcontrol(id(3 hDlg))
we3.Navigate("http://www.quickmacros.com/download.html")
opt waitmsg 1
rep() 0.01; if(!we3.Busy) break
30 WV hDlg

Htm e=htm("B" "Download" "" hDlg "0" 1 0x1 30)
e.Click

int w1=wait(-1 WV win(" - " "#32770"))
Acc a1.Find(w1 "PUSHBUTTON" "" "class=Button[]id=4427" 0x1004 -1)
1
a1.Mouse(1)

int w=wait(-1 WV win("Save As" "#32770"))
Acc a.Find(w "PUSHBUTTON" "" "class=Button[]id=1" 0x1004 -1)
a.DoDefaultAction

int w2=wait(-1 WV win("File Download" "#32770"))
Acc a2.Find(w2 "PUSHBUTTON" "Close" "class=Button[]id=2" 0x1005 -1)
a2.DoDefaultAction


Messages In This Thread
Acc Unable to execute mouse click - by win - 04-13-2019, 12:09 AM
RE: Acc Unable to execute mouse click - by win - 04-13-2019, 12:42 AM
RE: Acc Unable to execute mouse click - by win - 04-13-2019, 05:13 AM
RE: Acc Unable to execute mouse click - by win - 04-13-2019, 09:43 PM
RE: Acc Unable to execute mouse click - by win - 04-14-2019, 08:32 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)