Definition at line 9 of file Automation.cs.
◆ Automation()
| BioCore.Automation.Automation |
( |
| ) |
|
Definition at line 385 of file Automation.cs.
386 {
387 m_GlobalHook = Hook.GlobalEvents();
388 m_GlobalHook.MouseDownExt += GlobalHookMouseDownExt;
389 m_GlobalHook.MouseUpExt += GlobalHookMouseUpExt;
390 m_GlobalHook.MouseMoveExt += GlobalHookMouseMoveExt;
391 m_GlobalHook.KeyPress += GlobalHookKeyPress;
392 m_GlobalHook.KeyUp += GlobalHookKeyUp;
393 m_GlobalHook.KeyDown += GlobalHookKeyDown;
394 m_GlobalHook.MouseWheel += GlobalHookMouseWheel;
395 input =
new InputSimulator();
396 }
static InputSimulator input
◆ AddProperty()
| static void BioCore.Automation.AddProperty |
( |
Recording | rec | ) |
|
|
static |
If the dictionary contains the key, then update the value. Otherwise, add the key and value to the dictionary
- Parameters
-
Definition at line 467 of file Automation.cs.
468 {
471 else
473 }
static Dictionary< string, Recording > Properties
◆ GetProperty()
| static object BioCore.Automation.GetProperty |
( |
string | prop | ) |
|
|
static |
It takes a string as an argument, and returns an object
- Parameters
-
| prop | The name of the property to get. |
- Returns
- The value of the property.
Definition at line 448 of file Automation.cs.
449 {
450 Recorder.AddLine("Automation.GetProperty(" + '"' + prop + '"' + ");");
452 }
◆ RunRecording()
| static void BioCore.Automation.RunRecording |
( |
string | prop | ) |
|
|
static |
Runs a recording from the Properties collection
- Parameters
-
| prop | The name of the recording you want to run. |
Definition at line 477 of file Automation.cs.
478 {
481 Recorder.AddLine("Automation.RunRecording(" + '"' + prop + '"' + ");");
482 }
◆ SetProperty()
| static void BioCore.Automation.SetProperty |
( |
string | prop, |
|
|
string | val ) |
|
static |
It takes a property name and a value, and sets the property to the value
- Parameters
-
| prop | The name of the property you want to set. |
| val | The value to set the property to. |
Definition at line 457 of file Automation.cs.
458 {
461 Recorder.AddLine("Automation.SetProperty(" + '"' + prop + '"' + "," + '"' + val + '"' + ");");
462 }
◆ StartPropertyRecording()
| static void BioCore.Automation.StartPropertyRecording |
( |
string | name | ) |
|
|
static |
Start recording the properties of the current object
Definition at line 430 of file Automation.cs.
431 {
432 recording = true;
434 rec =
new Recording();
436 }
◆ StartRecording()
| static void BioCore.Automation.StartRecording |
( |
| ) |
|
|
static |
It starts recording.
Definition at line 416 of file Automation.cs.
417 {
418 recording = true;
419 rec =
new Recording();
420 }
◆ StopPropertyRecording()
| static void BioCore.Automation.StopPropertyRecording |
( |
| ) |
|
|
static |
Stop recording the property and add it to the list of properties.
Definition at line 438 of file Automation.cs.
439 {
440 recording = false;
442 }
◆ StopRecording()
| static void BioCore.Automation.StopRecording |
( |
| ) |
|
|
static |
It stops the recording and adds it to the list of recordings.
Definition at line 422 of file Automation.cs.
423 {
424 recording=false;
427 }
static Dictionary< string, Recording > Recordings
◆ automation
| UIA3Automation BioCore.Automation.automation = new UIA3Automation() |
|
static |
◆ input
| InputSimulator BioCore.Automation.input |
|
static |
◆ Properties
| Dictionary<string, Recording> BioCore.Automation.Properties = new Dictionary<string, Recording>() |
|
static |
◆ rec
◆ recname
| string BioCore.Automation.recname |
|
static |
◆ Recordings
| Dictionary<string, Recording> BioCore.Automation.Recordings = new Dictionary<string, Recording>() |
|
static |
◆ Element
| AutomationElement BioCore.Automation.Element |
|
staticget |
Definition at line 400 of file Automation.cs.
401 {
402 get
403 {
404 try
405 {
406 return automation.FromPoint(
new Point(Cursor.Position.X, Cursor.Position.Y));
407 }
408 catch (Exception)
409 {
410
411 }
412 return null;
413 }
414 }
System.Drawing.Point Point
static UIA3Automation automation
◆ IsRecording
| bool BioCore.Automation.IsRecording |
|
staticget |
Definition at line 375 of file Automation.cs.
376 {
377 get { return recording; }
378 }
The documentation for this class was generated from the following file: