for(int i = 0;i<4;i++)
    {
        CGEventSetIntegerValueField(theEvent,kCGMouseEventClickState,2);

        CGEventSetType(theEvent, kCGEventLeftMouseDown);

        CGEventPost(kCGHIDEventTap, theEvent);

        CGEventSetType(theEvent, kCGEventLeftMouseUp);

        CGEventPost(kCGHIDEventTap, theEvent);
    }

酷行僧
13 声望0 粉丝