DRAKON-AutoHotkey: Visual programming with AutoHotkey

Discuss features, issues, about Editors for AHK
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

09 Dec 2014, 07:34

Some expirience of using DRAKON Editor:

Use DRAKON to Generate Code from Flowcharts
https://shkspr.mobi/blog/2013/04/use-dr ... lowcharts/
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

18 Dec 2014, 14:07

I had some free time and decided to rewrite BitCalc (Visual Bitwise Operations) by jNizM (it took approximately 15-20 mins) using DRAKON-AutoHotkey. There are no changes to functionality.

I made two versions. Version 1 uses only Primitive type diagrams. Version 2 also uses Silhouette type diagram.

In DRAKON, for branching, if there is two variants is recommended to use If (also called Question) icon. I personally prefer to use Select/Case (also called Switch/Case) macroicon even if we have only two variants. I do it because it is easier to add more cases if you are modifying diagram. I used If (also called Question) icon in FormatHexD diagram to show how can it be used.
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

18 Dec 2014, 14:09

Version 1 (Primitive type diagrams only)




Here is a screenshot of the sidebar in DRAKON Editor (list of all diagrams, just to show how diagrams can be organized in DRAKON Editor).

Image




Description (code here calls initial execution of the code in first diagram).

Image




Diagram for global settings.

Image




Diagram for GUI.

Image




Next three diagrams are for some functions that are used in a program.

Image



Image




Image




This diagram is used for exiting the script.

Image




See attachment for .drn (DRAKON Editor file).
Attachments
calc prim only.drn
(22 KiB) Downloaded 353 times
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

18 Dec 2014, 14:12

Version 2 (Primitives and also one Silhouette type diagram)




Here is a screenshot of the sidebar in DRAKON Editor (list of all diagrams, just to show how diagrams can be organized in DRAKON Editor).

Image




Description (code here calls initial execution of the code in first diagram).

Image




Silhouette type diagram for global settings and GUI.

Image




Next three diagrams are for some functions that are used in a program.

Image



Image




Image




This diagram is used for exiting the script.

Image



See attachment for .drn (DRAKON Editor file).
Attachments
calc silh.drn
(29 KiB) Downloaded 324 times
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
User avatar
evilC
Posts: 4822
Joined: 27 Feb 2014, 12:30

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

23 Jan 2015, 09:11

Ooh, I like this.
I always liked flowcharts but hated their limitations - this seems to plug that gap nicely.

I also think it would make an excellent tool as a bridge between coders and not-so-coders. It seems to me that pretty much anyone could flesh out some basic logic using the tool, and a coder could then alter it to actually generate working code.

Gonna download and have a play - I am curious as to how it would handle classes, as most of my stuff these days is heavily class based.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

23 Jan 2015, 14:38

evilC wrote: I also think it would make an excellent tool as a bridge between coders and not-so-coders. It seems to me that pretty much anyone could flesh out some basic logic using the tool, and a coder could then alter it to actually generate working code.
DRAKON primarily was made for as a bridge tool between engineers and programmers for soviet space program.


evilC wrote: Gonna download and have a play - I am curious as to how it would handle classes, as most of my stuff these days is heavily class based.
I am not familiar with classes but I remember you can't include classes in functions. In that case, use Free_ type diagram.
Give me some easy code with Classes which I can test and I will make DRAKON diagram from it.
evilC wrote:How do I get the toolbar strip at the top like in the videos? I have to right-click and select Insert to add items.
The version of DRAKON Editor on video is old. In new versions toolbar is removed. You can add DRAKON icons from right click menu.
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
User avatar
evilC
Posts: 4822
Joined: 27 Feb 2014, 12:30

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

23 Jan 2015, 14:46

Also, it seems that right-click menu insertions always appear in the middle of the screen , unlike keyboard hotkey insertions, which appear at the cursor.

The right-click menus should show the hotkeys, and also insert at the initial right-click point.
That way, users can wean themselves off right-click menus as they learn the hotkeys (the right-click menu teaches them the hotkey) and behavior is consistent.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

23 Jan 2015, 15:05

evilC
Your code as is gives me empty msgbox. Please correct your code, so I can test it. I am using last version of AutoHotkey.
evilC wrote:Also, it seems that right-click menu insertions always appear in the middle of the screen , unlike keyboard hotkey insertions, which appear at the cursor.

The right-click menus should show the hotkeys, and also insert at the initial right-click point.
That way, users can wean themselves off right-click menus as they learn the hotkeys (the right-click menu teaches them the hotkey) and behavior is consistent.
Yes you are right. Main developer is rewriting DRAKON Editor in JavaScript. I hope many bugs will be corrected in JavaScript version.
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

23 Jan 2015, 22:55

evilC
I made two versions. I personally prefer version 2.


Version 1
Image





Version 2
Image
Attachments
2.drn
(14 KiB) Downloaded 499 times
1.drn
(14 KiB) Downloaded 439 times
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
User avatar
evilC
Posts: 4822
Joined: 27 Feb 2014, 12:30

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

23 Jan 2015, 23:00

vasili111 wrote:Yes you are right. Main developer is rewriting DRAKON Editor in JavaScript. I hope many bugs will be corrected in JavaScript version.
Oh sweet, I take it that will mean an online editor will happen as well? That would be awesome. Some way to share snippets via url (like pastebin etc) would be nice too :)

Thanks for doing the class stuff, I will have to have a play.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

25 Jan 2015, 09:51

evilC wrote: Oh sweet, I take it that will mean an online editor will happen as well? That would be awesome. Some way to share snippets via url (like pastebin etc) would be nice too :)
The developer said that first it will be online version and if he will see demand he will make offline version too.
evilC wrote: Thanks for doing the class stuff, I will have to have a play.
You are welcome :)
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

17 May 2015, 09:59

Drakon Editor main developer Stepan Mitkin read introductory lecture of DRAKON in Oslo university. Here are slides from that lecture: https://goo.gl/Sc13pb
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

21 Aug 2015, 03:49

This video is about DRAKON-Erlang but I think it can be also interesting for DRAKON-AutoHotkey users.

DRAKON-AutoHotkey: Visual programming for AutoHotkey.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

25 Jul 2016, 12:26

Drakon Editor Web: http://drakon-editor.com/
It does not supports code generation yet.
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

23 Aug 2016, 23:58

Drakon Editor Web (Not Drakon Editor!!!) will become comercial after some time, but if you register now as far as I know you will use it for free. So if you are interested, register now.
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: DRAKON-AutoHotkey: Visual programming with AutoHotkey

28 Jun 2017, 03:52

Good introduction videos to DRAKON. They are made with Drakon Editor Web (Not Drakon Editor) but it is the same DRAKON as in Drakon Editor.






DRAKON-AutoHotkey: Visual programming for AutoHotkey.

Return to “Editors”

Who is online

Users browsing this forum: No registered users and 15 guests