Originally posted by: soul
anyone knows how to access the start menu ?
i would need to count items, find position and get strings from the start menu ...
thx in advance for any tips/code
Reply
Originally posted by: Qian
doensdjfdlsajf
Originally posted by: sasha
It looks an impressive from first glance, but in fact, you can do very little with that HWND you get. To be more presize only those things which are passed through stack without addressing memory. e.g. you can't read a content of list/tree control, all this because this assumes getting into address space of another process, which is a bit more complicated.
That is all for now
Originally posted by: Ato Koomson
Hi, I really need help on this.
I am writing an application within which I have to close all other open applications on the desktop when it is exiting.
Can anyone help me out here. I am developing in VC++.
Thanks in advance.
Originally posted by: Graham Child
57642 = select all for mspaint ctrl a
code
starthandle = FindWindowEx(0,0,"MSPaintApp",NULL);
Regards Graham
I needed to access the accelerators for mspaint and came up with this:-
57634 = copy
Numbers obtained from spy Wid57642 etc
if(starthandle)
{
StartButton.m_hWnd=starthandle;
StartButton.PostMessage(WM_COMMAND,0xe12a,1);//57642
StartButton.PostMessage(WM_COMMAND,0xe122,1);//57634
}
CloseHandle(starthandle);
CloseHandle(StartButton);
Originally posted by: Naveen Maheshwari
CreateProcess() with command line as
This opens up propertypage and I am able to print test page but after that my application is set as not responding till manually click on OK button.
TestPage = FindWindowEx(NULL,NULL,"#32770",NULL);
Hi!
I found the Idea given as very interesting...and helpful ...but stuck up in a problem ..what I am trying to do is to write a application that opens up properties of any printer and fire test page on Windows 2000 machine.
Using the given Technique I could fire the test page but I am unable to click on OK button on the confirmayion dialog box which comes up just after Print Test Page "test page printed Properly"...
To open printer properties I am using
rundll32 printui.dll,PrintUIEntry /p /n printername
code written for firing test page is
TestPage = FindWindowEx(TestPage,NULL,NULL,"General");
TestPage = FindWindowEx(TestPage,NULL,"Button","Print &Test Page");
if (TestPage)
{
bnTestPage.m_hWnd=TestPage;
bnTestPage.SendMessage(BM_CLICK,NULL,NULL);
}
pls Help.
Originally posted by: Maha
Hi,
when i try to run the code the assertion error is coming. it seems like we've to give the start button caption in the last argument. mine is NT Workstation.Is it a problem with N? I want this in a different way like.. I want to send text from my application to a text box which is appeared in the browser. How do i do it? Plz help me if u know
Thanx in advance
maha
ReplyOriginally posted by: leo
Reply
Originally posted by: leo
Useful tips to me. Thanks a lot!
ReplyOriginally posted by: Umer Naseer
starthandle = FindWindowEx(0, 0, "Shell_TrayWnd", NULL);
starthandle = FindWindowEx(starthandle, 0, "Button", NULL);
StartButton.m_hWnd=starthandle;
Replace the first two lines of code by these lines, because
first we need to get the handle of the taskbar and then we
would be able to get the refrence of the button, because in windows architecture taskbar serves as the parent of the start button.