windows

Create shortcut to start menu (not IN start menu)

I have been experimenting with object dock and rocket dock. So far I like object dock better, but it takes FOREVER to start up on my machine (more than a minute). I am running on a good computer (quad core 4 gigs ram ect ect) so I don't understand why this is. Anyway I have been using rocketdock instead because of this, but the problem i...

Replacing the Start Menu

I want to make my own Start Menu replacement and I am trying to figure out what approach to use. There are a number of ways the Start Menu is activated: click on it, hit windows key, hit ctrl+esc keys or tab until it gets focus and hit the space or enter key. I know enough about win32 to do each one of these separately and I could figur...

Holding shift+ctrl then release one each doesn't raise KeyUp event?

Hi, In my custom control, I override OnKeyUp event handler. When I press Ctrl key only, then lease it, the keyUp event fired, it's ok. When I press Shift key only, then lease it, the keyUp event fired, it's ok. But when I press both Ctr+Shift keys, then lease one by one, for example, holding Ctrl+shift first, then release Shift key w...

Send keypresses across the network

Hi, I'd like to be able to send key presses from one computer to the other. I have a voice application on one system which I use for my headset, and the other system is my main system. The voice application uses a Push-to-talk (PTT) system, which I'd rather keep. So what I'd like to do is press a key on my main system and have it sent ...

What does .NET give me, that Win32 does NOT?

What would the usage of .NET give me, that i don't have using Win32 - and sometimes maybe googling for some 50-100 Lines of code i can reuse? I am developing Win32 since it exists (> 15 years). Its straight forward and very robust, although sometimes it needs some more calls than you'd expect, and of course you need to keep track of han...

Do standard windows .ini files allow comments?

Are comments allowed in Windows ini files? (...assuming you're using the GetPrivateProfileString api functions to read them...) [Section] Name=Value ; comment ; full line comment And, is there a proper spec of the .INI file format anywhere? Thanks for the replies - However maybe I wasn't clear enough. It's only the format as read...

Is there an auto-upgrade library / framework available for windows that has similar features as the ones Sparkle for Mac OSX provides ?

Our app is built using Qt and I would like to use a framework similar to Sparkle in our Windows version, to replace our custom solution. Is there anything like this ? ...

Elevated process in Vista does not overwrite files

Hello! I'm trying to run elevated process, say, file_copier.exe, from another host process with ShellExecuteEx and lpVerb = "runas" on Vista. It shows UAC dialog and runs elevated, and copies files to "dangerous" folders, but it does not overwrite existing files (exe's). I've read here: http://www.codeproject.com/KB/vista-security/UAC...

Very slow read from DVD in Java and .Net

I noticed in two applications to generate hashes of files, one written in Java and the other in C#, that the performance is horrible when reading from a DVD. I'm using Windows XP SP3. I noticed from the noise, that the drive keeps spinning down after reading a bunch of blocks, causing pauses of a couple of seconds between reads. The str...

How to get/set data of(into) visual components (of winodws programs) programmatically?

Let me clarify the question a bit. I am talking about windows GUI programs. Say a program-window has a dialog box (or a confirm button) asking user input. How can I provide input to that program using my program (written in say C#, Java or Python). Or say, a program window is showing some image in one of its panels. How can I grab that f...

Maximize an MDIChild of another application VB .Net

I'm making an appication that needs to maximize the window of another application. In Spy++, the way it works is -> "Working Model - Untitled1" -> "MDICloient" -> "Untitled1" This is what the tree view looks like. I need to maximize Untitled1, but I'm not sure how. I tried findwindow "Working Model - Untitled1" and then used get and se...

Getting the Window Title?

Ok i specify: My problem is that I want to assign a keyboardshortcut for Dreamweaver CS4 and I have it like this: "C:\Program Files\Adobe\Adobe Dreamweaver CS4\Dreamweaver.exe" Thats ok so far. But when I press the key it doesn't place itself infront of everything else like Outlook and Visual Studio does, instead it blinks in the taskb...

Get noticed when an application tries to take a screenshot (windows)

I need my application to get noticed when another process is trying to do any screen capture. Is that doable ? ...

How can I get the real size of an SD card in Windows?

We're using a small self-made windows-based tool to write OS, Images and a FAT partition containing data on SD cards that will then be used in embedded devices as boot medium and data storage. I'm currently using IOCTL_DISK_GET_DRIVE_GEOMETRY to get the size of an SD card. However, due to the limitations of the CHS format it's not the r...

How to get list opened windows in PyGTK or GTK in Ubuntu?

How to get list opened windows in PyGTK or GTK or other programming language? in Ubuntu? edit: i want get list paths opened directories on desktop! ...

Multi-lingual Applications

I came accross this thread about multi-lingual applications. I really liked the second answer and I am trying to implement it. Can I ask if anyone has example codes of the search scripts and of a translator program or web service I could use. I use C# if that helps. The secion dealing with: MessageBox(Localize("Hello"), Localize("Titl...

WinSxS: How to take dependency on specific version of gdiplus.dll?

I need to add a dependency on a specific version of GDIPlus. This is the version of GDI+ that i want: I want to be sure that I'm using this version for a specific compatibility reason. I've added an assembly manifest to my executable, defining my dependancy on the version of GdiPlus: <dependency> <dependentAssembly> <assemb...

How to toggle/switch Windows taskbar from "show" to "auto-hide" (and vice-versa) ?

Basically I want to make simple toggle program (that will be mapped to some keyboard shortcut) that set taskbar to auto-hide mode if in normal mode (and conversely, to normal show mode if in auto-hide). Do You know how to implement it in C#? (or Win32 C++, but anything that will actually do it is fine.) Thanks. Hope I've made myself cl...

Enable a control of another application with User32 (vb .net)

I was wondering if there was a function in user32 that could enable a hwnd control if it is disabled (grayed out) If I know the handle then can I do this? Also, if it is a menuitem, can it be done too? Thanks ...

How to configure smartphone emulator to send email.

Hello, I am working on windows mobile 6.I want to send email but i don't how to configure emulator for send email.Somewhere gives that for send email we have to synchronize with exchange server.But i don't know how to configure. I am using this code:- OutlookSession session = new OutlookSession(); Em...