Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
acctest
#1
I'm trying to use this line but it keeps blowing up on me. What format should I use it in?

Code:
Copy      Help
    if acctest("Deny" "PUSHBUTTON" "Confirm setting cookie" "#32770" "" "")=1
#2
acctest gets Acc variable as first argument, and returns 1 if all specified properties match.

Example:

Code:
Copy      Help
Acc a=acc(mouse)

if acctest(a "Run    Ctrl+R" "SPLITBUTTON" "Quick Macros -" "ToolbarWindow32" "" 0x1001)
,out "The mouse pointer is over the Run button on the QM main toolbar"
#3
I am a little surprised about your class "#32770". I would expect normally a "button" etc. Did you maybe mix up the class and the window ID?
#4
Yes, if you want to include window class too, use win:

if acctest(a "Deny" "PUSHBUTTON" win("Confirm setting cookie" "#32770") "Button")
#5
i used the Find Accesable Object dialogue to get the button info from the "Confirm setting cookie" dialogue in Netscape, that way I don't have to guess at what the setting are.
#6
Some programs (eg Mozilla Firefox) improperly implement accessible objects. When QM tries to get child window that contains an accessible object, they give main window handle instead. In this case, when you click Test in the Find Accessible Object dialog, it says Object Not Found. Solution - delete the class name.


Forum Jump:


Users browsing this thread: 1 Guest(s)