windows

Fastest way to take a screenshot with python on windows

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. ...

Difference between Linux text mode and Windows command prompt

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...

HTTPModule invoked on main page but not on sub-page

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/win32, how do I place a new window near its parent but not off-screen?

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,...

Perl to static executable on linux

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, ...

test app on 64bit windows

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 there anyway to check if the mouse cursor has changed? [Python]

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...

How to check the utilization of USERPostMessageLimit on Windows using C++?

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...

Make Windows let me map 1 GB of virtual memory

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...

How can I make a while True break if certain key is pressed? [Python]

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...

How do I perform post-mortem debugging for Windows applications?

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? ...

How can I add some string to a list in order to make a count word? [Python]

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? ...

C++ URLencode library (Unicode capable) ?

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...

Concurrent access to a large collection of items

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...

install codec with C#

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 . ...

Creating a local server visible through firewalls

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...

I need the best solution for stand alone "web" app

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...

The "Default Zoom Level" Mouse Button

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...

How do I provide the "Find Window's Process" feature in Process Explorer (sysinternals)

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...

Database connection code runs on Linux but not Windows.

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...