windows

Python/Tkinter window events and properties

I've been searching for information on the following Tkinter window features without success. Platform is Windows, Python 2.7. At the end of this post is code that can be used to explore Tkinter window events. How can one detect window minimize/maximize events? The event object returned by binding to a window's event does contain any ...

Python or PHP for small windows administration scripts?

I'm choosing between these two languages, in contrast to another question here. My program going to be set of scripts checking files, free space, checking that apps are running etc. and writing information to database. Then PHP web page will show results. Python have more examples of winapi calls (at least at StackOverflow) and more att...

I am looking for a windows spy application

Hello Everyone, A few years ago I downloaded an application for windows that would let me see the windows handle, class names, zorder, etc... of applications with I dragged a icon over the window. It also let me change the visibility of the controls on the application IIRC. I know the icon the application used was in the shape of a cros...

What does "Ex" stand for in Windows API function names?

In windows APIs and various other libraries where I have seen multiple entry points to methods I have noticed the use of the Ex abbreviation in scenarios such as MyApiCall and MyApiCallEx. My assumption is that this stands for Extension or Extra could someone please confirm? Any history on why Ex was chosen rather then MyApiCall2 or si...

ColdFusion error after hosting transfer

I recently moved a ColdFusion site from one domain to the other with no issue (practically) besides one which I am having some trouble figuring out. I am a LAMP developer / designer and CF is a bit foreign to me so pardon my ignorance. The site is working properly except for the store component, I am getting the following error "The ...

Does anyone have any solutions for playing an ASF stream in an iPhone app?

As a part of my app I'm building, I'm trying to add a radio feed, and the radio station in question only supplies an asx/asf stream and has no plans to support anything else, so I have no access to change any of the source stream. Obviously, reading an ASF stream using the default libraries does not work, as the iPhone does not support ...

Improve downloading speed in subthread

I have a program which manages serveral subthreads for FTP downloading.It works fine except that the downloading speed becomes slow when number of subthreads increased.I've tried downloading the same resource with IE at the same time,and it's much faster.So how can I improve this?All the threads are started by AfxBeginThread.Help would b...

Horizontal Scroll Bar in Pocket Internet Explorer

For my project I need to show a horizontal scroll bar in the Pocket Internet Explorer (PIE). The best discussion I could find on the web is at http://www.pocketpcjunkies.com/Uwe/Forum.aspx/pocket-pc/31244/Horizontal-scroll-only-PIE which does not have a clear solution. Can you please give me some directions on how to do it? I am open to ...

How can I substring a TCHAR

I have a TCHAR and value as below: TCHAR szDestPathRoot[MAX_PATH]="String This"; Now I want the 1st three character from TCHAR , like below: szDestPathRoot.substring(0,2); How can I do this. ...

Special Character in windows file name.

why we can not use any special character (?, <..) in windows File name ? ...

How to play MPEG-TS videos by DirectShow on Windows 7?

Our application uses IGraphBuilder::RenderFile to build filter graph. On Windows 7, this application can play MPEG-PS videos smoothly, but it cannot open/play MPEG-TS(transport stream) videos. IGraphBuilder::RenderFile returns an error code VFW_E_UNSUPPORTED_STREAM. On my Windows 7, Windows Media Player can open/play those MPEG-TS HDV v...

c++ What process is listening on a certain port in windows

I have created a program in visual c++, where i have implemented a web service. The web service is set to listen on port 80, but if another program already is using this port, the web service fail to start up. So when the webservice can't start, I would like to have a function or method, which can get the name of the process, that curr...

Create a native Windows window in JNA and some GetWindowLong with GWL_WNDPROC

Good day, I have been using JNA for a while to interact with the Windows API and now I am stuck when creating a window. As far as I have done the following: 1. Have created a child window of an existing window and obtained a valid handler to it. 2. Understood that every window in Windows has a non-stop message-dispatch loop. 3. Understo...

how to show windows user control from another windows user control in c#.net

Hi, can anyone tell me how to achieve the below scenario: I have a windows form in which a windows user control(first user control) is present. On click of the button in the first windows user control I want to show another windows user control(second) and hide the first one. Please let me know the procedure to do this. Thanks in Adva...

How can I keep a disc spinning in the DVD ROM drive?

I just want to keep the DVD spinning in the DVD ROM drive once the disc is inserted. My only purpose is to reduce the disc spin up time when the user finally wishes to play the DVD at some later point in time. Users can choose whether s/he wants to prevent the disc from spinning down. So, the question really is how can I change the sp...

How to Create Registry key using a batfile

Need to Create a Registry Key using bat file.Can I create Reg Key using Command prompt or a bat file. The main purpose behind this , I want to create envoirment variable using bat file. ...

How to add a button to a window that I haven't created in windows using JNA (user32 or whatever dll)

Hi, I have been trying to do the following thing in windows, using JNA: add a button to a window that I haven't created. First, however, I would like to create a WNDPROC listener so I know what messages are being sent. The problem is that messages are not being sent/received in the message pump, while they should be (because windows co...

Obtain a list of partitions on Windows

Goal I'm porting a filesystem to Windows, and am writing a more Windows-like interface for the mounter executable. Part of this process is letting the user locate a partition and pick a drive letter. Ultimately the choice of partition has to result in something I can open using CreateFile(), open(), fopen() or similar. Leads Windows s...

Handling multiple perl scripts in windows command prompt

Hi, I have a lot of perl scripts that are on infinite loop running on my windows system. It is terribly inconvenient to have that many command prompts open not to mention the likelihood of closing them by mistake(strangely, they also seem to pause when I click on the prompt) Is there someway I can handle this? Like maybe minimize this ...

Deactivate add-ons by start IE with powershell (for automated tests)

Hello, I write a script for automated tests. I want that the IE runs without add-ons. It would be OK if set this after the start of it, but it is important that I can work with the IE. (I must can to grab it for my testing). I want start IE with following powershell-script: $ie = new-object -comobject InternetExplorer.Application -pro...