|
1
|
DonationCoder.com Software / Post New Requests Here / Re: IDEA: Desktop progress meter
|
on: April 07, 2009, 11:45:47 PM
|
If you are using Vista, you might try looking for a sidebar gadget that can do what you are looking for. Another option is a Yahoo Widget Engine widget. http://widgets.yahoo.com/These can be made to hide on a separate overlay pulled up with a hotkey, or can be forced to stay visible on the desktop. I don't know if there is one that is directly what you want, but these are often fairly customizable with respect to colors and things as you asked. --matt
|
|
|
|
|
2
|
DonationCoder.com Software / Post New Requests Here / Re: IDEA: program menu printing
|
on: April 07, 2009, 11:20:34 PM
|
You might want to give the EXE a look with one of these first. http://angusj.com/resourcehacker/http://www.wilsonc.demon.....uk/d10resourceeditor.htmOne way menus can be stored is as resources in the EXE. If its done this way, there should be a entries for the menus; however, there are lots of other ways to make menus work too. Its been a while since I've used either, so I don't remember how easy it is to copy the info out, but I think you can save it as a text file or copy and paste it or something. From the program side, I have an idea of how to go about it, but don't really have time to mash it out right now. For the other coders out there: with WINAPI you can use GetCursorPos to get the cursor position, then WindowFromPoint to get the hWnd for the window under that point. From there, you can do GetMenu to get the hMenu. Then, just recurse through the menu structures to print out the names. Hope this helps. --matt
|
|
|
|
|
6
|
DonationCoder.com Software / DC Member Programs and Projects / Re: Monitor Dimmer
|
on: January 23, 2008, 07:11:28 PM
|
Thanks for the API link Ehtyar. When I started this, a friend suggested I look at the gamma settings of my graphics card. However, I have my monitors color-managed, and the control panel disabled the gamma setting because of that, so I have a suspicion that something like this would not work in my case. Here is a much nicer version of the program. It works with arbitrary monitor numbers, (instead of being hardcoded for my monitor sizes  ), and remembers dimming and show settings between launches.
|
|
|
|
|
7
|
DonationCoder.com Software / DC Member Programs and Projects / Monitor Dimmer
|
on: January 23, 2008, 01:43:57 AM
|
|
I guess this program could be a little more flexible, and its not that amazing, but I wanted to share it as it fulfilled a need I had. Also, I wanted to share the technique I used as it took me a while to get it to work the way I wanted.
Background:
I have two monitors. Often, I'll watch a movie or play a game on the left one, while I will also be browsing web pages and chatting with people on the right one. If the movie or game is dark, and I'm looking a mostly white webpage, there is too much light.
Solution:
This program creates a window. A variable-alpha-transparency, black, always-on-top window, with no titlebar, etc. It covers my entire right monitor. BUT, by setting WS_EX_TRANSPARENT, its made transparent to events, and thus mouse clicks, keystrokes, etc. are passed on through to the windows below it.
Win Numpad+ darkens the screen, Win Numpad- lightens the screen, Win Numpad* toggles the overlay on/off.
Getting WS_EX_TRANSPARENT set in an AHK script is as simple as adding +E0x20 to the Gui creation command.
So, without further ado, I present -- MonitorDimmer. In both AHK and EXE.
Enjoy! --matt
|
|
|
|
|
11
|
DonationCoder.com Software / Post New Requests Here / Re: IDEA : hide window to system tray 1 icon
|
on: February 23, 2007, 09:52:41 PM
|
|
Hi Candle,
Give this little AHK script I threw together a shot...
Run it, make a window active, then hit Windows-T to throw it to the tray icon. Right-click the tray icon and click the window name to restore it.
NOTE: do not close the program with any windows hidden as they will still be running, but permanently hidden.
--matthew
|
|
|
|
|
12
|
DonationCoder.com Software / Post New Requests Here / Re: IDEA: MoveAllTo C:\olddata
|
on: February 23, 2007, 08:34:47 PM
|
|
When you physically move a folder from one location to another on the same partition, there is a very simple operation that can be performed by Windows to effect the move, and this is what Windows Explorer uses to make the quick change.
Making a copy, or moving to a different drive or partition causes Windows to have to physically access every file, making it a long process, and giving it many more problems.
So, your problem definitely needs to be attacked in the Move domain to get similar results. There is an AutoIt3 command for DirMove which moves a directory, similar to how a file is moved, so I think you will have to get a list of the directories in C:\ and move them one by one.
My guess then would be do do a loop like the one you use to do the verification, but instead get a list of all the items in C:\ Then, run both DirMove and FileMove on each item -- one of them will return failure, but that should be ok, as the other will succeed.
--matthew
|
|
|
|
|
13
|
DonationCoder.com Software / Post New Requests Here / Re: IDEA: Send a window to the Next or Previous Monitor in the same position.
|
on: February 23, 2007, 08:06:57 PM
|
|
jgpaiva, I keep finding your scripts to be ones I can't live without. artis, your work on this was nice as well.
I took the scripts you two wrote and rewrote them, with some new ideas in mind. My version purely uses monitor numbers, so those with unique setups will appreciate it, and it also works with more than 2 monitors.
Ctrl-Alt-Keypad+ moves the window to the next highest number Ctrl-Alt-Keypad- moves the window to the next lowest number
This is actually the first thing I have written using AHK, its flexibility is pretty amazing.
Enjoy, --matthew
|
|
|
|
|
14
|
DonationCoder.com Software / Post New Requests Here / Re: IDEA: drag window to edge automatically resizes it
|
on: September 14, 2006, 03:39:36 AM
|
|
I have noticed a tiny bug in this absolutely awesome utility... I don't know if anyone else has seen this or if its just something odd about how my system is.
If I go to the top left corner of my desktop, with no window there, then drag on the desktop, the grids will appear like I am dragging a window. This only happens in about the top 100x25 pixels, just like there is a title bar there.
If I then drop into one of the grids, a titlebar will flash up for a very short time, like a program is being sized to fit the grid, then go away. The title bar is for the Program Manager.
I believe this has something to do with the way AHK treats Program Manager as a window for some functions to get the size of the desktop and a few other things.
I modified the GridMoveP1.ahk script, in the MousePosition sub, on the line beginning AND WinTitle != "", to also include AND WinTitle != "Program Manager" which cures this little problem.
I've had this mod in place for a bit now and it doesn't seem to hurt anything.
Thanks for the awesome util, --mrm
|
|
|
|
|