Get active Tab URL in FireFox with C++
问题 I'm trying to get a URL from Firefox using UI Automation, but it keeps failing. It worked fine in Chrome. but it doesn't work in Firefox. i think Search Or Enter Address is same 'Address and search bar' in Chrome #include <Windows.h> #include <AtlBase.h> #include <AtlCom.h> #include <UIAutomation.h> #include <stdlib.h> #define UNICODE int main() { CoInitialize(NULL); HWND hwnd = NULL; while (true) { hwnd = FindWindowEx(0, hwnd, L"MozillaWindowClass", NULL); if (!hwnd) break; if (