资源简介

网上目前用c#写的最详细的javaaccessbridge控制程序 自动判断32/64位并调取windowsaccessbridge.dll 像spy++一样,抓取java swing画面handle和信息 压缩包里是完全的代码 注意:你需要先安装oracle的 Javaaccessbridge

资源截图

代码片段和文件信息

// Copyright 2016 Google Inc. All Rights Reserved.
// 
// Licensed under the Apache License Version 2.0 (the “License“);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// 
//     http://www.apache.org/licenses/LICENSE-2.0
// 
// Unless required by applicable law or agreed to in writing software
// distributed under the License is distributed on an “AS IS“ BASIS
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

using System;
using System.Reflection;
using System.Windows.Forms;
using WindowsAccessBridgeInterop;

namespace AccessBridgeExplorer {
  public partial class AboutForm : Form {
    public AboutForm() {
      InitializeComponent();
    }

    public void FillForm(Assembly application AccessBridge accessBridge) {
      applicationNameText.Text = GetAttributetleAttribute>(application).title;
      applicationcopyrightText.Text = GetAttribute(application).Copyright;
      applicationVersionText.Text = string.Format(“Version {0}“ application.GetName().Version);

      try {
        var libraryVersion = accessBridge.LibraryVersion;
        accessBridgePathText.Text = string.Format(“{0}“ libraryVersion.FileName);
        accessBridgeProductText.Text = string.Format(“{0}“ libraryVersion.ProductName);
        accessBridgeVersionText.Text = string.Format(“{0}“ libraryVersion.FileVersion);
        accessBridgeLegacyText.Text = accessBridge.IsLegacy ? “Yes“ : “No“;
      } catch (Exception e) {
        accessBridgePathText.Text = e.Message;
        accessBridgeProductText.Text = @““;
        accessBridgeVersionText.Text = @““;
        accessBridgeLegacyText.Text = @““;
      }
    }

    private T GetAttribute(Assembly assembly) where T : Attribute {
      return (T)Attribute.GetCustomAttribute(assembly typeof(T) false);
    }

    protected override bool ProcessDialogKey(Keys keyData) {
      if (ModifierKeys == Keys.None && keyData == Keys.Escape) {
        Close();
        return true;
      }
      return base.ProcessDialogKey(keyData);
    }

    private void githubUrllinkLabel_linkClicked(object sender linkLabellinkClickedEventArgs e) {
      System.Diagnostics.Process.Start(githubUrllinkLabel.Text);
    }
  }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .......        64  2016-06-27 15:21  access-bridge-explorer-master\.gitignore

    .......      3613  2016-06-27 15:21  access-bridge-explorer-master\AccessBridgeExplorer.sln

    ..A..H.    233984  2018-12-11 15:52  access-bridge-explorer-master\AccessBridgeExplorer.v12.suo

     文件     210944  2018-12-04 22:59  access-bridge-explorer-master\bin\Debug\AccessBridgeExplorer.exe

     文件        199  2016-06-27 15:21  access-bridge-explorer-master\bin\Debug\AccessBridgeExplorer.exe.config

     文件     491008  2018-12-04 22:59  access-bridge-explorer-master\bin\Debug\AccessBridgeExplorer.pdb

     文件     215552  2018-12-04 21:34  access-bridge-explorer-master\bin\Debug\WindowsAccessBridgeInterop.dll

     文件     380416  2018-12-04 21:34  access-bridge-explorer-master\bin\Debug\WindowsAccessBridgeInterop.pdb

    .......      2943  2016-06-27 15:21  access-bridge-explorer-master\CHANGES.md

    .......      2607  2016-06-27 15:21  access-bridge-explorer-master\CONTRIBUTING.md

    .......     11358  2016-06-27 15:21  access-bridge-explorer-master\LICENSE

    .......       451  2016-06-27 15:21  access-bridge-explorer-master\new-feature-ideas.txt

    .......      1289  2016-06-27 15:21  access-bridge-explorer-master\new-release-checklist.txt

    .......      4452  2016-06-27 15:21  access-bridge-explorer-master\README.md

    .......    102723  2016-06-27 15:21  access-bridge-explorer-master\screenshots\AccessBridgeExplorer.png

    .......      2484  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\AboutForm.cs

    .......     17655  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\AboutForm.Designer.cs

    .......      5817  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\AboutForm.resx

    .......     12608  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\AccessBridgeExplorer.csproj

    .......       396  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\AccessBridgeExplorer.csproj.DotSettings

    .......       879  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\AccessibleRectInfoSelectedEventArgs.cs

    .......       199  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\App.config

    .......      3784  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\app.manifest

    .......      2626  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\EventForm.cs

    .......     13964  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\EventForm.Designer.cs

    .......      9441  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\EventForm.resx

    .......      3176  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\ExceptionForm.cs

    .......      5777  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\ExceptionForm.Designer.cs

    .......      9471  2016-06-27 15:21  access-bridge-explorer-master\src\AccessBridgeExplorer\ExceptionForm.resx

     文件      19044  2018-12-04 14:33  access-bridge-explorer-master\src\AccessBridgeExplorer\ExplorerForm.cs

............此处省略233个文件信息

评论

共有 条评论