| View previous topic :: View next topic |
| Author |
Message |
RayMunchies Guest
|
Posted: Thu Nov 19, 2009 3:47 pm Post subject: Control Scrollbar |
|
|
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
|
Posted: Thu Nov 19, 2009 3:52 pm Post subject: Addon |
|
|
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
|
Posted: Thu Nov 19, 2009 3:52 pm Post subject: |
|
|
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 |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 7698 Location: Germany (but I only speak English)
|
Posted: Thu Nov 19, 2009 3:57 pm Post subject: |
|
|
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 |
|
 |
RayMunchies Guest
|
Posted: Thu Nov 19, 2009 4:21 pm Post subject: |
|
|
| 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)
|
Posted: Thu Nov 19, 2009 4:22 pm Post subject: |
|
|
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 |
|
 |
RayMunchies Guest
|
Posted: Thu Nov 19, 2009 4:24 pm Post subject: Error |
|
|
| --> 062: COM_CoInitialize |
|
| Back to top |
|
 |
RayMunchies Guest
|
Posted: Thu Nov 19, 2009 4:27 pm Post subject: |
|
|
| And I already loaded the COM.ahk ... |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 7698 Location: Germany (but I only speak English)
|
Posted: Fri Nov 20, 2009 8:59 am Post subject: |
|
|
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 |
|
 |
|