English 中文(简体)
利用密码对申请进行筛选
原标题:Use code to do a screen capture of an application running

我需要操作一些密码,以抓住窗口台上提出申请的窗口(窗口XP在此被罚款)。

网上有多个VB6实例,但往往只掌握运行的VB6应用程序或桌面。 我正在寻求一种能够抓住某个窗口/应用程序的解决办法。 因此,我希望能够提供申请窗口的名称,以便抓住。

快速的Bing搜索的确产生了一些编码实例,但收集了桌面或目前的VB6应用。 我愿意修改其中之一,以抓住某个窗口(改称申请)。

然而, 我这样做了,也许有人与一个真像6或甚或虚拟银行的图书馆代码范例有联系,这些实例将抓住/将一个特定的名称应用窗口带至硬盘上的一个或某种类型的图像档案。

与VB6或VBA解决方案的联系在这里只是罚款。 我愿意修改现有的例子。

最佳回答

也许你们已经知道这一点,但窗口是由一个独特的4个半年长的窗口确定的:window 操作>>>。 获取屏幕的任何密码样本均可在any窗口:桌面、当前应用程序或任何运行应用程序上查阅。 你们只需要使用正确的窗口。

这里有几处建筑路障:

  1. Find the window handle for an application based on the caption, or part of the caption. Taken from Karl E Peterson s excellent VB6 site. Or here s a Microsoft KnowledgeBase article to do the same thing. EDIT Or for a one-off job like yours, just find it out manually by clicking on the window with a debugging tool like Spy++ or a free clone.
  2. Here s code to get a screen capture of the desktop, from Steve McMahon s excellent vbAccelerator. Just change the code so that it uses the window handle found in step 1, rather than the window handle returned by GetDesktopWindow().
问题回答

我在这里将一些法典汇集在一起,以记录另一项申请中的出入错误,作为一种做法,它利用窗户这样做,因此,该法典可能用于:





相关问题
Prevent windows from queuing shellexecute requests

Win.ShellExecute 0, "open", "C:dirprogram.exe", "arguments", vbNullString, SW_SHOWNORMAL Win.ShellExecute 0, "open", "http://www.google.com", vbNullString, vbNullString, SW_SHOWNORMAL I want google....

Why is My Loop Only Deleting One File?

Using VB6 In a folder, i have n number of files, i want to delete a 0 kb files code Dim filename5 As String filename5 = Dir$(txtsourcedatabasefile & "*_*", vbDirectory) MsgBox filename5 Do ...

How to check the filesize?

Using VB6 I have the text file with different sizes, so i want to delete the file where filesize = 0 kb. How to make a vb6 code for deleting the 0 kb files. Need vb6 code Help

File Rename problem?

I m using VB6 and I have a folder where I have n number of files. I want to change the file extension to .txt. I used the code below to change the extension of all .fin files to .txt. Dim filename1 ...

Error 20728-F while in using Crystal Reports in VB6

I m using Crystal Reports in my VB6 project, but I m facing error while loading the report in crystalreport1.action=1; Please give me some solution for this problem. It is showing the error as Error ...

DllRegisterServer entry point was not found

When running my vb6 application I am getting error like, runtime error 53 : file not found: rscomclNoMsg.dll then i tried to register that dll from cmd line using regsvr32. Then I am getting ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8