c.load'CoreFoundation'
c.load'ApplicationServices.HIServices'
c.AXUIElementCopyAttributeValue(sw,c.kAXFocusedUIElementAttribute,elm)
> bad argument #2 to 'func' (cannot convert 'string' to 'struct __CFString *')
I tried mucking around with c.addfunction('AXUIElementCopyAttributeValue',{'^{__AXUIElement=}','@','^^v'},false) but then the call appears to do nothing...
How to use APIs that require CFStrings? e.g.
I tried mucking around with
c.addfunction('AXUIElementCopyAttributeValue',{'^{__AXUIElement=}','@','^^v'},false)
but then the call appears to do nothing...