Hi!

    Children are like tree branches and children's children are like leaves 
on a branch. And yes, there like branches of the tree trunk...all connected 
to the main at a level higher or lower depending on which direction you are 
going in.

    This is a good starter in terms of watching events and such.
    Also, the script you write must activate the ability to log in the 
window you are looking at the time of the hotkey trigger.

    So use the script maker and set the hotkey and the need to set up the 
initial trigger even, calling the first sub; Sub Activate_Read()

        Bruce

Dim myMSAAEvents: Set myMSAAEvents = Nothing
Dim myMSAAConnection: myMSAAConnection = 0
Dim oActiveWindow: set oActiveWindow = Nothing
Dim oActiveChildren: Set oActiveChildren = Nothing

Sub Activate_Read()
 ' assumes a ribbon style program is the active application.
 Set myMSAAEvents = msaaEventSource
 set oActiveWindow = activeWindow.overlap
' dim oTest
' Set oTest = ActiveWindow.Children
 Set oActiveChildren = oActiveWindow.children
' Filter MSAA events for only this process
 myMSAAEvents.Process = oActiveWindow.Process
 On Error GoTo 0
' handle all MSAA event types
 myMSAAConnection = ConnectObject( myMSAAEvents, "myMSAA_")
End Sub

'Note: That the event ended with an underline so any proc having that same 
prelim will be called.
Sub myMSAA_OnSystemMenuStart( oSelected)
 ' MSAA event handler For A Menu Selection.
 If oSelected Is Nothing Then Exit Sub
 Dim accObj
 Set accObj = oSelected
 If accObj.role Is Nothing Then
'  speak " No Role "
  Set accObj = Nothing
  Exit Sub
 End If
 Dim oWindow
 Set oWindow = accObj.EventWindow
 If Not oWindow Is Nothing Then
  Speak " Window Name Selected: " & oWindow.Name
  If InStr( oWindow.Name, "Background Play List") > 0 Then Set myPlayReturn 
= Nothing
End If
 Set accObj = Nothing
 Set oWindow = Nothing
End sub


Sent: Friday, August 14, 2015 10:02 PM
Subject: introduction


Hello, my name is Scott and I'm currently reading the app developer
reference, or trying to understand it.
I'm confused in some things such as
child children and those items.
Right now I'm trying to work with the example code in the reference to
do with the systray.
I keep getting errors, but I think it is because i'm not understanding
what i'm reading.
Would it help to download an actual app and load the .vbs file into
notepad rather than using the examples on the site because I think i
might be trying to be over analyzing it to much.
I'm getting lost what to type, actual words that appear in the
reference, or would i need to actually substitue what those values might
be, like instead of for example\
object.name
write into notepad like this
firefox.whatever?
Sorry, i'm lost because I do not read things like this in manuals to well.
I'm more used to the user side of things.  smile.

Scott
_______________________________________________
Any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of Ai Squared.

For membership options, visit 
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/lab4me%40fltg.net.
For subscription options, visit 
http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
List archives can be found at 
http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com 


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
Any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of Ai Squared.

For membership options, visit 
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com.
For subscription options, visit 
http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
List archives can be found at 
http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com

Reply via email to