02-13-2023, 10:36 AM
Hi,
i need a virtual keyboard for send number 1 to 999 on my Virtualino app so i did it like below ...
my app :
Virtual Keyboard:
When you click on "Key picture", (V[7]=1); you're unlock Keyboard and run ClavierVirtuino();
The loop while run three times and exits the module (it is easy to increase), so by example, if you number is 523, you type 5 and 2 and 3, but if you number is smaller then 100 , 99 for example, you should type 0 and 9 and 9
The number appears in case "Attrape". Caution variable is (Place) not int but double .
Config Button
Code Arduino
i'm only a small amateur and i've been using virtuino for three days !
There are probably easier ways for the same results, but if can help, i give you mine method
i need a virtual keyboard for send number 1 to 999 on my Virtualino app so i did it like below ...
my app :
Virtual Keyboard:
When you click on "Key picture", (V[7]=1); you're unlock Keyboard and run ClavierVirtuino();
The loop while run three times and exits the module (it is easy to increase), so by example, if you number is 523, you type 5 and 2 and 3, but if you number is smaller then 100 , 99 for example, you should type 0 and 9 and 9
The number appears in case "Attrape". Caution variable is (Place) not int but double .
Config Button
Code Arduino
Code:
void ClavierVirtuino() //************************************
{
V[9] = 0;
V[8] = 0;
Compteur = 0;
C = 0;
D = 0;
U = 0;
while (Compteur < 4) {
virtuinoRun();
if (V[8] == 1) {
Compteur++;
if (Compteur == 1) {
C = V[9] * 100;
V[8] = 0;
}
if (Compteur == 2) {
D = V[9] * 10;
V[8] = 0;
}
if (Compteur == 3) {
U = V[9] * 1;
V[8] = 0;
}
Place = C + D + U;
}
V[8] = 0;
if (Compteur == 3) {
V[7] = 0;
Compteur = 0;
D = 0;
C = 0;
U = 0;
return;
}
}
}
There are probably easier ways for the same results, but if can help, i give you mine method