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 

AHK Window Info 1.7
Goto page Previous  1, 2, 3, 4, 5  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
azure



Joined: 07 Jun 2007
Posts: 691

PostPosted: Thu Jul 12, 2007 1:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Thu Jul 12, 2007 3:02 pm    Post subject: Reply with quote

RFM. You can use the Window ID, HWND, Control names, texts/content of controls, colors, styles, Ex-styles, positions…
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3910
Location: Bremen, Germany

PostPosted: Thu Jul 12, 2007 4:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
fade2gray



Joined: 21 Oct 2006
Posts: 23

PostPosted: Mon Nov 05, 2007 2:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3910
Location: Bremen, Germany

PostPosted: Mon Nov 05, 2007 8:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
fade2gray



Joined: 21 Oct 2006
Posts: 23

PostPosted: Mon Nov 05, 2007 9:48 pm    Post subject: Reply with quote

Excellent solution, thank you.

Quote:
;changes since 1.6

Is there a 1.6 version or should that read 1.5?
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3910
Location: Bremen, Germany

PostPosted: Tue Nov 06, 2007 5:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
fade2gray



Joined: 21 Oct 2006
Posts: 23

PostPosted: Tue Nov 13, 2007 10:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Tue Nov 13, 2007 10:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
fade2gray



Joined: 21 Oct 2006
Posts: 23

PostPosted: Tue Nov 13, 2007 10:19 pm    Post subject: Reply with quote

I am enclosing in
Code:
tags - the code appears to be too long and something is breaking.

Just realised the above post was automated. Embarassed
Back to top
View user's profile Send private message
XYZ



Joined: 20 Mar 2010
Posts: 224

PostPosted: Sat Mar 20, 2010 10:29 am    Post subject: good Reply with quote

very good

how do you get the color pixel graph?
Back to top
View user's profile Send private message
Guest






PostPosted: Sat Mar 20, 2010 2:28 pm    Post subject: Re: good Reply with quote

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

PostPosted: Sat May 01, 2010 7:33 am    Post subject: Reply with quote

I love the color grid feature

what is the gui control for creating a graph or grid?
Back to top
View user's profile Send private message
Yogui



Joined: 14 Jun 2008
Posts: 56
Location: Sydney, Australia

PostPosted: Sat May 29, 2010 5:10 am    Post subject: ahk_pname still not in use Reply with quote

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
View user's profile Send private message
Grazzhoppa
Guest





PostPosted: Tue Jan 11, 2011 5:01 am    Post subject: cursor state Reply with quote

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
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 4 of 5

 
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