spy++

C# get child handles using FindWindowEx by name and ordinal number

回眸只為那壹抹淺笑 提交于 2019-12-17 16:25:07
问题 According to http://msdn.microsoft.com/en-us/library/ms633500(v=vs.85).aspx I define FindWindowEx function. using System.Runtime.InteropServices; [DllImport("user32.dll", CharSet=CharSet.Unicode)] static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string lclassName, string windowTitle); Now I am able to find first handle of "Button" control (get name from Spy++) setting childAfter as IntPtr.Zero . IntPtr hWndParent = new IntPtr(2032496); // providing parent window

How can I get functionality similar to Spy++ in my C# app?

走远了吗. 提交于 2019-12-17 10:33:26
问题 I'm interested in working on a plugin for Keepass, the open-source password manager. Right now, Keepass currently detects what password to copy/paste for you based off of the window title. This prevents Keepass from detecting the current password you need for apps that don't actively update their window title based on the current site (Chrome for instance). How can I walk through another processes window elements (buttons, labels, textbox) similar to how Spy++ works? When you run Spy++ you

Native window hierarchy and class names in C#

帅比萌擦擦* 提交于 2019-12-13 06:26:51
问题 I am creating a function to find specific windows given a window hierarchy as follows: protected bool MapWindowHierarchy (ATS.Library.Window window) { bool result = false; List<Process> processes = null; processes = GetProcesses().ToList(); processes.ForEach ( process => { if (process.MainWindowHandle == window.Handle) { // Populate window properties. // Get child windows with filled properties. } } ); return (result); } protected bool MapWindowHierarchy (List<ATS.Library.Window> windows) {

Need help getting child windows

☆樱花仙子☆ 提交于 2019-12-12 02:45:24
问题 I am working in vb with visual studio 2010. The app AnyOrder is no longer supported and I am trying to make an app where our users can type in info and then have the info populate into AnyOrder (and also other sites - they have to populate a lot of redundant info) but I am having no luck at all getting the child windows of any order to populate once the data is in the VB window app. I can get the parent window handle just fine but can't seem to get a child window handle to save my life. I can

c# how to get handle over a specific mainmenu using coredll.dll

喜欢而已 提交于 2019-12-12 01:14:21
问题 I am using an application that copies text from a textbox of another running application. I do this through working with coredll.dll. But the problem is the running application's mainMenu should be clicked in order to return a text that I need to copy. How can i get the handle over a specific mainmenu using coredll.dll? I used remote Spy++ to view handlers but I cant distinguish which one is it. The handlers just contains handlers for controls such as textboxes and labels and not for

How to capture Notification icons properties using Microsoft Spy++

▼魔方 西西 提交于 2019-12-11 13:24:01
问题 In System tray when you click the chevron button (Up arrow button) it displays a small window that has a list of notification icons. How to capture these icon properties using Spy++? 来源: https://stackoverflow.com/questions/30801829/how-to-capture-notification-icons-properties-using-microsoft-spy

create the function “find window…” of spy++ in C#

 ̄綄美尐妖づ 提交于 2019-12-10 17:34:52
问题 I want to create the same function "Find windows..." of spy++ in C#. I have try with this function of the WINAPI: HWND WINAPI WindowFromPoint(__in POINT Point); http://msdn.microsoft.com/en-US/library/ms633558.aspx But i don't arrive to get all element with that, because they are disabled or hidden. For example with the window 7 calculator in Programmer mode, i cannot get the "A B C D E F" with my program if they are disable then spy++ can get it. Edit: I have try this but it don't working:

How can you read values from an open application in Windows?

廉价感情. 提交于 2019-12-09 16:30:52
问题 I want to create a program or use a program that will read the memory values out of another application. Does anyone know of an application/library that will do this? The target app is this. I would like to read the exchange rate values from it. I'm an experienced c# programmer, but have never worked with the Win32/user32 api which is what I'm assuming I'll have to deal with to pull this off. Any help that gets me going in the right direction is greatly appreciated. Update: I managed to use

How to get handle to a TextBox control inside window in Window 10

我们两清 提交于 2019-12-08 02:04:39
问题 I am working on automation to Windows 10 with C#. One of the tasks is to write data to a TextBox in window called "Add exclusion". In order to enter this window: Open Settings => Update & security => Windows Defender => Add an exclution => Exclude a file extension I understood that I need to use SendMessage(...) or SetWindowText(...) functions for writing data to a control. But I need to pass these functions a handle of the control I want to write to. So I need to use GetDlgItem(hDlg,

How does Spy++ construct its process list?

試著忘記壹切 提交于 2019-12-06 07:14:04
问题 TL;DR - How does the Spy++ tool really construct its process list? Stage We have an MFC desktop application (running on Windows XP) that is hanging in that it doesn't react to any user input anymore. It is redrawn when switching to it via alt-tab however. (It does receive WM_SETFOCUS , WM_ACTIVATE , etc. It apparently does not receive any mouse or keyboard messages.) Since the app is hanging in some limbo, we pulled a few process dumps, but these were of little help so far. Enter: Spy++ We