Questions tagged [findwindow]

FindWindow is a Win32 API function from user32.dll retrieving a handle to the top-level window whose class name and window name match the specified strings.

FindWindow function

Please note that it works in current process only! For global search use EnumWindows and EnumWindowsProc functions.

This function does not search child windows. This function does not perform a case-sensitive search.
To search child windows, beginning with a specified child window, use the FindWindowEx function.

150 questions
0
votes
1 answer

Find Window At Location Using Carbon And Carbon Problems In 64-Bit Applications

As I said in some questions today I´m looking for the way to get window or windowPart references at a certain location. Although I know I could use Cocoa for this purpose (I don´t know how to do it yet) I prefer (and probably need) to do this using…
JxXx
  • 111
  • 1
  • 7
0
votes
1 answer

FindWindow don't see ,but winSpy can see IE8 (user32.dll)

I need to find download dialog in IE8, i all ready did this in IE8+ ,and all work 100%,i finded the name and class of window/perent window with Spy++/WinSpy,and get my findow.But in IE8 i get stuck,the download dialog don't have any perents,and it…
Vladimir Potapov
  • 2,347
  • 7
  • 44
  • 71
0
votes
0 answers

FindWindow: FindControl from real control name at runtime

When we compile an executable with Delphi or Visual Studio, it is possible to include "debug informations" in executable. What i want to do is compile an executable with those debug informations. Then, from a second program, il need to interact with…
testpresta
  • 51
  • 2
  • 4
0
votes
0 answers

Can't get/set text to "Edit" control using User32 API and C#

I'm working on a small program that automates using another program. I have no problem using FindWindow(Ex) and getting/setting text to all of the other controls on the software, but am hitting a road block with the Edit control they are using. …
sdouble
  • 1,055
  • 3
  • 11
  • 28
0
votes
0 answers

Using up/down-arrow keys in window User32.dll

dll for login to application all inserts/button click works fine the proble is in one window where i need to use up and down key(arrow NOT keyPressed) and i can't do that. here my code after i logined and find this window currChild =…
user3567884
  • 213
  • 1
  • 6
  • 19
0
votes
1 answer

UI Automation: How to find a window

I want to make a program (program 1) that will click a toolbar button on another program (program 2), and for that I want to use UI Automation. Question:: How do I find the window of another program (program2) with UI Automation? Please show me the…
user3552287
  • 123
  • 4
  • 11
0
votes
2 answers

Excel 2010 VBA Macro to close specific notepad window. (findwindow gives mismatch type error??)

So I'm experimenting with closing windows/apps in a vba macro I'm writing. Numerous posts online suggest the use of FindWindow from the windows api. I'm starting out slow, I'm trying to close a notepad window from my macro. (its one of a few things…
user1759942
  • 1,322
  • 4
  • 14
  • 33
0
votes
1 answer

Send Keystrokes to Minimized VLC

I am trying to send keystrokes to inactive Window (VLC Media Player). I am using C++ Below is the code I tried: HWND hwndWindowTarget; HWND hwndWindowVLC = FindWindow(NULL, L"VLC media player"); if (hwndWindowVLC) { // Find the target class…
Raymond
  • 604
  • 1
  • 9
  • 27
0
votes
1 answer

How do I capture two textboxes that have no caption and the same class?

So, I'm trying to capture a window which has 2 textboxes and send some text to both these textboxes. But both textboxes have no caption and the same class name "Edit". So far all I am able to do is capture the first textbox and thats it. Pasted…
0
votes
1 answer

Chrome_AutocompleteEditView gone in July 2013 from Chrome Browser

From 2011 to the July of 2013 i have been using FindWindowEx to get data from the Chrome Browser about current url. Today 25.09.2013 ,I've noticed that the class Chrome_AutocompleteEditView is gone... My currrent Chrome Version is 29.0.1547.76 Does…
user2536592
  • 171
  • 1
  • 6
0
votes
0 answers

FindWindowByCaption function finding window handle that doesn't exist yet

I am writing a C# application that requires moving gnuplot graphs to specific positions on the user's screen. To do this I am using DllImport to bring in several functions into my program. Specifically FindWindowByCaption and MoveWindow and a few…
Jake Gearhart
  • 297
  • 7
  • 21
0
votes
0 answers

how run "RUN-command" in windowsAPI

I working now with WINAPI and I try to run the app "RUN-command" I tried to do FINDWINDOW / FINDWINDOWEX but it does not make sense because the program "RUN" is not working yet. How to open the "Run-command"?
0
votes
2 answers

WinAPI FindWindow

I am building a win32 application in visual studio 2012. I have 4 disabled buttons created with the following code: HWND hWndButton=CreateWindowEx(NULL, L"BUTTON", L"APP1", …
diego10
  • 533
  • 2
  • 11
  • 18
0
votes
2 answers

multiple calls to BringWindowToTop not working

I am not able to understand what is the problem with following code - i = 15 While (i < 100) If i Mod 2 = 0 Then handle = FindWindow(vbNullString, "My Details - Windows Internet Explorer") Range("A1").Value = handle …
codeomnitrix
  • 4,179
  • 19
  • 66
  • 102
0
votes
0 answers

SendMessage BM_CLICK on application button

Hey all im a little confused as the effect of this BM_CLICK issue. Here is my code: Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Integer, ByVal Msg As Integer, ByVal wParam As Integer,…
StealthRT
  • 10,108
  • 40
  • 183
  • 342
1 2 3
9
10