subrutina - Forum

Forum Navigation
You need to log in to create posts and topics.

subrutina

Como se frena una subrutina.

 

 

 

No sé si es necesario "frenar" una subrutina. Podemos acudir a un IF, o a un WHILE en caso de que necesitemos que algo se ejecute solo si pasa otra cosa, o mientras esta sucediendo. También podemos acudir al objeto temporizador y detenerlo en caso de que suceda algo en particular. Intenta explicar un poco más tu pregunta, quizás pueda arrojar más datos. Saludos! :)

Hola, como funciona en los trainners en los juegos

ejemplo.

si tocas f1 se ejecuta y si volves a tocar f1 se frena

 

especifico mas

hice que el mouse se moviera por ciertos lugares de la pantalla, cliqueando donde quiero para ello lo realizo con una tecla que activa la subrutina con el código. pero el tema es que cuando ya no lo necesito mas y deseo obtener yo el control del mouse, se sigue ejecutando. me gustaría poder activar y desactivar a mi gusto

@neobook - Not sure if this will help.

This runs a subroutine on start-up, although its not really needed, to start a counter going via a timer. I also added some random mouse movements to try to simulate as per your description above, giving user no mouse control.

If you use the F1 key, it stops the subroutine and gives the user full control until F1 is pressed again.

Uploaded files:
  • You need to login to have access to uploads.
Quote from paultomo on March 1, 2021, 6:00 pm

@neobook - Not sure if this will help.

This runs a subroutine on start-up, although its not really needed, to start a counter going via a timer. I also added some random mouse movements to try to simulate as per your description above, giving user no mouse control.

If you use the F1 key, it stops the subroutine and gives the user full control until F1 is pressed again.

Sorry! I thought this was a VisualNEO Win (Old Neobook) related question?

But you should be able to achieve the same thing in VisualNEO Web too.

Quote from paultomo on March 1, 2021, 6:22 pm
Quote from paultomo on March 1, 2021, 6:00 pm

@neobook - Not sure if this will help.

This runs a subroutine on start-up, although its not really needed, to start a counter going via a timer. I also added some random mouse movements to try to simulate as per your description above, giving user no mouse control.

If you use the F1 key, it stops the subroutine and gives the user full control until F1 is pressed again.

Sorry! I thought this was a VisualNEO Win (Old Neobook) related question?

But you should be able to achieve the same thing in VisualNEO Web too.

@neobook

Yes it also works on VisualNEO Web too.

I've created a subroutine that moves 3 Car's randomly around the screen and the Cursor is hidden while the sub is running. If you use the "Down Arrow"  key you can then stop and start the subroutine.

I'm quite new to VisualNEO Web but I think something like this may help with your problem.

Uploaded files:
  • You need to login to have access to uploads.
neobook has reacted to this post.
neobook

por  tema de seguridad, no descargo.

si puedes poner el código y lo pruebo te lo agradezco. saludos

aclaracion.

es de neobook.

si alguien sabe como frenar una subrutina se le agradece. Saludos colegas.