09-22-2007, 05:51 PM
Example for QM forum.
Function ( hi_QM ) Trigger ( $a 142 -4 0 "Edit" 41477 "http://www.quickmacros.com/forum/index.php" "IEFrame" "Internet Explorer" 0 )
function hwnd
int Phwnd cnt;Htm el XX1 XX2
Phwnd=GetAncestor(hwnd 2);; gets parent handle
;a1
;zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
XX1=htm("INPUT" "username" "" Phwnd 0 4 0x221)
err
,0.1
,cnt+1;if cnt=40;end ;; this will wait for the username input for 4 seconds
;soft ends if it doesnt find username input
,goto a1
XX1.SetText("YOURNAME");; your username in ""
;zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
XX2=htm("INPUT" "password" "" Phwnd 0 5 0x221)
XX2.SetText("YOURPASSWORD");; your password in ""
;zzzzzz(CLICKS LOGIN)zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
el=htm("INPUT" "Log in" "" Phwnd 0 7 0x421)
el.Click