|
Hi.
I am trying to create an autofill program.
This is similar to what the google toolbar does. it looks at the name of the controls, and puts some values accordingly.
The difference is that i am not creating a toolbar. I am using a CHTMLView. So the page is showing inside my program.
I don't know how to access the controls in order to fill them.
Could you please help..
Thank you very much in advance
|
|
|
|
|
Internet Explorer is all COM objects so you have to learn the COM interfaces to accomplish that. What you are interested in is the DHTML interface to the Document Object.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Many thanks for the quick reply.
Could you please give me any pointers as to where to start? I already know COM, but i don't know anything about DHTML, or the DHTML interface?
Thank you very much in advance..
|
|
|
|
|
Go to http://msdn.microsoft.com[^] Enter: DHTML Reference in the "Search MSDN for" edit box the click the "Go" button.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Hello, I am having trouble making a semi-infinite loop. Here's the problem: I need to send a positional value from a machine to a dialog box on my main dialog screen all the time, but the program must be able to detect when buttons are being pushed and things like that
Right now I have it where I can continuously update the text box while a button is down by using the command: while(GetAsyncKeyState(VK_LBUTTON)<0) , but the mouse button must remain down to do this, which makes all of the other buttons on the dialog useless. I need to do something like this in my main dialog box: always update the text box without clicking the mouse or pressing any buttons and be able to constantly monitor when the keyboard is pressed and when the mouse buttons are pressed
Thanks for your help!
Loren:
|
|
|
|
|
Have you ever seen my article: "Take user's action for loop forever" ?
well, you can see it in programming tips.
ZARZOR13
|
|
|
|
|
I'm pretty sure there is something trivial that you are missing, but I don't do windows event loops enough to tell you what.
As an alternative, that might be better: have you considered using threads? use one thread to read this message, and when it changes post a message to the main thread. (In some systems you can update the window from that thread, I'm not sure about windows) Threads have their own problems, and are difficult to work with on some levels, but it might be better.
|
|
|
|
|
Loren,
Have you thought about using the timer event. In the OnInitDlg section of your code you could create a timer that calls the OnTimer event. Have it run every second. Then you can let the rest of your program do what you want it to do. I have this running a clock in a status bar. Work great.
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Have you considered using windows hooks ?
gabby
|
|
|
|
|
Hi all.
I am trying to customize the cookie data in the http headers of my IE. That is to say I must add my own 'Cookie' header to standard IE http headers. But, each time when I use IWebBrowser2::Navigate2() function to add 'Cookie' header(such as 'Cookie: jsessionid=0DE9IIUD03D23'), the 'Cookie' header will be filtered by IE. It seems that the 'Cookie' header is maintained by IE itself and it is not changeable.
Is there any way to modify IE's 'Cookie' http header according to you need?
Any suggestion will be appreciated.Thanks very much.
Leo.
To be better, better and better ...
|
|
|
|
|
Hi All!
Can Anyone tell me how to patch a memory address in an .exe from the same exe?
|
|
|
|
|
Dennis L wrote:
...patch a memory address...
Exactly what does this mean?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
In the U.S., Memory Address Patches are available in most Pharmacies. If you can't find them you can use the Generic "Patch Patch" with the "Universal Patch Adaptor".
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
How to get "." formated IP Adress string from hostent structure, returned after gethostbyname(...)?
were rgrtgrtvrtrt rtrtb brt tyuhjghj hbhbnh hnjm 1234567?
|
|
|
|
|
Like:
CString strIPAddress;
struct sockaddr_in dest;
LPHOSTENT lpHostEnt = gethostbyname(szHost);
if (NULL != lpHostEnt)
{
memcpy(&(dest.sin_addr), lpHostEnt->h_addr_list[0], lpHostEnt->h_length);
strIPAddress = inet_ntoa(dest.sin_addr);
}
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
thankx, that was useful to me
were rgrtgrtvrtrt rtrtb brt tyuhjghj hbhbnh hnjm 1234567?
|
|
|
|
|
Hi!
I have problems making URLs in RichEdits clickable.
What I have done so far:
1) Added the ENM_LINK flag to the SetEventMask parameter
2) Send a EM_AUTOURLDETECT message to the RichEdit with WPARAM = TRUE
3) In OnNotify, check for the EN_LINK message in NMHDR.
But unfortunately the OnNotify message never receives a message from the RichEdit control. Also the links don't get blue and underlined automatically
Any idea???
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Dominik Reichl wrote:
Any idea???
See if this article gives you any ideas.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Seems to be exactly what I was looking for
Thanks!!!
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
I have a procedure that creates a new instance of my CListCtrl-derived object on the screen in a random position when the user clicks a button. That works fine. But I'm trying to let the user then drag the control around on the form once it's there and I'm trying to use the MoveWindow() function, but I'm doing something wrong. Here's what I have so far:
if(nFlags == 1)
{
CRect rect,rect2;
int x,y,rectx,recty;
x = point.x - prevPoint.x;
y = point.y - prevPoint.y;
this->GetWindowRect(&rect);
this->MoveWindow(&rect);
}
CListCtrl::OnMouseMove(nFlags, point);
after making sure that the left mouse button is down, I was trying to move it according to the position it was in when the mouse was first clicked, but that wasn't working, so I just tried to do it with the exact same coordinates and everytime I try to move it, it just appears a couple hundred pixels off to the right and down. (there's code left in from what I was trying at first also)
If it's broken, I probably did it
bdiamond
|
|
|
|
|
Perhaps the code is using screen coordinates but needs client coordinates, or vice versa. Check out ScreenToClient() and ClientToScreen() .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I've tried both of those also, and they still seem to be getting me nowhere. Thanks
If it's broken, I probably did it
bdiamond
|
|
|
|
|
How to implement a scrollbar in CStatic-derived class. When I wrote:
EnableScrollBarCtrl(SB_HORZ);
SetScrollRange(SB_HORZ, 0, 100);
ShowScrollBar(SB_HORZ);
I can see a scrool bar but I can't control it. WM_HSCROLL don't received too.
What's a problem. How to implement it.
Best regards,
Eugene Pustovoyt
ICQ UIN: 161325180
|
|
|
|
|
You might need to experiment with setting the notify-style and having an ID other than IDC_STATIC , but I would recommend that you use a CWnd -derived class instead of a CStatic instead.
|
|
|
|
|
How to implement a scrollbar in CStatic-derived class. When I wrote:
EnableScrollBarCtrl(SB_HORZ);
SetScrollRange(SB_HORZ, 0, 100);
ShowScrollBar(SB_HORZ);
I can see a scrool bar but I can't control it. WM_HSCROLL don't received too.
What's a problem. How to implement it.
Best regards,
Eugene Pustovoyt
ICQ UIN: 161325180
|
|
|
|