 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
azure
Joined: 07 Jun 2007 Posts: 296
|
Posted: Thu Jul 12, 2007 2: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: 4001 Location: Pittsburgh
|
Posted: Thu Jul 12, 2007 4: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: 3842 Location: Bremen, Germany
|
Posted: Thu Jul 12, 2007 5: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: 12
|
Posted: Mon Nov 05, 2007 3: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: 3842 Location: Bremen, Germany
|
Posted: Mon Nov 05, 2007 9: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: 12
|
Posted: Mon Nov 05, 2007 10: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: 3842 Location: Bremen, Germany
|
Posted: Tue Nov 06, 2007 6: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: 12
|
Posted: Tue Nov 13, 2007 11: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 Wed Nov 14, 2007 12:09 am; edited 2 times in total |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Tue Nov 13, 2007 11: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. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Last edited by engunneer on Tue Nov 13, 2007 11:19 pm; edited 1 time in total |
|
| Back to top |
|
 |
fade2gray
Joined: 21 Oct 2006 Posts: 12
|
Posted: Tue Nov 13, 2007 11: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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|