What's the fastest way to take a screenshot on windows? PIL.ImageGrab is rather slow.. it takes between 4-5 seconds to take 30 screenshots of the same small window. Taking screenshots of the whole desktop is even slower.
...
I don't know if this is a dumb question or not but again as my professor says if you have doubts then clear them . What is the difference between Linux text mode and windows command prompt (cmd). I know both windows and Linux are different Operating Systems but when you look at the commands, some of the commands are common For Example cd...
Hi All,
I am facing a strange error in MOSS 2007 running under Windows 2008. I have created a custom HTTP Module that fires on the application's OnAuthenticate event. It basically creates a custom cookie which is used by another application to authenticate the user, creating a single sign-on effect.
Everything went fine under the de...
With PyGTK running on Windows, I want to have a new window pop up near a parent window, but never off-screen.
I observed the behavior I want in Microsoft Wordpad in both Windows 7 and Windows XP. If you make the window very small and move it to the bottom right of the desktop, right click in the text field, and open the Paragraph menu,...
I want to create a static executable that will run on a windows machine from a linux machine (ubutu 10.04).
Is there anyway of doing so??
thanks,
...
I don't have 64bit windows, and i have to develop app for 64bit windows.
I have downloaded and installed virtual pc
i develop on windows xp 32bit, vista 32bit and win7 32bit
How to i develop a 32bit compatable application?
[EDIT]
Am developing using visual studio 6 & 2005, Borland c++ 7. And i havent seen 64bit versions of this softw...
It's anyway to check if the mouse cursor of Windows has changed?
For example, I'm on a website and isn't have complete the loading yet, and some specific place on the site has a link to click, but, if I maintain the mouse above the link when the page doesn't complete the load, the cursor will remain the same, but if the page load comple...
We have a multi-threaded C++ app which is mis-behaving. Fixing a corner-case bug properly would likely be a lot of work. Putting a patch on a bullet wound in combination with something else might do the trick. Due to too many heavy (GUI) threads being spawned, we are running over the limit of messages, which is defined in:
HKLM\Software...
I am using CreateFileMapping and MapViewOfFile to try and map an almost 1 GB file. I was having some problems with extending the file so I thought that I would try using CreateFileMapping with a 1 GB size. That is larger than the actual file, but it works well on smaller files.
It seems that I can get almost to a 1 GB mapping, but not a...
My script make a while True: begin with the F4 pressed, but I want it to stop when the F2 is pressed, how can I do it?
I'm trying this (using pyhook) but doesn't work...
def onKeyboardEvent(event):
if event.KeyID == 115: #F4
while True:
selectAndCopy(468,722)
getClipboard()
time.slee...
I develop unmanaged C++ applications in MSVC2008. And occasionally the application crashes at the customer site. I found an article on this. But it was written in 2002 for Visual Studio .NET. Has things changed since? Can the same technique be used? Is there a newer method?
...
I want to simply add some word to a list and then count how many words are in there...
And check if the word isn't in the list already.
How can I do it?
...
I need a library that can URLencode a string/char array.
Now, I can hex encode an ASCII array like here:
http://www.codeguru.com/cpp/cpp/cpp_mfc/article.php/c4029
But I need something that works with Unicode.
Note: On Linux AND on Windows !
CURL has a quite nice:
char *encodedURL = curl_easy_escape(handle,WEBPAGE_URL, strlen(WEBPAGE...
I'm working on a simulation project using c++ on both windows and linux.
There will be several thousand objects (Perhaps 3000-5000) in the simulation. In plan to have several threads performing actions on the objects so that it makes good use of multi core machines, for example one thread handling movement and location of the objects, o...
how to install AVI X263 codec with C# . So it possible to play that avi file with windows media player.
Is theere any diffrenet codec that Windows Meidal Player can Play them.
My vide size is 1024 *768 .
...
I have a local server written in C++ listening to inbound TCP connects using plain socket ::accept() and UDP recvfrom(). I have two problems with this that I wish to solve:
Can I programatically make Windows let me open the accept socket without it automatically being blocked by the Windows (software) firewall?
Are there any ports I ca...
Hi All
Firstly, i'm still a bit of a noob when it comes to web dev, so please bear with me :)
I have a client that has the following requirements:
Require a stand alone web form (in html) to submit to a script and append the details to a csv or xls file
Must work without any connection to the internet
Must be easy to set up (i.e have...
Many mice and keyboards have "zoom" buttons on them. These almost always generate Ctrl+Mouse Wheel messages to the applications, so they are easily accounted for by us programmers.
But my current Logitech mouse has an additional feature. The zoom wheel indeed sends Ctrl+Mouse Wheel messages when scrolled (or, actually, tilted), but when...
I'm developing an application for debugging purposes. I want the user to be able to select the process to be debugged using the mouse. Process Explorer does a great job of this with the "Find Window's Process" feature. What I can't figure out is how it does this? Does anyone know the Window's API that provides this functionality?
Thanks...
Hi,
We have the following code that runs in Linux Ubuntu, but not on Windows XP or Windows 7.
Do you know what could be the problem?
Here's the code snippet:
if (logger.isDebugEnabled())
{
logger.debug("before getting connection");
}
String url = "jdbc:mysql://XXX.XXX.XXX.XXX";
Connection conn = DriverMana...