Questions tagged [pause]

Executing pause operations on application, game or process

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

i cant resume the download in dio flutter

File saveFile = File(directory.path + "/$fileName"); final CancelToken cancelToken = CancelToken(); final Dio dio = Dio(); I made this and when I cancel the download ...
  • 5
1 vote
0 answers
23 views

Swiper slider slowdown after load new loop

i have a little problem. I made a slider that plays photos with the coverflow effect in a loop. The problem is that when loading a new loop, the first time after all 8 slides, then after every 4, ...
0 votes
1 answer
39 views

Nothing showing in playmode

My script is running fine and had been showing the game up in play mode (but not in scene view) up until I finished the script and now it has disappeared and I can't seem to find it in either. I made ...
0 votes
0 answers
13 views

Is there a Python sound module with these capabilities? (Stop, Play from any point)

So I'm trying to make a program that includes the playing of sound files (MP3). I am using playsound but it is inadequate as you cannot stop the sound until it is finished, also i would like a way to ...
0 votes
0 answers
25 views

Python script pauses and waits for a key to continue

I have a python script sending requests to several urls in order to analyze potential scam. Below a snippet of my code: for domain in domains: if ... # Analyzing the domain logging....
  • 1,723
2 votes
0 answers
81 views

Error when pausing a video - Uncaught (in promise) DOMException: The play() request was interrupted because the media was removed from the document

I have a next js app that has a slider which contains blog style posts - each post contains a video which is set up as a component. Users can load a new slider (list of posts) by clicking one of the ...
0 votes
1 answer
50 views

How do I delay/wait/pause actions? [duplicate]

I have been trying to get a border in my wpf application(c#) to flash red and blue when you input the wrong password. my code: //This method executes when you enter the wrong password void Alert() { ...
0 votes
1 answer
47 views

Is there any way to pause the execution of a pinescript strategy

Hello guys Ive been looking for a way to code a pause within my code to separate an entry from an exit by 5s. Can anyone tell me if its possible to do so and if theres already a builtin function for ...
0 votes
1 answer
53 views

How to make a pause and resume in pygame [duplicate]

I have been having trouble making a pause and resume function in my game, i can click the pause button once and it will work and bring up the resume button but when i click the resume button nothing ...
1 vote
1 answer
67 views

Interrupt and, if necessary, terminate a program at regular intervals in c++

I need your help. Program A executes program B with fork(). Every 5 seconds the process belonging to program B is interrupted. If the user enters any key within a certain time, the process is ...
  • 11
0 votes
4 answers
91 views

I have an animated image sequence which plays in a loop. How do connect it to a button that toggles between play and pause?

var images = new Array() images = [ 'images/1.svg', 'images/2.svg', 'images/3.svg', 'images/4.svg', 'images/5.svg', 'images/6.svg', 'images/7.svg', 'images/8.svg', 'images/9.svg', 'images/10....
  • 1
0 votes
0 answers
41 views

tkinter wait_variable doesn't return

i've a tkinter toplevel widget were you can type some text, and then press ok. it is created in a function: if you call that funtion the program should wait for a click on the button and than the ...
0 votes
0 answers
25 views

how can i pause my script until clicked on a button [duplicate]

i've a tkinter toplevel widget were you can choose ok or accept. it is created in a function: if you call that funtion the program should wait for a click on a button and than the function should ...
0 votes
0 answers
29 views

auto pause iframe video and audio when another plays

I'm having difficulty figuring this out. I'm new to JS so I need some help! I've managed to auto-pause audio when another audio plays BUT I now need more than that. I need this to include audio and ...
0 votes
1 answer
91 views

In Unity: Volume does not adjust while game is paused via timescale being stopped / equal to 0

I have a settings menu in my game, where I have different audio (background music, dialogue, etc) where I can adjust the volume manually. This happens during pause, so you can hear the volume and set ...
0 votes
0 answers
24 views

How to pause audio play in expo go react native ios

As per the Expo documentation https://docs.expo.dev/versions/latest/sdk/audio/#pauseasync it says that pauseAsync() is only available on Android API version 24 and later. How to pause the audio play ...
  • 101
0 votes
0 answers
22 views

When my gameThread is sleeping, whenever the gameThread stops sleeping, for every gametick the pause screen wasup, those ticks effect player [duplicate]

What I'm trying to do is create a pause button that stops everything in the game at once. All entities are controlled via the gameThread. I have tried putting if(!gamePaused) around update and draw ...
0 votes
4 answers
165 views

How to avoid multiple plots using matplotlib pause function

I am trying to create a crude animation, where each additional data point is plotted on the same graph. The problem is that the loop is generating a new graph for each data point. Here's the code: x = ...
0 votes
1 answer
25 views

How do I pause the app completely when there is no activity?

I use this - if (timeSinceLastClick > 60) { Time.timeScale = 0; } But that doesn't freeze either the ar camera/ar tracking or audio. Besides the animation, everything else seems ...
  • 759
0 votes
0 answers
44 views

Stopping audio when an animation is done

When all my animations have finished, I wanted the audio to stop. Currently, the audio starts after a delayed amount of seconds and also ends after a specific set time. The way I am doing it is I have ...
  • 1
0 votes
0 answers
79 views

How to pause the scaling of pods for StatefulSet

Is there any way to pause the rolling upgrade of StatefulSet to prevent the scale-out of StatefulSet pods during certain period. Only if the resume is triggered, scaling should come into effect. For ...
0 votes
1 answer
45 views

How to pause and resume text into text to speech

I'm working on text to speech app in which I'm translate the text into different languages with highlight the text now I want to pause and resume the highlighted text. I have use the stop function but ...
0 votes
0 answers
22 views

How do I check for a running process before executing another?

I've found some references to searching for active .exe in the task list but I haven't been able to get any to work. I'm trying to find a working bat script because I have memory problems and I've ...
0 votes
1 answer
167 views

How do you pause a python script on input at any moment while it's running?

I'm using selenium to do some webdriver stuff and I'd like to pause / resume it at any time on input of the enter key while I'm running it in anaconda prompt. I know you can use input() at a certain ...
0 votes
1 answer
41 views

How to temporary pause function execution?

I want to make very simple animation by going through emoji one by one func pickingAnimation() { for _ in 1...10 { currentEmoji.text = randomEmoji().rawValue //...
0 votes
1 answer
133 views

How to wait/sleep/delay in Linux terminal

This is similar to what was answered here but most of the answers were for Windows batch file. So, I decided to share for Ubuntu (20.04) Linux. Other Linux distros users are welcome to share as well. ...
-1 votes
1 answer
43 views

Is there a way to pause my if statement without pausing my entire script in pygame?

Pretty simple, I just want to make a damage system in pygame and i want invincibility frames (aka a delay) so that you don't just die instantly. For reference here's the if statement if pygame.Rect....
1 vote
2 answers
50 views

Area2D only becomes invisible when clicked on the edges. (c#)

I have created a pause screen Area2D for my game, in any case the player goes AFK. I wrote a code so whenever the key P is pressed it appears and everything pauses, and if it is clicked it disappears ...
  • 81
0 votes
0 answers
30 views

Is there a way to add/modify/delete one of the outputs of a running ffmpeg core which has multiple ones?

The task is to stream a video feed from a webcam, watch it live on a display, then start/stop a recording of same into a file, while maintaining the live video feed. This will record a 5-s clip (with ...
-2 votes
1 answer
120 views

Pause in "for i in range" with in python

How can I make a pause in a "for i in range" loop, for example after 100 calls? I have this part of the code: with open(r'url\url.txt', encoding='utf8') as f: for i in range(total_urls): ...
  • 101
0 votes
1 answer
148 views

How can I use a single button to pause and unpause timer in tkinter? (without using pygame)

I'm working on a simple timer that counts down 30 mins for me to study and 5 mins for a break. So far, the start_timer function and count_down function work well, I just cannot figure out how to write ...
0 votes
1 answer
27 views

Java timertask wont stop when .cancel() is called

I have the following timer: Timer timer = new Timer(); TimerTask task = new TimerTask() { public void run() { intCounter.incrementCount(); System.out.println(intCounter.counterNum);...
  • 31
0 votes
0 answers
141 views

change play/pause button when audio is played (inner html)

I'm coding a playlist. I would like to create a button that would pause/play my audios. One button that would work for all my audios no matter which one is currently playing. For now, I have a button ...
  • 25
0 votes
0 answers
44 views

How to not run audio if the timer is 00

Edited: i want to create a feature that is when the countdown reaches 00:00:00 in the time, play's a little song to the user at the end of it. Currently, the logic of the app is like this: // here ...
0 votes
0 answers
11 views

In a batch file, show a working symbol after a pause

In my batch file, after a user taps a key for a pause, it then starts a process where nothing shows on the screen. During this time, the user might be tempted to hit a key again, thinking they did not ...
0 votes
0 answers
583 views

How to pause playing video when user scrolls to new video using the CSS scroll-snap feature and JS

I have 2 videos that work like Instagram reels, when a user clicks the first video it starts playing, but if they scroll to the next video and click to start it the previous video keeps playing. What ...
  • 741
0 votes
1 answer
207 views

How to perform click in Selenium with autoplay video?

I try to write a simple code in Java (Eclipse) with Selenium. The code has to find the Instagram Stories of a user and download them in my computer. When I open the stories window of a user I'm able ...
  • 1
1 vote
1 answer
60 views

how can i change text when pausing / resuming phaser game?

I'm trying to toggle between 'Pause' and 'Resume' text when pausing and resuming, i tried the following in create: gameState.playPauseText = this.add.text(660, 547, 'Pause', { fontFamily: 'Roboto Mono,...
0 votes
1 answer
40 views

Pause a loop till a bool changes

I am trying to make RPC calls to a daemon. Now the issue is. I want to make multiple async RPC calls, that'd choke the message buffer. So I want to do it one by one. what I am following bool wait; ...
0 votes
1 answer
216 views

Is there a simple way to wait for an event to happen?

Alright, so all I want is to wait for a function to be run and then continue the rest of the code. Basically, all I want to do is wait until the user presses a Tkinter button, and then after that ...
0 votes
0 answers
14 views

MDBootstrap Video Pause

I would like to know if a video played can be PAUSED and RESUMED in mdbootstrap. In the examples which have been provided on its official site, this feature does not seem to be available.
0 votes
0 answers
33 views

How to make a Pause Mode work effectively in a game?

I am having trouble getting my pausing to work well. When I hit the 'p' key, I want to toggle pause on/off. I have created this fiddle window.keyController = { p: false, // p } Is the ...
0 votes
0 answers
81 views

Selenium IDE - Random pause time

is it possible to make Selenium IDE wait random amount of time? Basically I need somehow simulate the human behavior, so it's not that obvious for the website (obviously it is suspicious if something ...
3 votes
0 answers
152 views

Pause ALSA pcm handle without snd_pcm_pause()

I am working on an audio player written in C that uses libasound (ALSA) as the audio back-end. I have implemented a callback mechanism that allows the audio player to send audio to ALSA in a timely ...
0 votes
1 answer
22 views

Vuex Store- call another action which MUST complete before code resumes execution

Thanks in advance. So here's a simplified view of what I'm trying to achieve: I have the main async action in my Vuex store that calls another action in the same Vuex store. I need the mainCodeBlock ...
0 votes
1 answer
220 views

is there anything available in flutter to hold or pause a screen Widgets

I want to create a custom pause button to hold or pause screen widgets without using game engine can someone help me? When I click on pause button the timer stop and count stop and animation stop ...
  • 27
0 votes
1 answer
73 views

Alternative to Thread. Sleep with different hardware

I am writing a autologin script in Powershell. With main purpose of doing autologon with keystrokes on remote clients in our environment after installation, with the desired AD and password entered. ...
0 votes
1 answer
53 views

How to pause a animation in nativescript-vue

I use AnimationSet with AnimationDefinitions in my project. When I call AnimationSet.cancel(), the element reset to its initial state. It seems like the cancel() method can be customized. So, is there ...
0 votes
1 answer
159 views

How do I check whether I have changed rooms in Game Maker Studio 2?

So I have been working on a pause menu for a game I have been working on with Game Maker Studio 2. Whenever I change rooms (like going to the options room or main menu) the pause menu stays and ...

1
2 3 4 5
12