Flowcode V6. Assigning Formulas & variables to keys.

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.

Moderators: Benj, Mods

Post Reply
medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Flowcode V6. Assigning Formulas & variables to keys.

Post by medelec35 »

Here is a simple flowchart:
Keymapping1.png
(85.92 KiB) Downloaded 6550 times
All I would like to do is run the simulation in full speed and press q to decrease count by 1 & press w to increase count by 1.
Just select Edit, Key mappings...
In the new window that appears, select New, then Add New:
Keymapping2.png
(8.99 KiB) Downloaded 6550 times
Enter in the new calculation box

Code: Select all

Count=Count+1
(you can just double click Count from just below the Variables) :
Keymapping3.png
(33 KiB) Downloaded 6550 times
Then select OK:
Keymapping4.png
(4.6 KiB) Downloaded 6550 times
Note If you see three dots within formula, then you will need to place cursor within the area shown as a green box,
Cursor will change to a left & right arrow so then you can hold left mouse button down and drag to the right.
Now you click on the box to the right of the formula, below the Key section and press the key you are interested in.
In this case its the w:
Keymapping5.png
(4.65 KiB) Downloaded 6550 times
Now select Add new, New and repeat above steps adding

Code: Select all

Count=Count-1
and assign q:
Keymapping6.png
(5.25 KiB) Downloaded 6550 times
Finish by selecting OK
Now run the simulator at full speed (will still work if running at a slower speed), pressing the q and w keys:
Keymapping7.png
(81.05 KiB) Downloaded 6550 times
If the value is not changing when pressing q or w keys then try clicking anywhere within flowchart to bring into focus.

Instead of adding a formula, you could just assign a value.
E.g

Code: Select all

Count=10
Hope you find this useful.

Martin
Attachments
Keymapping1.fcfx
(4.96 KiB) Downloaded 739 times
Martin

Post Reply