-
Jan 26th, 2015, 03:23 AM
#1
Thread Starter
New Member
href buttons
I am using SendMessage to click buttons on a windows it works ok for regular buttons but not for href <a> type buttons how do I click these?
Thanks Steve
-
Jan 30th, 2015, 07:17 PM
#2
Re: href buttons
Originally Posted by tgacomp
... but not for href <a> type buttons
HTML-created buttons are windowless (they have no hWnd). The SendMessage API thus won't work on them.
Originally Posted by tgacomp
how do I click these?
Try the example here (which I found by searching the forum).
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
-
Jan 30th, 2015, 11:37 PM
#3
Thread Starter
New Member
Re: href buttons
Thanks for that
As its a program windows and not a web page would I use the handle of the parent window something like:
X = IE.Document.getElementById("Handle of Program window")
thanks, Steve
-
Jan 31st, 2015, 03:58 AM
#4
Re: href buttons
Originally Posted by tgacomp
As its a program windows and not a web page ...
Sorry, but I don't understand. What exactly is the type of button that you are talking about? If possible, can you please attach a screenshot of it? Also, why are you trying to click it anyway? What are you supposed to accomplish?
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|