Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enter password automation on flash control
#5
After two days of trying, I can finally press F1 to enter the password automatically, but the work is unstable and sometimes I can't enter it.

In addition, I want to achieve, when the swf file is loaded, the password is automatically entered, do not need to press f1

I hope that a friend can help me improve it, thanks in advance  Smile


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

str controls = "3"
str ax3SHD="$desktop$\Quiz\Quiz.html"
if(!ShowDialog(dd &sub.DlgProc &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,DT_SetAccelerators hDlg "402 F2"
,
,case WM_DESTROY
,case WM_COMMAND goto messages2
,case WM_CLOSE
,DT_Ok(hDlg)
ret
;messages2
sel wParam
,case IDOK
,ifk(Y)
,,key Y           ;; Enter
,,ret 0
,case IDCANCEL
,ret 0
,case 402 ;;mes "F2"
,int w1=win("Dialog" "#32770")
,int c1=child("" "MacromediaFlashPlayerActiveX" w1)
,lef
,if(scan("image:hC1C92FE5" c1 0 16))
,,;key Ca
,,paste 123 ;err
,,key Y
ret 1


Messages In This Thread
RE: Enter password automation on flash control - by win - 05-01-2018, 05:44 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)