Recording Area CIDs (flows in German)

Share and discuss your flows and ideas with other users.

Moderator: Martin

User avatar
TheBrain1984
Posts: 137
Joined: 07 Aug 2013 08:17
Location: Germany

Re: Recording Area CIDs (flows in German)

Post by TheBrain1984 » 31 May 2015 17:15

eTaurus wrote:Do you know a good place to start learning Automagics syntax? I really would like to learn creating flows with about the same complexity as yours. Is it like some kind of programming language?
If you already programmed a little bit the automagic syntax is very easy to learn. In automagic you have like three diffrent types of programming. The "flow programming", where you put action/condition after action/condition after action/condition and so on. You have the "script programming", the possibility to set and use variables during the action "script", you can use simple "script"-actions from my flows I posted here to learn more about the syntax. Martin made a good documentation of every possible function and if you're not sure what a certain function does, just feel free and try it. I learned it by myself by making example flows. The third type of programming is the "string programming"; with {} you can use variables and most of the functions from the "script programming" in fields of action where you normally just put in string. Addtitional to the "script programming"-functions in "string programming" you can format variables. For example just try the following action in a single flow


first without formatstring:

Code: Select all

action: Notification on screen
TEXT: {triggertime}
and see what happens, when you start the flow.


and then with formatstring:

Code: Select all

action: Notification on screen
TEXT: {triggertime, dateformat, "dd.MM.yyyy HH:mm"}
and see what happens now.

eTaurus
Posts: 7
Joined: 29 May 2015 19:46

Re: Recording Area CIDs (flows in German)

Post by eTaurus » 31 May 2015 17:43

Oh my! It may be necessary to learn the fundamentals of programming first. I will try to understand what your scripts are doing and then the logic behind them. Thank you so much for all the help up to this point. I presume that I have to try it myself now. One last question: does Automagic use its own language or is it like one of the common languages? I really need a point to start from scratch.

User avatar
TheBrain1984
Posts: 137
Joined: 07 Aug 2013 08:17
Location: Germany

Re: Recording Area CIDs (flows in German)

Post by TheBrain1984 » 31 May 2015 18:03

Good question, maybe Martin can answer this. I learned "Turbo Pascal" in school (a long time ago) and know a little bit "php" and "perl". All of these helped but php and especially perl have elements you can't use in automagic. But if you want to learn programming although outside of automagic then I think perl would be a good start.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Recording Area CIDs (flows in German)

Post by Martin » 01 Jun 2015 19:00

Automagic uses it's own simple scripting language. It looks a bit like Java without object orientation.
A good starting point to learn the scripting language used by Automagic is to read the help page of action Script.
There's also a page that shows some self contained small scripts: Script examples

Regards,
Martin

eTaurus
Posts: 7
Joined: 29 May 2015 19:46

Re: Recording Area CIDs (flows in German)

Post by eTaurus » 01 Jun 2015 19:04

Martin wrote:A good starting point to learn the scripting language used by Automagic is to read the help page of action Script.
There's also a page that shows some self contained small scripts: Script examples

Regards,
Martin
Trying hard!

One last question: What is the global variable "global_arr_cid_s" for? I don't see any use for it.

After several headache pills I think I understood how your scripts work. :shock:

Post Reply