Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Accessible object, mouse trigger
#1
Hi,
Using the following code, can identify the contents of the accessible object
Code:
Copy      Help
int w=win("SAPIEN PowerShell Studio 2022" "")
Acc a.Find(w "CLIENT" "" "class=*.Window.*[]wfName=textScript" 0x1004)
str name=a.Name
out name
I have to use the prop parameter("class=*.Window.*[]wfName=textScript") for it to work
byte  Find(`hwnd $role [$name] [$prop] [flags] [^waits] [matchIndex] [$navig] [*cbFunc] [cbParam])

But in the acctest function, there is no prop argument, so the following filter function does not work
Is there any other way to solve this problem?

Thank you in advance for any advice and help
david

Function FFC_PS_Editor
 
Code:
Copy      Help
;/
function# iid FILTER&f

if(!wintest(f.hwnd "SAPIEN PowerShell Studio 2022" "")) ret
Acc a=acc(mouse)
if(a.a and acctest(a "" "CLIENT" 0 "*.Window.*" "" 4)) ret iid
ret -2

Menu Left_dou
Trigger ##L //FFC_PS_Editor     Help - how to add the trigger to the macro
Code:
Copy      Help
test :mes "hello" * findacc.ico


Messages In This Thread
Accessible object, mouse trigger - by Davider - 12-24-2022, 10:58 PM
RE: Accessible object, mouse trigger - by Davider - 12-25-2022, 08:02 AM
RE: Accessible object, mouse trigger - by Davider - 12-25-2022, 09:35 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)