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 

Control Scrollbar

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
RayMunchies
Guest





PostPosted: Thu Nov 19, 2009 3:47 pm    Post subject: Control Scrollbar Reply with quote

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
Back to top
RayMunchies
Guest





PostPosted: Thu Nov 19, 2009 3:52 pm    Post subject: Addon Reply with quote

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
Back to top
ribbs2521



Joined: 28 Sep 2007
Posts: 225
Location: New York

PostPosted: Thu Nov 19, 2009 3:52 pm    Post subject: Reply with quote

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



Joined: 30 Aug 2005
Posts: 7698
Location: Germany (but I only speak English)

PostPosted: Thu Nov 19, 2009 3:57 pm    Post subject: Reply with quote

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]
_________________
Unless noted, all code is UNTESTED.
Answers Here: 1.(Loops, Viruses, etc.) 2.Search 3.RTFM 4.Ask for Help.
PMs will be ignored unless you are hiring me.
Back to top
View user's profile Send private message Visit poster's website
RayMunchies
Guest





PostPosted: Thu Nov 19, 2009 4:21 pm    Post subject: Reply with quote

It looks really heavy to me... so there is no easy way for that?
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 7698
Location: Germany (but I only speak English)

PostPosted: Thu Nov 19, 2009 4:22 pm    Post subject: Reply with quote

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.
_________________
Unless noted, all code is UNTESTED.
Answers Here: 1.(Loops, Viruses, etc.) 2.Search 3.RTFM 4.Ask for Help.
PMs will be ignored unless you are hiring me.
Back to top
View user's profile Send private message Visit poster's website
RayMunchies
Guest





PostPosted: Thu Nov 19, 2009 4:24 pm    Post subject: Error Reply with quote

--> 062: COM_CoInitialize
Back to top
RayMunchies
Guest





PostPosted: Thu Nov 19, 2009 4:27 pm    Post subject: Reply with quote

And I already loaded the COM.ahk ...
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 7698
Location: Germany (but I only speak English)

PostPosted: Fri Nov 20, 2009 8:59 am    Post subject: Reply with quote

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?
_________________
Unless noted, all code is UNTESTED.
Answers Here: 1.(Loops, Viruses, etc.) 2.Search 3.RTFM 4.Ask for Help.
PMs will be ignored unless you are hiring me.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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