windows

If I send a WM_KEYDOWN message (using wndproc) will the computer hold the key down until I send WM_KEYUP?

I am looking for a solution to programmatically hold a keyboard key down during some time (I don't know how many time). I think that if I send a WM_KEYDOWN message the key will be held down until WM_KEYUP is send, but I am not sure. I would test it. But I need to go and I don't have much time. I want to see if someone already tested th...

How can i get the path to the common Desktop and Start Menu dirs in C#?

I'm using .NET 2.0. I noticed that there doesn't seem to be a Environment.SpecialFolder member for the common Desktop and common Start Menu folders. i would prefer a way that doesn't involve loading shell32.dll and using SHGetSpecialFolderPath ...

I want to make a virtual keyboard. Do I need to send WM_KEYDOWN to the current active window or HWND_BROADCAST?

I am making an app that simulates a keyboard. I will do it by sending WM_KEYDOWN to a window, but I am not sure where to send the message. to the currently active window or to HWND_BROADCAST? Here is an other question I posted, related to this one. http://stackoverflow.com/questions/2089968/if-i-send-a-wmkeydown-message-using-wndproc-wi...

How to reduce the size of vendor dlls from each ClickOnce updates?

Hello, Is there a way to reduce down the size of each ClickOnce updates? Each update included all the custom verdors dlls (eg. Telerik, NHibernate etc) and is there a way to only include with 1st initial install and not include in later updates? I only want the latest updated application dlls and .exe in the ClickOnce update file so th...

Can the sendinput API simulate a keyboard key being held down during some time?

My app will need to simulate a key being held down during some time. I don't know how many time. Can I use the sendinput API for this? ...

Open-source training class/room/instructor resource management software?

We're looking to replace an internal system used for managing training classes with something a bit more robust. Needs to be open-source or have a license level that grants access to source, and needs to be ASP.net (C# preferred, but could live with VB.net) Ultimately, we'll need to be able to assign facilities and instructors, manage a...

Given a pointer, how might I find the _HEAP_ENTRY that it belongs to?

I'm learning to use WinDbg and I might be way off track on this, but I assume that if my program isn't using a paged heap that instead of _DPH_HEAP_BLOCK structures that "own" a pointer to my allocation, I would instead have a _HEAP_ENTRY for the allocated data. Given an address to allocated data on the heap, how might I find which _HEA...

Producer/Consumer For Talking to Devices Serially

Here is my problem: I have to be able to send and receive to a device over serial. This has to be done in a multi-threaded fashion. The flow is as follows: Wait for device to send me something - or if idle, then query status to see if online with device If device sends me something, then process message, acknowledge, and tell device to...

Python Window Activation

How would I programmatically activate a window in Windows using Python? I'm sending keystrokes to it and at the moment I'm just making sure it's the last application used then sending the keystroke Alt+Tab to switch over to it from the DOS console. Is there a better way (since I've learned by experience that this way is by no means foolp...

Can't find a decent git gui for windows. Anyone know of one?

I'm running win7 and need a good git client with a GUI. I like bash but it feels clunky in windows. the GUI that comes with the windows package at git's website is missing a lot of stuff too. I'm considering switching to Ubuntu and using Gedit + git instead. What should I do? stay in windows and use Aptana or Komodo with another git clie...

Handling Files greater than 2 GB in MSVC6!

Normal file related functions like fseek, ftell etc in Windows MSVC6 can handle files only upto 2GB (As per my current understanding, Please correct me if I am wrong). I want to work with files >2GB. How should I go about it? What are the functions available? ...

Is There Any Reason Not To Use The Windows Registry For Program Settings?

To me its a no-brainer. The settings for my program go into the Windows Registry. After all, that's what it's for, isn't it? But some programmers are still hesitant in using the Registry. They state that as it grows it slows down your computer. Or they state that it gets corrupted and causes your computer to malfunction. So they write...

Does the /3gb switch reduces the User Objects Limitation?

Hi all, Windows has a limitation of 10000 USer Objects. If we reach this limitation, an exception is thrown. If I use the /3gb switch, this limitation is less than 10000 objects? (meaning that the out of memory exception will be thrown with less than 10000 user objects? ...

How can I debug a binary that has no debugging symbols?

I have an executable that remained from a previous programmer ( and no source code is available ). The thing is, it started to work kind of buggy and I'm trying to figure out why. The tool reads data from somewhere and populates a combobox with it. Is there anyway I could debug it, and see where is it getting the data from? What tool ca...

how to show Bold text inside tooltip text in windows form tooltip control?

I want to show some part in my tooltip text as bold. i am doing this string toolTipText = "tooltip text <b> Text to be in bold </b> rest of tooltip text."; this.toolTip1.SetToolTip(this.linkLabel1, toolTipText); in the above code i want the text inside and tags should come in bold. Thanks in advance.... ...

Windows Context menu shell icon

I have created a new Windows shell context menu item using registry and keys HKLM\Software\Classes\Folder\shell\appname HKLM\Software\Classes\Folder\shell\appname\command now I want to add an icon to this command. How I do that? ...

how to make gvim on windows behave exacly like linux console vim?

Hi, I have used Vim extensively on linux console, I am used to it's keyboard shortcuts, like Ctrl+V for vertical selection, and many others. I have installed gVim for Windows on my computer at work, and I almost can't use it, as many of keyboard commands were redefined. The Ctrl+V pastes the text from clipboard instead of starting vert...

Changing CMD window properties programmatically

How can I change the appearance of my current CMD window? I know there is a 'mode' and 'color' commands that give you some control, but it's not enough... Is it possible to change Screen Buffer Size separately? To turn QuickEdit mode on/off? Is there an API for this? ...

Java applet with usb access in Windows and Linux

We're developing a kind of gadget with usb connection but would not to force our users to install any driver and program in their computers, so... ¿it's possible to develop a java applet that work in linux and windows and have usb access? (We're java developers but nerver before worked with applets) ...

Piping data to a file with the windows ‘ShellExecute’ function

Hi I am using the ‘ShellExecute’ function in windows vista Is there any way to pipe the output to a file? i.e. MySqlDump.exe '-u user1 -ppassword dbName > TheOutputFile.Sql Here my code theProgram := 'MySqlDump.exe'; itsParameters := '-u user1 -ppassword dbName'; rslt := ShellExecute(0, 'open', ...