AutoHotkey Community

It is currently May 25th, 2012, 9:07 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 72 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject:
PostPosted: July 12th, 2007, 2:31 pm 
Online

Joined: June 7th, 2007, 1:33 pm
Posts: 1019
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 12th, 2007, 4:02 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
RFM. You can use the Window ID, HWND, Control names, texts/content of controls, colors, styles, Ex-styles, positions…


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 12th, 2007, 5:26 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 5th, 2007, 3:16 pm 
Offline

Joined: October 21st, 2006, 5:13 pm
Posts: 23
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.

Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 5th, 2007, 9:26 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 5th, 2007, 10:48 pm 
Offline

Joined: October 21st, 2006, 5:13 pm
Posts: 23
Excellent solution, thank you.

Quote:
;changes since 1.6

Is there a 1.6 version or should that read 1.5?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 6th, 2007, 6:58 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2007, 11:10 pm 
Offline

Joined: October 21st, 2006, 5:13 pm
Posts: 23
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 November 14th, 2007, 12:09 am, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2007, 11:17 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
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.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Last edited by engunneer on November 13th, 2007, 11:19 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2007, 11:19 pm 
Offline

Joined: October 21st, 2006, 5:13 pm
Posts: 23
I am enclosing in [code][/code] tags - the code appears to be too long and something is breaking.

Just realised the above post was automated. :oops:


Report this post
Top
 Profile  
Reply with quote  
 Post subject: good
PostPosted: March 20th, 2010, 11:29 am 
Offline

Joined: March 20th, 2010, 9:49 am
Posts: 224
very good

how do you get the color pixel graph?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: good
PostPosted: March 20th, 2010, 3:28 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 1st, 2010, 8:33 am 
Offline

Joined: April 18th, 2010, 11:33 am
Posts: 159
I love the color grid feature

what is the gui control for creating a graph or grid?


Report this post
Top
 Profile  
Reply with quote  
PostPosted: May 29th, 2010, 6:10 am 
Offline

Joined: June 14th, 2008, 7:47 pm
Posts: 56
Location: Sydney, Australia
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.
_____________________________


Report this post
Top
 Profile  
Reply with quote  
 Post subject: cursor state
PostPosted: January 11th, 2011, 6:01 am 
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?


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 72 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: lblb, RoAltmann and 9 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group