Skip to main content

Questions tagged [pause]

Executing pause operations on application, game or process

pause
0 votes
1 answer
48 views

How to pause execution for X milliseconds in AWTEventQueue

I have a game where I want to flash a component a red color, and then back to its normal color after a short delay. Obviously, I could just do Thread.sleep(123), but that is EXTREMELY undesirable ...
davidalayachew's user avatar
0 votes
0 answers
26 views

Showing the results of each loop on the same figure after a small pause using Python

I am trying to show the result of each iteration of the for loop on the same figure after a small certain pause of time. This is my code: #import necessary libraries import numpy as np import ...
User123's user avatar
  • 29
0 votes
1 answer
58 views

Java FXML, change label text, pause GUI for x seconds, then change label text again

I'm currently working on a Pokémon fangame, and I have a problem (not the last). So here is the thing, since it's a round by round game, I have to do this: Decide which Pokémon attack first. Change ...
killian GRAS's user avatar
1 vote
1 answer
26 views

The pause is not removed after switching from the pause menu to the main menu

I have a MainMenu node, which I go to after clicking on the corresponding button in the pause menu of the game. So, the pause remains and nothing works. And conditionally, I can't press the "...
user25594986's user avatar
0 votes
1 answer
37 views

Not able to pause the video

let video = document.querySelector(".reel video"); video.addEventListener("click", function () { console.log("Video clicked"); // Add console log to check if the ...
SHABBY FF's user avatar
0 votes
0 answers
56 views

Pause and resume a Python script execution in Spyder without debugging (like in Matlab)

Is there a way in Spyder (Spyder 5.5.0) to pause the execution of a Python script (Python 3.12), leave the laptop in sleep mode, and then resume execution later without debugging the code? I want to ...
Ilaria Fichera's user avatar
-1 votes
1 answer
131 views

Function for making the code wait in javafx

Im new to using javaFx and programming in general so this might be a stupid question. Im trying to make a function that makes the thread wait without crashing the program which would result in ...
idk's user avatar
  • 3
1 vote
0 answers
21 views

How to stop this text rotator on hover?

Can someone help me. I want to add an option to pause on hover. How to do it? I found this script on the Internet. I don't know anything about programming. I can only implement. I will be grateful ...
TRG's user avatar
  • 11
1 vote
1 answer
285 views

Is there a way to pause and resume virtual threads in Java?

I'm working on a Java program that uses virtual threads to perform a specific task (a serial communication procedure with jssc). I would like to know if there is a way to pause and resume these ...
Bubba's user avatar
  • 11
-2 votes
1 answer
38 views

How can i pause my code until a toplevel window is destroyed?

So: I try to add Error-Masseges to my code. Each of those i want to display in a separate tkinter Toplevel window. So far so good. But for this i need to pause my code after the Error-Window was ...
ihaveaproblem's user avatar
0 votes
2 answers
83 views

Pausing a macro repeatedly for data entry

Sub COLUMN_C() ' ' COLUMN_C Macro ' ' Keyboard Shortcut: Ctrl+Shift+C ' ActiveCell.FormulaR1C1 = "P" ActiveCell.Offset(0, 3).Range("A1").Select ActiveCell.FormulaR1C1 = "25&...
Ian Harmer's user avatar
0 votes
0 answers
35 views

How do I code my game in python to pause without losing time from my clock?

I've tried to save where the clock is at in a .txt file and then reset it to the time in the .txt file but it keeps on going and doesn't reset to what is in the .txt file. This is the code for how I'...
Pi kid's user avatar
  • 1
0 votes
1 answer
28 views

I want to pause all audios being played with audio.play()

Instead of using the HTML <audio> tag, I'm using my own image of an audio play button: <img src="arrow-64.webp" onclick="play('sound-file-1.mp3')"/> <img src="...
Ed S.'s user avatar
  • 93
-3 votes
1 answer
124 views

Is there a Windows API function like Sleep() that works like MessageBoxA()?

When I use MessageBoxA() in a function, it pauses the function but the main program still runs. When I try with Sleep(), it pauses the whole program, not just the function it is in. Why does this ...
pulpf's user avatar
  • 11
0 votes
0 answers
144 views

alternatives to _mm_pause for spin lock

I'm currently working on a project where timing is extremely critical. In my implementation, I've been using spin locks for synchronization. However, I've noticed that the _mm_pause instruction, ...
daniel's user avatar
  • 45

15 30 50 per page
1
2 3 4 5
40