Sha256: 4666bb57fd33200f7adbb8f3a4ef5189c65cdb19581c302d9813c563b7e3782f

Contents?: true

Size: 823 Bytes

Versions: 3

Compression:

Stored size: 823 Bytes

Contents

#pragma once
using namespace System::Windows::Automation;
using namespace System::Windows::Forms;
using namespace System::Drawing;

#include "AutomationControl.h"

ref class AutomationClicker : AutomationControl
{
public:
  AutomationClicker(const HWND windowHandle) : AutomationControl(windowHandle) {}
  AutomationClicker(const FindInformation& findInformation) : AutomationControl(findInformation) {}
  AutomationClicker(AutomationElement^ automationElement) : AutomationControl(automationElement) {}
	bool Click();
	void MouseClick();

  static void MouseClickOn(AutomationElement^ automationElement) {
    (gcnew AutomationClicker(automationElement))->MouseClick();
  }

private:
	bool CanInvoke();
	void Invoke();

	bool CanToggle();
	void Toggle();

	bool CanSelect();
	void Select();
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rautomation-0.10.0 ext/UiaDll/UiaDll/AutomationClicker.h
rautomation-0.9.4 ext/UiaDll/UiaDll/AutomationClicker.h
rautomation-0.9.3 ext/UiaDll/UiaDll/AutomationClicker.h