Questions tagged [quit]

156 questions
0
votes
2 answers

How to force quit Word using C# Interop

How can I guarantee the MS Word process exits (using C# Interop library)? My current approach: // close word document ("doc") ((_Document)doc).Close(SaveChanges: WdSaveOptions.wdDoNotSaveChanges); if (doc != null) { …
ecoe
  • 4,994
  • 7
  • 54
  • 72
0
votes
1 answer

Stopping my playing music in Java

I am writing a programm and I added some background music to it. However I would like to be able to stop the music by the click of a button. I know how to add buttons and stuff however I don't know how to stop the music, I have tried a lot of things…
Jindra
  • 1
  • 1
  • 1
  • 2
0
votes
1 answer

How to keep the scheduled handler post delayed timer task is available once the app quits inside of Alarm Receiver on-receive Method?

I have used 20 seconds Handler Post Delayed Timer task inside Alarm Receiver on-receive Method. The app is working fine if i quit the app before the alarm receiver on-receive method gets called. If I quit the app once the Handler Post delayed Timer…
M Vignesh
  • 1,586
  • 2
  • 18
  • 55
0
votes
3 answers

Not able to close instances of different browser using driver.quit

I have opened different browser instances and at the end i would like to close all the instances but when i use driver.close() or driver.quit() it is only closing the last instance of the browser. Please help. import…
Prasad
  • 25
  • 7
0
votes
1 answer

C# WebPages : manage Exit events or quit with no user action server side

What is the better solution to manage Exit or Quit events when user exit to other pages with no action?. This event need to be raised only one time and be usefull to delete all temporary files or datas not stored after the abandon of this page. Is a…
user325558
  • 1,413
  • 5
  • 22
  • 35
0
votes
0 answers

Why does R produce an error when calling quit() inside a function and can this be avoided?

So I was messing around with some R code and found something that seemed interesting to me. Specifically when I call quit() function it executes without a problem, however when I place the quit function within another function R says the…
googleplex101
  • 195
  • 2
  • 13
0
votes
2 answers

How do I quit my game by typing in 'quit'?

#Word Jumble Game import random import string def jumbled(): words = ['Jumble', 'Star']#, 'Candy', 'Wings', 'Power', 'String', 'Shopping', 'Blonde', 'Steak', 'Speakers', 'Case', 'Stubborn', 'Cat', 'Marker', 'Elevator', 'Taxi', 'Eight', 'Tomato',…
juiceb0xk
  • 949
  • 3
  • 19
  • 46
0
votes
2 answers

Window close on keypress?

I've been trying to find the answer to this with no look, I want to exit a unity game window (build not the game preview in the developer) here is a snippet of my code, void Update() { if (Input.GetKeyDown (KeyCode.Escape)) { …
tomahawx
  • 15
  • 1
  • 4
0
votes
4 answers

python tkinter Toplevel .destroy() vs .quit() not working as intended

I have a class Duplicates that checks for duplicates within 40 words. I have a class Window that creates and runs the main window where i post the result. I have a class popWindow that creates a Toplevel window when asking user for what to do with a…
enno4859
  • 51
  • 1
  • 9
0
votes
1 answer

Exiting a program without coredump or Segmentation Faults

I was wondering if there were some ways to exiting/terminate a program abruptly without causing a segfault or core dump. I looked into terminate() and exit() and return 0. They all seem to not work in my project. if(this->board.isComplete()) { …
0
votes
1 answer

qt creator version 5.3: quitting whole application if one mainwindow is closed

I am trying to use the QCloseEvent to close all my dialogs and quit the application when the main window closes. I have read the documentation and looked at many examples and this is what I've come up with so far: In my .h file: protected: void…
theChef613
  • 127
  • 1
  • 9
0
votes
1 answer

How Do I make My GTK# program quit?

I started learning GTK#, and I wrote my first GUI program. When I ran it through the terminal, it didn't quit the program when i clicked the X in the top corner. I ran it again while looking at my task manager, and indeed it doesn't quit. I have to…
Kookerus
  • 506
  • 2
  • 7
  • 18
0
votes
0 answers

How to quit my app from a non-activity app?

How does one quit an app from a non-activity/fragment? I have a class that handles events, and if a certain event happens, i wish to quit my app. I normally allow users to quit the app by doing the…
user1118764
  • 9,255
  • 18
  • 61
  • 113
0
votes
2 answers

Batch file terminates unexpectedly when enter key is pressed

I am currently writing a batch file to get users to enter the telephone's serial number. I have written the following: set /p sernumoftel1="Enter Serial Number of the First Telephone: " set /p sernumoftel2="Enter Serial Number of the Second…
bellere
  • 175
  • 1
  • 2
  • 8
0
votes
0 answers

Quit Menu in the RCP Application is disabled in MAC OS X

I know Eclipse automatically maps the About, Preferences and Quit actions to the Application Menu. But only quit has some problem(which is seems to be disabled but ⌘+Q working fine), other two are working fine. In Application.e4xmi Command id…
pvsnambiar
  • 113
  • 1
  • 10