I am having a Vodaphone data card which can be inserted in a USB port.
I have XP and Vista OS, and I am using WM_DEVICECHANGE event of Windows, to know USB Insertion and removal, and it's working fine for me.
But I am not able to differentiate between Data card insertion and Pen drive insertion. Is it possible?
...
Hello again!
This morning I finally made my mind and decided to ask you for help. Problem is that in my Delphi application no hints are shown at all...
I have read about THintAction problem, I have read guides/tutorials/manuals, tried to invoke Hint windows ( firing event handlers ) manually, but nothing worked. They just doesnt show.
I...
what is wrong there?
procedure TForm1.VCLHelpClick(Sender: TObject);
var Ctrl : TWinControl;
begin
Ctrl := FindVCLWindow(Mouse.CursorPos);
if Ctrl <> nil then
if Form2.Cursor = crHelp then begin
if Ctrl = CreatorEdit then Application.HelpCommand(HELP_CONTEXT,001);
if Ctrl = EditorEdit then Application.HelpCommand(HELP_CONTEXT...
Hello,
I want to take a snapshot with my webcam using java and save it to a jpg file. What are the steps needed to do so? A tutorial would be greatly appreciated.
Greetings,
Burkhard
...
Proxy Auto Config (PAC) is the traditional method by which web-browsers are automatically configured to use the appropriate proxy for any given site. PAC files consist of a single function implemented in JavaScript.
I'd like to execute this function for another puropose: I'm trying to make an application which selects a proxy to use in...
I'm using the CakePHP Console to download files from we and processed in a database. I'm running the console from inside the "app" directory. But when I'm trying to run the console outside app and by just setting the "-app" parameter for my cron job, it doesn't work.
To be honest, I've had no success using -app parameter. It's like it'...
Using Hyper-V I built a private windows domain which is fenced off from our main network. Ultimately I want to provision this domain for others to use for dev and test, so they can be domain admin.
The domain controller is running the dhcp service (other systems in my domain have dependencies on dhcp). The problem is, if some idiot (i....
Microsoft provides a method as part of WinHTTP which allows a user to determine which Proxy ought to be used for any given URL. It's called WinHttpGetProxyForUrl.
Unfortunately I'm programming in python so I cannot directly access this function - I can use Win32COM to call any Microsoft service with a COM interface.
So is there any way...
I have two HANDLEs and they are created from the same file,
in such condition I want to write on offset from 1 to 100 using the first HANDLE,
and from 101 to 200 using the 2nd HANDLE, from 201 to 300 using the first HANDLE,
...,
How can I make this operation seems like a sequential write and no time is wasted
between positioning t...
I'm trying to use a feature of the Microsoft WinHttp library that has been exposed by the developers of Win32com. Unfortunately most of the library does not seem to be documented and there are no example of the correct way to use the win32inet features via the win32com library.
This is what I have so far:
import win32inet
hinternet = w...
I have multiple databases that I connect to using SQL*Plus in Windows (not the command window).
I've been looking for a way to change the title of the window, so that I can distinguish one instance from another, from the task bar. Yes, I know I can change the prompt, but then I have to switch between the instances and read the prompt, ...
I'm trying to port a win32 application to Windows Mobile 6 / 6.1 / 6.5. It uses winhttp which doesn't appear to be available on the mobile platforms.
My initial thought was to replace it with WinInet - but I wondered if anyone had a better idea?
...
I'm having problems with a third-party program which is using FindWindow() to find if another process is started.
Where can I find an already-compiled program which enumerate windows (using EnumWindow()) so that I can quickly find what's going wrong ?
...
We build complicated console-based tools that produce a lot of commentary on the console. These tools process a lot of data and so runs are expensive and we don't like to do them more often than necessary, especially during testing where we already have to run them repeatedly. During such tests, we often log the result to a file to ca...
So I can use PIL to grab a screenshot of the desktop, and then use pywin32 to get its rectangle and crop out the part I want. However, if there's something in front of the window I want, it'll occlude the application I wanted a screenshot of. Is there any way to get what windows would say an application is currently displaying? It has th...
Just curious. How does actually the function Sleep() work (declared in windows.h)? Maybe not just that implementation, but anyone. With that I mean - how is it implemented? How can it make the code "stop" for a specific time? Also curious about how cin >> and those actually work. What do they do exactly?
The only way I know how to "bloc...
In a previous question, I asked what it meant when my program returned an obscure value like
-1073741819
Well, now I'm getting another large return value,
-1073740777
And I would like to know if there is some list of all of these values and what they mean sopmewhere?
...
I'm writing a cross-platform shell like program in python and I'd like to add custom tab-completion actions. On Unix systems I can use the built-in readline module and use code like the following to specify a list of possible completions when I hit the TAB key:
import readline
readline.parse_and_bind( 'tab: complete' )
readline.set_comp...
how can i drag and drop the some information from one window to another window?
...
presently I am doing a program for audio player in HTML & javascript.I want to DRag some songs from my files and drop to my audio player program.plesse ,how can i?
...