Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enter password automation on flash control
#7
Great recognition method, thank you  Heart

I replaced a web link, it still contains the swf file, but after the code is running, it cannot be input automatically. How do I wait for the status of the cursor and then automatically enter it? Idea

The purpose of automatic input :


I don't want to expose links for my web page demo files, but I want my friends to watch and give them QM generated exe files. When they open, they don't need to enter a password. This is very safe. If QM can achieve this function, Will be very interesting.


Macro auto input 
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
;ax3SHD="Q:\Downloads\Quiz\quiz.html"
;ax3SHD="$desktop$\Quiz\quiz.html"
ax3SHD="http://fs.focusky.com.cn/ekeec/yzlo/index.html"
if(!ShowDialog(dd &sub.DlgProc &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,int-- t_flash
,t_flash=child("" "MacromediaFlashPlayerActiveX" hDlg)
,SetFocus t_flash
,SetTimer hDlg 1 50 0 ;;use timer to wait for text cursor (caret) in the flash control
,
,case WM_TIMER
,sel wParam
,,case 1
,,int wCaret=GetCaretXY(_i _i)
,,if wCaret=t_flash
,,,KillTimer hDlg wParam
,,,opt keysync 1
,,,key "123" Y
,
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,ifk(Y) ret 0
,case IDCANCEL
,ifk(Z) ret 0
ret 1


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

Forum Jump:


Users browsing this thread: 3 Guest(s)