How can I simulate the home button press event in iOS 7? I tried, but it only worked at the home screen but not inside the other apps.The problem is mainly about the port
, it looks like that if I got the task port
of SpringBoard
, it works, otherwise not.But how can I get the task port
of SpringBoard
no matter at the home screen or inside others apps?Thank you!
How to simulate home button press event in iOS 7(Jailbroken)?
Asked Answered
Might look here! #20998818 –
Chambers
[[%c(SBUIController) sharedInstance]clickedMenuButton]; //One tap
[[SBUIController sharedInstance] handleMenuDoubleTap]; //Double tap
[[%c(SBUserAgent) sharedUserAgent] lockAndDimDevice] //Lock button
thank you, but can I simulate home button down and up events separately, and how can I simulate volume button click events? –
Leninism
@Leninism Not that I know of and That's a different question from the initial post. Ask it separately. –
Finecut
Thank you, may be I can use
IOHIDEventSystem
to achieve this, but can you take a look at this #22244157, I'll very appreciate it. –
Leninism Kindly check these below links:
1) http://iphonedevwiki.net/index.php/SBApplication
2) Simulate all physical buttons like the pressure on the home button on iOS 7 (Jailbreak)
Hopefully these links help you in resloving your problem. Cheers :)
Your second link is nothing more than what the first answer posted here describes. Please, don't post redundant information. Thanks. –
Attica
@Attica yes your right, I just add link of that post that it may help Suge to figure out his problem by reading the complete post and discussion there. Thanks –
Lucindalucine
© 2022 - 2024 — McMap. All rights reserved.