Questions tagged [pause]

Executing pause operations on application, game or process

Pause refers to a temporary halt in time for some execution of a process.

As an example, the pause command used in DOS will stop playing audio or video, with the possibility to continue in the future (in the case of video: with a still image).

It may also refer to hardware used to initiate a pause such as the Pause/Break key (the secondary function of the PgUp key on some computer keyboards) and the Pause key or symbol on media players.

598 questions
1
vote
1 answer

How do you get javascript to wait for input before continuing to run

I'm trying to make a little text rpg in javascript. I have a text field the user types into for input, then presses enter. And the games text changes to reflect their input. I then need the code to wait for further input before running anymore code.…
FrostDrive
  • 11
  • 4
1
vote
2 answers

Can't stop the audio with Js

I have a problem with Javascript: I want to stop the audio in a Js program when the game comes to an end. For this I define a variable "endGame" and I make it false, so that when I call it true in an event, the audio stops. But the problem is that…
1
vote
0 answers

how to pause an R script until cmd prompt is running?

How can I assign with in Rscript to pause until the command prompt is open? I am running a Rscript where a batch file will be executed through command prompt. Later I want to copy a product of executed batch file to another folder. However, Rscript…
Arun Bawa
  • 13
  • 3
1
vote
0 answers

How to pause a leaflet panTo() animation

I am trying to make a map that automatically pan to several locations, one after the other, using Leaflet 1.7.1. This is working quite well using the panTo() function : index.html
Arkeen
  • 554
  • 8
  • 20
1
vote
1 answer

Pause an ActiveMQ Artemis Queue Programmatically in JBoss EAP

We're using JBoss EAP 7.3 with embedded ActiveMQ Artemis message broker. I have a use case where I need to programmatically pause a queue. The only complete example I found was here on Stack Overflow in this question. His solution is the code…
Todd Johnson
  • 147
  • 1
  • 11
1
vote
1 answer

Problem I am encountering making a website Music Library to sell my songs online

Hi all website development experts, I am a newbie to website design. I am 13 years old but my passion is to record my own music from the different instruments I play and I love singing as well. I am trying to make my own online Music Library so that…
1
vote
1 answer

How to continue to next loop iteration only if I press a certain key in Julia

I am using Julia in Atom. I have a for loop which prints out information in each iteration. I want Julia to pause the program at the end of each iteration so that it only continues to the next iteration if a certain key is pressed (for instance, say…
graphtheory123
  • 311
  • 1
  • 6
1
vote
1 answer

I need to be able to pause the whole game, but only my car sprite pauses when I press the p key on my keyboard

I implemented a pause feature in my game in the while loop at the end of my code, but the problem is that only my car sprite pauses. I have tried a bunch of different ways setting up my pause code but none of the ways I arrange it seems to pause the…
J.R. BEATS
  • 93
  • 6
1
vote
2 answers

Game paused but the paddles in game still moving

Recently I made a Pong game with the turtle module and I'm using this method to pause the game: # Pause function game_pause = False def pause_game(): global game_pause if game_pause: game_pause = False else: game_pause =…
1
vote
1 answer

How to print out elapsed time using pause in ansible playbook

I'm using a pause command in my playbook that pauses for 10 minutes while EC2 instances are built in AWS. I would like to see the elapsed time during the 10 minutes instead of guessing when the pause started. I see that stdout is an output of the…
jmacioci
  • 21
  • 3
1
vote
1 answer

How to put pause between ansible roles

Here is my playbook: --- - hosts: "mms" user: wladmin roles: - { role: App1 } - { role: App2 } - { role: App3 } - { role: App4 } I wish to put pause of 30 seconds between these ansible roles. I tried the below but it give me…
Ashar
  • 2,942
  • 10
  • 58
  • 122
1
vote
0 answers

k6 Load Testing: Pause a ramping-vus test execution then resume it by terminal command

As I was checking, k6 provides load testers to pause/resume a live running test (as per docu: https://k6.io/blog/how-to-control-a-live-k6-test/) Please see my set up. export const options = { ext: { loadimpact: { projectID: 1234, …
Lars
  • 51
  • 1
  • 8
1
vote
2 answers

How to pause and unpause with requestAnimationFrame

So, I'm having an issue with figuring out how to pause and (most importantly) unpause my simulation. When I press play, I call a function called animate(). I only call it once, so naturally inside animate() I call requestAnimationFrame(animate) for…
1
vote
2 answers

Can Kafka consumer be paused for definite interval and resume automatically after the interval

Can kafka consumer be paused for a definite time interval say 2 mins and get resumed automatically once the given time interval is over. Or can we provide time window to pause command?
1
vote
1 answer

If video has prop autoplay don't pause when out of viewport

I am using isinViewport from https://github.com/zeusdeux/isInViewport to play/pause videos when in/out of view. But sometimes I don't want them to autoplay (for videos that are not muted and with controls). Hence I am checking for if is in viewport…
ak_malmo
  • 97
  • 1
  • 15