| View previous topic :: View next topic |
| Author |
Message |
azure
Joined: 07 Jun 2007 Posts: 691
|
Posted: Thu Jul 12, 2007 1:31 pm Post subject: |
|
|
| no offence but whats the advantage of this over autoit window info tool since all the info you can use in ahk is limited to class and wintitle? |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Thu Jul 12, 2007 3:02 pm Post subject: |
|
|
| RFM. You can use the Window ID, HWND, Control names, texts/content of controls, colors, styles, Ex-styles, positions… |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3910 Location: Bremen, Germany
|
Posted: Thu Jul 12, 2007 4:26 pm Post subject: |
|
|
Hi azure,
You haven't used AHK recently, have you? AHK has new features you might find interesting. Take a look at the manual.
The autoit window info tool is useful, no question about that. I tried to write a replacement in AHK itself. It now offers several more options and features. If you don't use them or don't find them useful, you are free to use the autoit window info tool. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
fade2gray
Joined: 21 Oct 2006 Posts: 23
|
Posted: Mon Nov 05, 2007 2:16 pm Post subject: |
|
|
Hi Toralf,
Would it be possible to overlay the colour picker with a cross-hair? I sometimes have difficulty identifying the centre of the grid - especially at 15x15.
Thanks.
 |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3910 Location: Bremen, Germany
|
Posted: Mon Nov 05, 2007 8:26 pm Post subject: |
|
|
Hi fade2gray,
Thanks for the suggestion. I tried to avoid additional controls on the gui, but I added an additional gap to the center row and column. I hope this solves the issue. To get it working change the following:
add 5 lines at the top of the script | Code: |
;changes since 1.6
; - added a small gap in the mouse picker grid to identify the center (thanks fade2gray)
; - adjusted groupbox size and tab size
; - added reset of picker to default color on dimensional change
|
change the height of the groupbox at line 402 | Code: | Gui, 1:Add, GroupBox, x5 y+10 Section w274 h305 -wrap, Color Picker
|
change the code of the grid at line 411 to | Code: | Loop, 15 {
Row = %A_Index%
dy := (Row = 8 OR Row = 9) ? "y+2" : ""
Gui, 1:Add, Progress, xs+5 %dy% w17 h17 vPgbColorPicker%Row%_1,
Loop, 14 {
Column := A_Index + 1
dx := (A_Index = 7 OR A_Index = 8) ? 2 : 0
Gui, 1:Add, Progress, x+%dx% w17 h17 vPgbColorPicker%Row%_%Column%,
}
}
|
change the height of the tab at line 664 | Code: | }Else If (Tab1 = 3) {
GuiControl, 1:Move, Tab1, h430
|
and add the loops after the HalfDim line at line 737 | Code: | HalfDim := Dim // 2 + 1
Loop, 15 {
Row = %A_Index%
Loop, 15
GuiControl, 1:+BackgroundDefault ,PgbColorPicker%Row%_%A_Index%
}
|
_________________ Ciao
toralf  |
|
| Back to top |
|
 |
fade2gray
Joined: 21 Oct 2006 Posts: 23
|
Posted: Mon Nov 05, 2007 9:48 pm Post subject: |
|
|
Excellent solution, thank you.
| Quote: | | ;changes since 1.6 |
Is there a 1.6 version or should that read 1.5? |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3910 Location: Bremen, Germany
|
Posted: Tue Nov 06, 2007 5:58 pm Post subject: |
|
|
I updated the first post to version 1.7
| Quote: | ;changes since 1.6
; - added a small gap in the mouse picker grid to identify the center (thanks fade2gray)
; - adjusted groupbox size and tab size
; - added reset of picker to default color on dimensional change
;changes since 1.5
; - Groupboxes with bold text have been set -wrap, to fix line breaks on some windows themes
; - BGR is made default for color picker
; - update is stopped when mouse moves over its own gui, allowing easier graping of data, since no Pause key needs to be pressed.
|
_________________ Ciao
toralf  |
|
| Back to top |
|
 |
fade2gray
Joined: 21 Oct 2006 Posts: 23
|
Posted: Tue Nov 13, 2007 10:10 pm Post subject: |
|
|
Until I realised I had to account for the title bar and chamfer, it had always confused me why a control created at x0 y0 would be reported by any window info tool as being positioned at x3 y22.
Being too lazy to do the mental math for calculating the offsets myself, I've added an extra option to your utility to do the job for me. Maybe others might find it handy.
http://docs.google.com/View?docid=dhk3bh3m_3fcw85s
Last edited by fade2gray on Tue Nov 13, 2007 11:09 pm; edited 2 times in total |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Tue Nov 13, 2007 10:17 pm Post subject: |
|
|
holy code tags batman!
your post is too long - I edited some comments to make it a touch shorter so I could put in a closing code tag. The end is getting cut off anyway.
I suggest you host it on Autohotkey.net instead. _________________
(Common Answers)
Last edited by engunneer on Tue Nov 13, 2007 10:19 pm; edited 1 time in total |
|
| Back to top |
|
 |
fade2gray
Joined: 21 Oct 2006 Posts: 23
|
Posted: Tue Nov 13, 2007 10:19 pm Post subject: |
|
|
I am enclosing in tags - the code appears to be too long and something is breaking.
Just realised the above post was automated.  |
|
| Back to top |
|
 |
XYZ
Joined: 20 Mar 2010 Posts: 224
|
Posted: Sat Mar 20, 2010 10:29 am Post subject: good |
|
|
very good
how do you get the color pixel graph? |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Mar 20, 2010 2:28 pm Post subject: Re: good |
|
|
| Umar wrote: | | how do you get the color pixel graph? |
If you meant "Color Picker grid", it's found on the 'Mouse' tab as depicted in the first post of this thread. |
|
| Back to top |
|
 |
CyberGeek
Joined: 18 Apr 2010 Posts: 159
|
Posted: Sat May 01, 2010 7:33 am Post subject: |
|
|
I love the color grid feature
what is the gui control for creating a graph or grid? |
|
| Back to top |
|
 |
Yogui
Joined: 14 Jun 2008 Posts: 56 Location: Sydney, Australia
|
Posted: Sat May 29, 2010 5:10 am Post subject: ahk_pname still not in use |
|
|
Hi!,
Seems like "ahk_pname" has not been implemented yet.
I think it would be a great feature.
Some Windows and Groups are hard to set/get without checking the process name since the Windows are all the same class and no titles.
Is there a work around?
I've post this request in the Wish List:
http://www.autohotkey.com/forum/viewtopic.php?p=358801#358801 _________________ Thanks, Yogui.
_____________________________ |
|
| Back to top |
|
 |
Grazzhoppa Guest
|
Posted: Tue Jan 11, 2011 5:01 am Post subject: cursor state |
|
|
| On the mouse tab there is info for cursor state. Like arrow, wait, etc. How can I check the cursor state in a script? Or how is this info intended to be used? |
|
| Back to top |
|
 |
|