windows

Need help in finding name of specific thing I'm trying to do

I think it's possible to somehow hook with the windows environment (specifically explorer.exe) and trigger specific things, for example launching control panel and using it as if I had mouse (meaning I'm clicking the interface from the code). Basically what I'm trying to do is automate some redundant tasks I do often, just I don't know ...

Haskell or Ocaml with OpenGL and SDL precompiled distribution for Windows

I want to learn Ocaml or Haskell and I want to do it by writing a simple game. Apparently, there's one small problem: nobody cares about Windows and I want to do it on Windows, natively. Haskell has Cabal, which has SDL, but it doesn't build due to a trivial problem with no workarounds (order of parameters passed to gcc). Ocaml doesn't ...

what's the nohup on windows

I want to run a java jar file like this: java -jar spider.jar how to run it on background on windows like this on linux: nohup java -jar spider.jar > /var/tmp/spider.log 2>&1 & thanks ...

Best Ruby editor for Windows with VI commands

I am looking for a good ruby editor that supports VI commands. I have been using gvim but it would be nice to have an IDE that helps me navigate between files. Any suggestions? I realize there is a similar question http://stackoverflow.com/questions/172168/ruby-on-rails-editor-for-windows however it doesn't address VI specific editors. ...

Get selected items of folder with WinAPI

Hey guys I try to get the selected files of a folder which the user is using. I have the following code which is already running, but only on desktop files: private String selectedFiles() { // get the handle of the desktop listview IntPtr vHandle = WinApiWrapper.FindWindow("Progman", "Program Manager"); vHand...

Reading/Sending From/To a Console Application

I'm using Delphi 2010, and I need to run a console application and automate the tasks that would normally require the user to enter information (for example a password). So basically I need some way to pipe all the text and read the lines so I know when the application is read for some kind of input, then automatically have my program s...

How does minigtk.dll in XChat for Windows work?

I used to write some pygtk apps for Windows, but the GTK for Windows library is always pain to maintain. I discovered XChat for Windows using a 472KB minigtk.dll. Can I too use this as standard gtk alternative for pygtk and others? ...

how to notice if "abcDEf" different that "abcdef" ?

hi how to notice if "abcDEf" different that "abcdef" ? in C# winforms ? thank's in advance ...

Disable buffering on redirected stdout Pipe (Win32 API, C++)

Hi, I'm spawning a process from Win32 using CreateProcess, setting the hStdOutput and hStdError properties of STARTUPINFO to pipe handles created with CreatePipe. I've got two threads reading the pipes, waiting for data to become available (or the process to complete, at which point it checks that there is no data left before terminati...

Creating file from CD-based application on user computer

Hi, My app, which is run on arbitrary computer on Widows XP/Vista/7 on arbitrary account (f.e. user with limited privileges) needs to open a file that is wrapped within another file. It can open this embedded file only by file name so the app needs to unwrap the file, store it as another file and then open it. What can I do to be sure t...

64 & 32 bit system directory windows

Hello, trying to find thid issue in the database with no luck. So, I'm developing on a 64bit system (windows seven). I'm making a simple console programme that check if a dll is present on the windows system. in that case i check in the system32 folder and then, in the sysWOW64 folder. The pro gramme is 32bit application. On a 32bit ta...

How to measure memory bandwidth utilization on Windows?

I have a highly threaded program but I believe it is not able to scale well across multiple cores because it is already saturating all the memory bandwidth. Is there any tool out there which allows to measure how much of the memory bandwidth is being used? Edit: Please note that typical profilers show things like memory leaks and memor...

File is used by another process. How to know which process?

I keep getting that exception in my program. How do I know which process locked it, either by program code or by doing something with windows? System.IO.IOException : The process cannot access the file 'file.ext' because it is being used by another process. ...

WPF: Make window unresizeable, but keep the frame?

I have a window that does not have a title bar (WindowStyle == WindowStyle.None). The entire window uses the Aero glass effect. When I make the window unresizeable (ResizeMode == ResizeMode.NoResize), the glass effect disappears and my controls just hang in midair. (Essentially, the window itself disappears but leaves its contents.) Is ...

Handling invalid window handle

The application retrieve window handles, using Enum* routines. It happens that in the while the application manage the handle (get class name, window statistics...) of an enumerated/created window, the handle is no more valid. The code managing window handles are protected using a try/catch block, but the window handle is stored and the...

Disable USB monitor when windows start

I need a method to disable USB monitor (secondary monitor) from displaying especially during the part when it hit login page. I have already implemented codes to off the display using something like changeDisplaySettingEX which is already working fine. It works in the way that when my application starts, then only the USB monitor will ...

Using Python to send/receive text from GUI program

Hi all - I'm using PyWin32's win32process.CreateProcess to start up a GUI program that has functionality I want to use in a Python class. I want to do the following from Python with this GUI: sent text to individual windows within the GUI (which seem to change identifiers every time I create the process if WinSpy++ is to be believed)...

host application Windows workflow

can someone help me for making a host application to run windows workflows from dll files, as like in MS CRM 4. ...

Automatically touch all files that use a certain #define (#ifdef foo / #endif)

Say you have a C project with tons of files, and tons of configurations managed by usign the -D option in GCC to define some flags. In my particular case, I have loads of files with that kind of stuff: void foo( sometype *x) { do_stuff_with_x(x); #ifdef MY_FLAG do_additional_stuff(x); #endif #ifdef OTHER_FLAG do_some_other_s...

me.activecontrol is always returing a splitcontainer name in form(win appln-vb.net)

Hi all, I am using splitcontainer in my form(Vb.Net).Now I need to set focus when the arrow keys are pressed. When I press the arrow keys, Me.ActiveControl in always returning the splitcontainer name. When I paste those controls out of the splitcontainer everything is working fine. Do I need to change the any property, to make the th...