Hi all, as most of you guys know I am working on an inhouse application for functional testing the iPhones iPods and iPads. For iPhones, I would like to disable these buttons, so I can trigger an counter on the button press. (I want to press the buttons 5 times, and then make an boolean that the button is correct) Is it possible to disable these buttons on a certain View, so that when I come to the point of button test, that the app does not go into background, and screen gets locked?? I know it's possible, I have seen this before, but I have no idea how. For now I'm checking the applicationDidEnterBackground in appDelegate and comparing the brightness for determining if the home button or lock button is pressed. Is this possible with some private headers and does anyone knows how ?