Hi Steve
Is it possible to have a shortcut key for an existing switch in Appdeveloper?
For example, “space” to start recording.
Appdeveloper: use a short key?
-
stefan.erni
- Valued Contributor
- Posts: 1247
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 230 times
- Been thanked: 247 times
-
BenR
- Matrix Staff
- Posts: 2223
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 613 times
- Been thanked: 806 times
Re: Appdeveloper: use a short key?
Hi Stefan,
For PC developer you can use Key Mappings available from the Edit menu.
You can assign a calculation to a keypress, for example I have this to toggle a variable on and off when the S key is pressed.
You can monitor for this variable changing by having a decision in your main loop checking if the variable is equal to the old value.
It works fine for the PC developer source and for the export.
If you want this for web developer then let us know and we can see what's possible.
For PC developer you can use Key Mappings available from the Edit menu.
You can assign a calculation to a keypress, for example I have this to toggle a variable on and off when the S key is pressed.
You can monitor for this variable changing by having a decision in your main loop checking if the variable is equal to the old value.
It works fine for the PC developer source and for the export.
If you want this for web developer then let us know and we can see what's possible.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
stefan.erni
- Valued Contributor
- Posts: 1247
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 230 times
- Been thanked: 247 times
Re: Appdeveloper: use a short key?
Hi Ben
Perfect!
I add key mapping and use the switch with call macro if click (OnButtonClick). This works very well.
Only the switch doesn't have such a good 3D effect.
short key and switch works nice together. switch and led:
Perfect!
I add key mapping and use the switch with call macro if click (OnButtonClick). This works very well.
Only the switch doesn't have such a good 3D effect.
short key and switch works nice together. switch and led:
-
stefan.erni
- Valued Contributor
- Posts: 1247
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 230 times
- Been thanked: 247 times
Re: Appdeveloper: use a short key?
Hi Ben
One more question:
Does the keymap only work in the main part from the APP?
It doesn't work in a macro.
One more question:
Does the keymap only work in the main part from the APP?
It doesn't work in a macro.
-
Steve-Matrix
- Matrix Staff
- Posts: 1931
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 286 times
- Been thanked: 450 times
Re: Appdeveloper: use a short key?
It looks like you need to have the Simulation Speed (in the Simulation Debugger window) set to "Fast (with updates)".
This is part of Flowcode that has not been looked at in a very long time, so I will add it to our list to investigate and see if we can have this working better.
This is part of Flowcode that has not been looked at in a very long time, so I will add it to our list to investigate and see if we can have this working better.
-
stefan.erni
- Valued Contributor
- Posts: 1247
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 230 times
- Been thanked: 247 times
Re: Appdeveloper: use a short key?
Hi Steve
Ok in the simulation it's working, if I set max speed and stepp in macros.
But in the exported APP, it's only working in the main and not in the macro.
The good thing is:
In the exported APP, the keys works in the main perfect!
Ok in the simulation it's working, if I set max speed and stepp in macros.
But in the exported APP, it's only working in the main and not in the macro.
The good thing is:
In the exported APP, the keys works in the main perfect!