... APIs. Public Const WM_COPYDATA As Integer = &H4A Private Sub CheckJWordDocumentState() ' Find the handle of Application 1 Dim hWnd As IntPtr = FindWindow(Nothing, "Application 1 Window Title") ' Replace "Application 1 Window Title" with the actual title of Application 1 ...
hi, when have only 1 x Control you can use FindWindowEx() "inside" FindWindow() https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-findwindowexa https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-findwindowexw ...
... oDlg:AControls[1]:SetText(msg) return endif ::Super... From the application with the button we find the handle of the window with TSAY hWn:=FindWindow() and send him a PostMessage (hWn, "myText")
hi i done know JAVA so i can only tell you about Windows Control to find Handle of Window you need FindWindow() like in your Sample to find a Control "in" a Window you need FindWindowEx() and "lpszClass" of Control e.g. "Button" https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-findwindowexa ...
... localizar el handle de la ventana del navegador y enviar esas combinaciones de teclas. El resultado queda en el clipboard. Prueba asi: MsgInfo( FindWindow( "Chrome_WidgetWin_1", 0 ) )
Rao, thank you for your reply. But I didn 't understand how it would help me ? There is a window of someone else's application under my window and I need to get a window handle of this someone else's application. In this case, using the FindWindow() function is not possible
... this computer. if more than one, I will warn my customer to exit other instances or I will force to close other instances. Thats my purpose. Using FindWindow() function find the first instance hWnd.
... enviarle el Control+ Shift+ Enter para que lo lleve a bandeja salida y asi enviarlos todos de golpe y no tener que esperar. Seria algo asi: hWnd:= FindWindow(0, "Escribir el_asunto_email - Thunderbird" Sendkey(hWnd, VK_CONTROL) SendKey(hWnd, VK_SHIFT) Sendkey(hWnd, VK_ENTER) Pero me falla ...
... save "other Screen" ... normal you just have Control of "your" App --- i do get "Snapshot" of running Video using FindWindow API you got a handle of Windows so you can get Pos / Size but IHMO not DC so i do SENDKEY( VK_SNAPSHOT ) and "import" ...
I get the device context of someone else's application or browser window: hDC:=GetWindowDc(FindWindow(...)) Then I need to put this device context on my window. How can I do this ?
Gabriel, Usando FindWindow() y una vez tienes el hWnd de la ventana principal, podrias acceder al hWnd del control donde esta la URL si conoces su ID. Usa Spy++ (te lo instala Visual Studio Community, y es gratuito) para encontrar ...
... es que necesito leer de la ventana de Chrome el authorization_code con que responde la página de identificación. He conseguido con la función : FindWindow(0, "BBVA Connect Google Chrome") recuperar el hWnd de la ventana, y con GetWindowText(hWnd) el título. Pero cómo puedo acceder ...