Witam.
Chcę ustawić adres w textboxie firefoxa (niby proste, ale...):
Ktoś wie skąd wziąć nazwę klasy tego textboxa?
Chcę ustawić adres w textboxie firefoxa (niby proste, ale...):
Kod:
#include <iostream>
#include <windows.h>
using namespace std;
int main(int argc, char* argv[])
{
HWND hFireFox, hAddressBox;
hFireFox = FindWindow(L"MozillaUIWindowClass", NULL);
if(hFireFox != NULL)
{
cout << L"Handle to FireFox: " << hFireFox << endl;
hAddressBox = FindWindowEx(hFireFox, NULL, MAKEINTATOM(0x800), L"AddressBox"); // Wpisałem AddressBox. Oczywiście to nie działa. Nie mogę znaleźć nazwy klasy textboxa...
if(hAddressBox != NULL) cout << L"Handle to FireFox URL: " << hAddressBox << endl;
SendMessage(hAddressBox, WM_SETTEXT, 0, (LPARAM)L"http://www.autodatki.yoyo.pl/");
}
cin.sync();
cin.get();
}
Ktoś wie skąd wziąć nazwę klasy tego textboxa?