AutoHotkey Community

It is currently May 27th, 2012, 10:31 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 35 posts ]  Go to page Previous  1, 2, 3
Author Message
PostPosted: July 28th, 2010, 2:04 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
Sean's first post in this thread wrote:
I uploaded a preliminary/test version of Accessibility Standard Library.
It requires another standard library COM.ahk.
your first clue to the answer is Standard Library
a quick look in the documentation for anything that says Standard library shows
Libraries of Functions: Standard Library and User Library

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Error
PostPosted: November 15th, 2010, 2:10 am 
Call to nonexistent function

line 124 in Acc.ahk
I use ahk_l, com_l

any clue why this does not work?

i try to detect firefox loaded:

Code:
UR=http://www.t-online.de
IE=%A_programfiles%\Mozilla Firefox\firefox.exe

Run,%IE% %UR%,,max

ACC_Init()
FF_StatusBarText()
ACC_Term()

FF_StatusBarText()
{
   DetectHiddenWindows, On
   If Not   hWnd := WinExist("ahk_class MozillaUIWindowClass")
   Return
   If Not   pacc := Acc_AccessibleObjectFromWindow(hWnd)
   Return
   sRole:=acc_GetRoleText(0x17)
   Loop, % acc_ChildCount(pacc)
        If   paccChild:=acc_Child(pacc,A_Index)
        If   acc_Role(paccChild)<>sRole
             COM_Release(paccChild), paccChild:=0
        Else Break
   COM_Release(pacc)
   If Not   pacc := paccChild
   Return
   If   paccChild:=acc_Child(pacc, 1)
   {
   Loop
        If   acc_Name(paccChild)<>"Fertig"   ; Change the text as appropriate!
             Sleep, 100
          msgbox hurrrayyy
        Else Break
   COM_Release(paccChild)
   }
   COM_Release(pacc)
}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2010, 2:52 am 
Offline
User avatar

Joined: May 24th, 2009, 5:35 am
Posts: 2099
Location: Iowa, USA
You'd prolly have to let us know what function doesn't exist. My guess is you have a simple syntax error somewhere. Try this (requires AHK_L & COM_L):
Code:
FF_StatusBarText() {
   if hWnd := WinExist("ahk_class MozillaUIWindowClass")
      if FF := COM_AccessibleObjectFromWindow(hwnd) ; access Firefox window
         return, FF.accChild(FF.accChildCount).accChild(1).accName(0) ; return Status Bar text
}

_________________
Image
Recommended: AutoHotkey_L
Basic Webpage Controls


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2010, 5:09 am 
Code:
   Return   COM_Ansi4Unicode(pName) . SubStr(COM_SysFreeString(pName),1,0)

This is line 124 of the ACC.AHK
I downloaded 'nd saved it as utf8, the error is not in my script i guess unless i forgot something.

Your code did not help to return the statusbar-text from firefox. Are you 100% sure that this should work?

i assume since it is a simple function without inputvariables, that i call that right after loading the page, right?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2010, 5:14 am 
Your function return this error

COM ERROR NOTIFICATION

Function Name: "accChild"
Error: Unspecified Error (0x80004005)
Error2: Member not found (0x80020003)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 13 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