3

Im writing an app running in background on a jailbreak iphone. I need to send touch event to iPhone OS to simulate finger touches. Is this possible?

xiaoma
  • 31
  • 1
  • 1
  • 2

2 Answers2

2

See Matt Gallagher's article "Synthesizing a touch event on the iPhone". You may also check out the Three20 framework, which I believe used synthesized touch events to test UI elements (leading to a rash of recent application rejections due to the use of private APIs).

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
  • thanks, Brad. In Matt Gallagher's article, synthesized touch event only works to views. I'm still looking for some way to simulate system level touch event. – xiaoma Nov 17 '09 at 05:18
  • @xiaoma imagine you could send system-wide events like that without user interaction - wouldnt that introduce a huge risk of ppl using it to do things that the user does not want (e.g. call a dubious hotline while he is asleep) – Till Nov 17 '09 at 07:16
  • hi, Brad. What i want to do is something like Veency except that it can accept multitouch input. Imagine that i can control iphone using my macbook multitouch trackpad. – xiaoma Nov 17 '09 at 08:03
  • 2
    Some of Matt Gallagher's excellent article is no longer functional. I've updated it, and included some other functionality, in a category on UITapGestureRecognizer. Some of the techniques may be helpful. It's on the answer here: http://stackoverflow.com/a/16471965/1532399 – tooluser May 09 '13 at 22:14
0

Yes it is possible, using GSEvents. Try the KennyTM's private framework and GSEvent.h. It is under the GraphicServices framework. https://github.com/kennytm/iphone-private-frameworks

Jorge Aguirre
  • 2,787
  • 3
  • 20
  • 27