|
|
how can I retrieve the text from windows text editors using the keyboard cursor position
thank u
|
|
|
|
|
Samik Karmakar wrote:
windows text editors
What do you mean by that ? You mean Microsoft Word ? If yes you have to look for 'Word automation'. Otherwise be more specific.
|
|
|
|
|
i want to retrieve the text from any text editors notepad, wordpad.
i want to retrive the text when the cursor is over the letter.
example: say i have the word : text and my cursor is on 't'. so i want to retrieve 't' . now if i move the cursor from t to 'x' then i want to get 'x' retrieved say in a message box .
thank u
|
|
|
|
|
You'll need to use the EM_CHARFROMPOS message.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I have a pattern brush I would like to modify. The brush itself is to be used by windows internals.
My question is if it's at all possible to do something like
<br />
LOGBRUSH lb;<br />
::GetObject(hBrush, sizeof(LOGBRUSH), &lb);<br />
hbm = (HBITMAP) lb.lbHatch;<br />
::SelectObject(hdc, hbm);<br />
and the draw to the dc? If I already sent the hBrush to a win API function, will it be the very same I am trying to modify, or is windows using a copy of it (which means there's no point in doing the above)?
The win func is SetMenuInfo() but I doubt that matter.
|
|
|
|
|
To play mp3, I use MCIWndPlay macro. I want to make the tune to be played repeatedly until user wants a stop. Does anyone know how to do it?
|
|
|
|
|
|
(I am bing daft here - I have not much knowledge of mm programming.)
I wanted to use mci functions but hit a rock, because I do not know how to retrieve device id, and the device id is required to send the commands. Can you shed some light or point me to relevent sites? I tried but could not find any example telling me how to get the id, i.e. what name should I use in
MCIDEVICEID mciGetDeviceID(
LPCTSTR lpszDevice
);
I think once I know how to retrive the device Id I should be able to cook. PS I looked at the system.ini file, as a few internet findings suggest, but found nothing under the [mci] section.
|
|
|
|
|
Assuming you know the name of the .mp3 file (I'm boldly assuming it's a file), you can simply do:
<code>
char szMp3File [MAX_PATH];
strcpy (szMp3File, "C:\\myFile.mp3");
VERIFY (::sndPlaySound (szMp3File, SND_LOOP | SND_ASYNC));
...
<code>
VERIFY (::sndPlaySound (NULL, 0));
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
I tried the sndPlaySound(...) and passed in a .mp3 file but the mp3 file did not get played. instead, a wav file was played. I guess it is because this func works only for wav file so a default sound was played rather than the mp3 specifed.
In fact before I use the mp3, I was playing a wav file instead, using the PlaySound(...), which is similar to this one you suggested. I thought I should move up the ladder a bit by tackling more advanced multimedia stuff, which means the application can be more flexible. This is the background info of how I got here...
Do u happed to know how to get device id? It is really nice to know.
|
|
|
|
|
Perhaps this[^] article will help? Btw, I use BASS[^] to play MP3 files. I've also heard good things about FMOD[^]. Good luck!
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
if i have a handle to a msn chat window ... how can i send messages using it ... i read the article about retrieving text from the chat window ... also how for example can i get the email of the person ... ?
- i want to make an auto replier for msn ...
|
|
|
|
|
I haven't much read about its architecture. But Generally interfaces should be exposed, as it is COM based architecture. Look for interface of your interest and use it. It should have api's like sendmessenge.
|
|
|
|
|
I am getting a very strange prob ... I get a messagebox in english when I run it through French XP ... I am not understanding what can be the prob ... I have checked my resource file ... I have set the Language ... Some one with any suggestion .. I have read the articles on codeproject .. SOme one gone through similar problem .. Any Solution ?
|
|
|
|
|
1. You better go for custom message box, the code you can get it by google search.
2. Or if you use windows NT based operating systems, you can try to use French localized dlls.
" Action without vision is only passing time,
Vision without action is merely day dreaming,
But vision with action can change the world "
- Words from Nelson Mandela
Thanks & Regards,
Gopalakrishnan
|
|
|
|
|
How to add an Icon to the SystemTray.
When I run my application ,Application is executing
(dialog based appli) as well as icon is adding to system tray.
But my requirement is when I run appli., It initially added
to Taskbar(tray).,When I right click on icon a menu will display .
After I clicking a menu item (Start) application will Starts.(i.e,ShowWindow(SW_NORMAL))
----
>I added code(code to adding to tray) in OnInitDialog.
But It is displaying as previous .
>Initially I dont want to show window.
Plz Send a simple code to add an icon initially to system tray.
Praveen Chowdam Kumar
|
|
|
|
|
|
Declare a data member for your dialog:
NOTIFYICONDATA nid;
Then
<br />
ZeroMemory(&nid,sizeof(nid));<br />
nid.cbSize = sizeof(NOTIFYICONDATA);<br />
nid.hWnd = m_hWnd;<br />
nid.uID = 0;<br />
nid.uFlags = NIF_ICON | NIF_TIP;<br />
nid.uCallbackMessage = 0;<br />
nid.hIcon = LoadIcon(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDI_....));<br />
lstrcpy(nid.szTip,"...some text ...");<br />
Shell_NotifyIcon(NIM_ADD,&nid);<br />
... and do not forget to remove the icon from tray when ready
SkyWalker
|
|
|
|
|
Does anyone have the sources of Filemon from sysinternals web site?
It was published several years ago but the guys over there decided to remove it.
Send it,please, to dudiav@hotmail.com.
Dudi
|
|
|
|
|
If you do not get any response, you might consider sending an e-mail to Mark Russinovich or Bryce Cogswell.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
|
i am working in vc++ and need to any method to get the domain name.Can anyone help me out.
|
|
|
|
|
Riily wrote:
any method to get the domain name
Which domain name do u want?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Try this:
CComPtr<IADsNameTranslate> pNto;
HRESULT hr=S_OK;
USES_CONVERSION;
WKSTA_INFO_100* pWkStaInfo=NULL;
CString strDomainName;
if (NetWkstaGetInfo(NULL, 100, (LPBYTE*)&pWkStaInfo)==NERR_Success) {
strDomainName=(OLE2CT((WCHAR*)pWkStaInfo->wki100_langroup));
NetApiBufferFree(pWkStaInfo);
}
Cheerz,
Aamir
|
|
|
|