Help with workflows

Page 2 of 2 (22 items) < Previous 1 2
This post has 21 Replies | 3 Followers

Posts 63
Mike Hogue | Forum Activity | Replied: Tue, Jan 12 2021 7:05 AM

PJ,

Is there a way in the workflow to open a Canvas document and then import the passage of Scripture?  This would be used to create one's own structural outline.

Posts 397
PJ | Forum Activity | Replied: Tue, Jan 12 2021 12:13 PM

Mike Hogue:
Is there a way in the workflow to open a Canvas document and then import the passage of Scripture?

I did not do or test this but could see myself investigating several options.

  1. .Net WPF UIAutomation (this is difficult but fast.)
  2. Any other language capable of UI Automation in any way (Image Search or Keyboard Shortcuts. This is very tricky and unreliable)
  3. ComAPI CopyBibleVerses and Paste (Ctrl+V)

The third option would be my best bet. Wait for a PanelOpened Event and Paste some GraphModel code with Ctrl+V. To begin to grasp this you can create a new canvas and add a shape. Select the shape and copy it to the clipboard. Paste it in Notepad and you'll see the GraphModel. You can use a site like https://www.url-encode-decode.com/ to decode this text string to a human-readable format. If you create this GraphModel and encode it you can paste it directly into Canvas.

Copy the below string and observe the outcome when pasted into Canvas:

%3CmxGraphModel%3E%3Croot%3E%3CmxCell%20id%3D%220%22%2F%3E%3CmxCell%20id%3D%221%22%20parent%3D%220%22%2F%3E%3CmxCell%20id%3D%222%22%20value%3D%22%26lt%3Bh1%26gt%3BBRILLIANT!%26lt%3B%2Fh1%26gt%3B%26lt%3Bp%26gt%3BYou%20can%20now%20start%20to%20generate%20anything%26lt%3B%2Fp%26gt%3B%22%20style%3D%22text%3Bhtml%3D1%3BstrokeColor%3Dnone%3BfillColor%3Dnone%3Bspacing%3D5%3BspacingTop%3D-20%3BwhiteSpace%3Dwrap%3Boverflow%3Dhidden%3Brounded%3D0%3B%22%20vertex%3D%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D%22660%22%20y%3D%22200%22%20width%3D%22320%22%20height%3D%22180%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E%3C%2Froot%3E%3C%2FmxGraphModel%3E

I hope this gives you an idea how to solve this.

Page 2 of 2 (22 items) < Previous 1 2 | RSS