AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pixelget - titlebar version

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Serenity



Joined: 07 Nov 2004
Posts: 1271

PostPosted: Sat Feb 19, 2005 4:20 am    Post subject: pixelget - titlebar version Reply with quote

I thought about merging this with titlebarclock but decided its better ran seperately as some might not want this always displaying.



As the screenshot shows, it displays the current mouse coords and pixel color in the titlebar. Clicking the middle mouse button copies the RGB value to the clipboard ready for pasting whereever you need. Clicking on the tray icon pauses the script which is useful if you do not wish it to update for a while.

Code:
; pixelget - titlebar version

menu, tray, tip, pixelget
#SingleInstance force

Menu, Tray, NoStandard ; only use this menu
Menu, Tray, Click, 1 ; Remove this line if you prefer double-click vs. single-click.
Menu, Tray, Add, Pau&se, Pause
Menu, Tray, Default, Pau&se
Menu, Tray, Add, &Reload, Reload
Menu, Tray, Add, E&xit, Exit

Gui, +ToolWindow +AlwaysOnTop -SysMenu -Caption
Gui, Color, CCCCCC
Gui, Font, s8 wBold cBE7DFF, Terminal
Gui, Font, cBE7DFF
Gui, Add, Text, x3 y5, x
Gui, Font, cFF6428
Gui, Add , Text, x+0 y5 h17 w30 vCurrentX, %MouseX%
Gui, Font, cBE7DFF
Gui, Add, Text, x+0 y5, y
Gui, Font, cD77526
Gui, Add , Text, x+0 y5 h17 w30 vCurrentY, %MouseY%
Gui, Font, cBE7DFF
Gui, Add, Text, x+0 y5, c
Gui, Font, cFFA162
Gui, Add , Text, x+0 y5 h17 w65 vCurrentPixel, %color%   

SetTimer, GetPixel, 100
Gui, Show, NoActivate x0 y0 h18 w200
WinSet, TransColor, CCCCCC 255, pixelget

GetPixel:
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%, RGB
GuiControl, , CurrentX, %MouseX%
GuiControl, , CurrentY, %MouseY%
GuiControl, , CurrentPixel, %color%
WinSet, TransColor, CCCCCC 255, pixelget
Gui, Show, NoActivate x550 y0, pixelget
return

MButton::
ControlGetText, CopyText, Static6, pixelget
StringTrimLeft, CopyTextTrim, CopyText, 2
Clipboard = %CopyTextTrim%
Return

;______________________
; tray menu here

Pause:
suspend
pause
return

Reload:
reload

Exit:
exitapp

_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
BoBo
Guest





PostPosted: Sat Feb 19, 2005 6:31 pm    Post subject: Reply with quote

Have I said already that I like it ?
Thx for sharing it Very Happy

Have phun.
Cool
Back to top
jonny



Joined: 13 Nov 2004
Posts: 2951
Location: Minnesota

PostPosted: Sat Feb 19, 2005 6:56 pm    Post subject: Reply with quote

At first I expected it to actually follow the titlebar around. Laughing Btw, cool script, thx.
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2485

PostPosted: Sat Feb 19, 2005 10:47 pm    Post subject: Reply with quote

Embarassed It took me a minute to figure out where it was and what it was doing... Laughing . Nice Smile. Middle mouse button doesn't work for me but that's likely because I'm using an Intellimouse Explorer mouse and the button is already mapped to something else...
Back to top
View user's profile Send private message Visit poster's website
Serenity



Joined: 07 Nov 2004
Posts: 1271

PostPosted: Sat Feb 19, 2005 11:03 pm    Post subject: Reply with quote

Thanks everyone!

corrupt, I had the same when I was writing it, moving the mouse thinking "why isn't the rgb updating?" - I wasn't moving the mouse out of the background color in Editpad!

jonny, I thought about having the script follow the active window so it was always in the titlebar of the active window regardless of the windows size. winampbar behaves like this and it annoyed me that it would keep switching positions on the screen.
_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
Guest 1
Guest





PostPosted: Sun Aug 20, 2006 8:04 pm    Post subject: Reply with quote

I need a script that shows the used memory of a program
within its titlebar (for each open program).

I found your script(s) and thought I could use them as a startingpoint.

But I have two problems.
1. Your script doesn't follow the titlebar.
2. How (where) do I get the used memory of a program.


To make things clear: In the end I want a script that shows in the
titlebar of each program (like Firefox,Azureus,Thunderbird etc.) its
used memory in his titlebar. Also, if the window is moved or resized).
Maybe even if the program is minimized the VALUE can be shown
above its taskbar-button.

Is there any chance to do this with autohotkey ??
If I get some hints I will try it on my own.
Thanks.
Back to top
slomz
Guest





PostPosted: Mon Aug 21, 2006 12:49 am    Post subject: Reply with quote

Do you mind giving instructions more clearly. Nothing is showing up.
Back to top
slomz
Guest





PostPosted: Mon Aug 21, 2006 12:49 am    Post subject: Reply with quote

Ahh sorry nvm. I see the small numbers now.
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group