Possible Duplicate:
How can I make a while True break if certain key is pressed? [Python]
I have this code:
def enterCategory():
time.sleep(0.2)
if entercount == 1:
mouseMove(*position[5])
while win32gui.GetCursorInfo()[1] != 65567:
mouseMove(*position[5])
mouseMove(*position[4]...
I want to create a popup application that will run against my sql database and Fire a popup everymorning at the user machine to ask a question. the response will be send back to the Database. Prety easy with Windows service BUT not with a POpup or Interface.
How can i accomplish this?
Thanks for any suggestion
...
I used the Wizard to create a baisc input box with a OK and Cancel
I made the input box type "int" with min value 0 and max 99.
Now I want to edit the input box so that it is type string.
I have the MFC ClassWizard open and can see the ControlID, Type, and Member ID of the input box. However, there is no option to edit it...
How...
Basically i need the way to just have a popup schedule to open every morning when the user log in his computer. an application to install in his computer. I am not quite sure what to use? Any direction
...
Ideally, what I'd like to be able to do is take the name of a time zone and ask Windows for its corresponding time zone info (offset from UTC, DST offset, dates for DST switch, etc.). It looks like Windows uses a TIME_ZONE_INFORMATION struct to hold this sort of info. So, presumably, I want a function which takes a string with the time z...
Simple question: What is dll hijacking?
I read a lot about which applications are vulnerable, but not a lot of depth as to why.
Answers appreciated.
...
I'm inquiring whether is is possible to get:
ink/tone level of a printers cartridge
the cartridge model number
The platform and programming language is free. But I'm most interested in a Windows solution.
Also do you know if there is some work in progress for a standard on communicating with the printer - or if some specific brands ...
I created a ATL/COM project, and implement the IShellExtInit interface. In the Initialize method, I use the DrapDropFile function to get the file names of the files whose selected in the folder.
e.g.
1.In the folder C:\WINDOWS\MyFolder\ contains the files:
a.png, b.bmp, c.jpg
2.Right click the "b.bmp".
3.In the Initialize method, I...
I have apache running as a child of a process, how can i tell it to restart gracefully, or stop gracefully (without killing current connections...)
-- or how to make apache act like in restart (re-read configuration, close and open threads...)
...
i need to perform this operation for a user in a session from a service running in session 0:
1. RegisterClipboardFormat
2. IsClipboardFormatAvailable
...
I have written a source code with a time delay.In unix I have used the
#include <unistd.h> header file and usleep function.
What is the equivalent to this on windows?
What library and function should I use if I write the same code on windows.
...
Let's consider I have a service in my user session that listens on some TCP port.
Is there a way, on Windows, to only authorize processes from the same session to connect, and to deny connections from the "outside" ? ("outside" means another computer, and another user session on the same host).
I will also accept any alternative to TCP...
I have created a Win32 Service using C++ and installed to the Services Successfully.
Now While I try Starting the service from Services.msc , I am getting the Error:
Could not start the Service on Local Computer . Error 2: The system can not find the File specified.
Here is the code snippet I am defining in the Service Entry Point:
#i...
I have been using emacsw32 for a year or so, and I never even realized that meta+r is supposed to be interactive and show hits right away! This works in the unpatched emacsw32 client (which is also much newer, btw).
Wondering if anyone knows why this is? Is it the patching breaking it or is it the older emacs? Its not very old though, s...
I need to chose between a process with 2 threads or a 2 processes with one thread on windows. I am intresting in the time slice. Windows running threads so context switch will be in either case. What I want to know if the time it runs each of the thread in the 2 cases will be the same? Thanks.
...
How to programmatically configure a proxy server for connectivity on the local network to the internet using a windows application.
Please suggest a good example/reference.
Screenshot shows the windows application form for setting proxy server
...
My application has custom crash-handling built-in (see John Robbins' excellent book about "Debugging Windows Applications"). To test this functionality, I always used the Windows function DebugBreak() and this always worked perfectly. But since Windows 7, calling this function just says "A breakpoint has been reached" and stops the app...
I've looked through couple of articles here such as:
http://stackoverflow.com/questions/2124672/java-stack-dump-on-windows
http://stackoverflow.com/questions/239544/thread-dump-programmatically-jdi-java-debugger-interface
But didnt catch the exact answer.
The problem:
There is a Java5 Application on Windows that's runs as a service (...
Hi,
I have some original code that manages exception safety like this:
void foo() {
HDC hdc = //get an HDC
HBITMAP hbitmap = //get an HBITMAP
HGDIOBJ hbitmapOld = SelectObject(hdc, hbitmap);
try {
//do something that may throw an exception
} catch (...) {
SelectObject(hdc, hbitmapOld);
thro...
As a pet project, I've been playing with the concept of integrating Aero Glass effects into my SWT application. Łukasz Milewski has an excellent blog post explaining how this can be accomplished, which pretty much boils down to this:
final Display display = new Display();
final Shell shell = new Shell(display);
shell.setLayout(new FormL...