windows

WPF ComboBox: background color when disabled

I currently use this style for my ComboBox in WPF: <Style TargetType="ComboBox"> <Setter Property="Foreground" Value="White"/> <Setter Property="Background" Value="#303030"/> <Setter Property="BorderBrush" Value="#000000"/> </Style> How can I change it to specify the background color when the ComboBox i...

What GUI toolkit does Valve use for Steam?

What GUI toolkit does Valve use for Steam? Is it Qt? I am interested in using the same toolkit for a project. ...

Windows 32 or 64 bit using HKEY_LOCAL_MACHINE\Software\WOW6432 Node

I'm looking for a very simple way of determining if the version of Windows the customer is using is 32bit or 64bit. I know there are ways using .NEt but I'm looking to avoid them. I simply want to use something similar the below pseudo code and want to know if this method can be reliable. If Registry Key exists (HKEY_LOCAL_MACHINE\Softw...

Programmatically grabbing DLL manifest information with Python or other common scripting language / tool.

Hi, I am having a problem like this one: http://svn.haxx.se/tsvnusers/archive-2008-07/1051.shtml Except that the app is our own (sorry, won't give you confidential details). Although, it is not our fault that SideBySide is so flawed. Anyhow, version X works and version Y bombs right at the start. I am facing the task of walking throug...

Interactive cmd.exe in Windows

Is it possible to create an interactive cmd under Windows? I am looking for a scripting solution to login to a server remotely which prompts password entering. Take SSH as an example. A normal user will do the following at a command line window: C:>ssh2 [email protected] "echo Hello" user's password: ******** Hello The second line, wh...

How do i begin writing a windows shell extension?

I'm looking at writing a shell extension so when a file is clicked an action can be performed against it. (Like any other context menu :)) What is the minimum i need to insert a new Menu Item in the Context menu and perform an action against one or more files. A comparative example would be that i selected 10 files and Send to Zip. I...

Rake Test Very Slow in Windows

Why is Ruby, and Ruby on Rails (1.8.6 One Click Installer, local database) so ruddy slow on Windows? ruby script/server - 30 seconds rake test - 45 seconds etc. Yet, when I pop over to a much slower linux box, it's virtually instantaneous. I've checked everything - no significant CPU processes running, no network issues... and so on...

How to prevent a user from changing a file manually?

In a WPF application I use .txt files for holding some information. An application can read and write data from/to .txt file. Everything is OK, but the problem is that, to achieve this purpose, I have to grant writing access rights to these files for a user of an application and so, he/she gets the possibility to edit these files manuall...

Installing a perl application along with the supporting modules onto a Windows PC that doesn't have a compiler

I'm building a perl application that interacts with a PostgreSQL database via the DBD::Pg module, and that uses Perl/Tk for it's GUI. It works fairly well on my system, but I'm designing it for a family member to use for their business. They don't have a c++ compiler and don't have a clue what CPAN is. The goal is to not bog them down by...

Which GUI framework to learn when you know scripting and HCI

I have some knowledge about Human computer interaction and some basic knowledge programming scripts (Python) that run from start to finish and automate some tasks I want to do or calculations. In the past I built interfaces in HTML with PHP behind it. I would like my python scripts to evolve from the command line and build some applicat...

how to ensure whether the windows service is in starting or started state

I get a running status for both starting and started state using ServiceControllerStatus. Is there any way to find whether the service has been completely started ...

How to get window title of a program reduced in taskar ?

With C#, i use this code to list main window processes titles Process[] ProcessArray = Process.GetProcesses(); try { foreach (Process proc in ProcessArray) { Console.WriteLine(proc.MainWindowTitle); } } catch (Exception ex) { Console.WriteLine(ex.Message); } but this doesn't work to see mainwindowtitle of processes...

Calling an executable from within Python / Django web application running on IIS

Hi all, I have a Python / Django application which is supposed to call an external windows binary and get its output at some point. And it does so when tested via 'python manage.py shell'. But when it is run from within the web browser, which is served by IIS, the external application is not executed. Is IIS blocking something on the...

in windows SAS, how to read the file loaded recently in particular path.

in windows SAS, how to read the file loaded recently in particular path. as i am accing from a path having lot of files , so it should pick a file having the latest data loaded in that path ...

Is it possible to build Windows Mobile emulation into an application?

I'm building an application that's a host of various other applications (of sorts). One of the features I wanted to try and achieve was the possibility of running Windows Mobile applications. I know an emulator can be downloaded from MSDN but everything suggests it is only really for testing Mobile apps. Would it be a possibility to s...

seekg() failing mysteriously

I have a 2884765579 bytes file. This is double checked with this function, that returns that number: size_t GetSize() { const size_t current_position = mFile.tellg(); mFile.seekg(0, std::ios::end); const size_t ret = mFile.tellg(); mFile.seekg(current_position); return ret; } I then do: mFile.se...

Django "Error: cannot import name escape" on windows

I cannot run the dev server because of this error ("Error: cannot import name escape"). I assume its because of modifications I've done to the project, but i have no idea how to find where the error is originating from to fix it. I don't import anything called escape anywhere. Update Using django-admin.py rather than the projects man...

Clearing clipboard using VBScript

How to clear clipboard using VBScript on Win32? ...

How to hide Aptana start page on Eclipse?

How to make it not appear when I open Eclipse? ...

How to get the cursor position

Hello, I want to know how to get the cursor position on Windows in c++, Reasons: I try to move the mouse position on X Y coordinate with the screen information e.g: i want to set the mouse position in the offset x:576 y:854 on the screen. The only method that I found for do that is: mouse_event(MOUSEEVENTF_ABSOLUTE|MOUSEEVENTF_MOVE|...