AutoHotkey Community

It is currently May 27th, 2012, 1:21 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Control Scrollbar
PostPosted: November 19th, 2009, 4:47 pm 
Hey guxs I need some help !
I work with a programm and I have to search in a Video for several frames and mark them. But there is no "Search bar" in the Programm, so I have to scroll manually. The frames are written down at the video as visible text. It´s annoying.
I found out with Window Spy, that the ClassNN: Scrollbar2 can be controled somehow - but I´m to confused with all this stuff. Can you help me somehow please?
What I need would be a window opened by a shortcut #a:: (or simelar). Here I can write down the Frame and the scrollbar will jump to that frame.. Is this possible? Would be gratefull for every hint.

Cheers
Ray


Report this post
Top
  
Reply with quote  
 Post subject: Addon
PostPosted: November 19th, 2009, 4:52 pm 
Window Spy Text:
>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Simi Motion ***
ahk_class Afx:00400000:8:00010011:00000000:01160447

>>>>>>>>>>>>( Mouse Position )<<<<<<<<<<<<<
On Screen: 1376, 133 (less often used)
In Active Window: 1380, 137

>>>>>>>>>( Now Under Mouse Cursor )<<<<<<<<
ClassNN: ScrollBar2
Text:
Color: 0xFFE7D6 (Blue=FF Green=E7 Red=D6)

>>>>>>>>>>( Active Window Position )<<<<<<<<<<
left: -4 top: -4 width: 1688 height: 1020

>>>>>>>>>>>( Status Bar Text )<<<<<<<<<<
(1):
(2):
(3): 0,05 s

>>>>>>>>>>>( Visible Window Text )<<<<<<<<<<<
2D-Erfassung
Frame 174, 0.348 s : Ratte 01-1 Lateral 0509 L3


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 4:52 pm 
Offline

Joined: September 28th, 2007, 3:56 am
Posts: 279
Location: New York
I have not tested it but I believe that a ControlClick using the ClassNN and window details would work.

EDIT: I take that back because it appears the scroll bar is all one ClassNN and actually clicking the up and down buttons wouldn't work like that.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 4:57 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
Commands starting with the word Control are typically used with items like that, but I don't see a way to set the scrollbar position directly.

To ask for input, use InputBox.

you may need to reference some other topics:
[linksoup]
http://www.autohotkey.com/forum/viewtopic.php?t=5903
http://www.autohotkey.com/forum/viewtopic.php?t=24264 (specifically you would need to see how this code works:
Code:
SetAbstractScrollPos(Scroll_Container, Scroll_Type, Round(Scroll_Pos))

[/linksoup]

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 5:21 pm 
It looks really heavy to me... so there is no easy way for that?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 5:22 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
scrollbars are not so easy. Try that momentum script on your system to see if it can get to this particular scrollbar, and then you will know if it's worth the effort.

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Error
PostPosted: November 19th, 2009, 5:24 pm 
--> 062: COM_CoInitialize


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2009, 5:27 pm 
And I already loaded the COM.ahk ...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2009, 9:59 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
if that script was written with an older version of the COM. Perhaps see what functions are in COM-ahk and see id COM_Initialize is there instead?

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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], iDrug, Ohnitiel and 23 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