New topic: 

Simulate mouse event within application only

<http://forums.realsoftware.com/viewtopic.php?t=46468>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        seasonw          Post subject: Simulate mouse event within 
application onlyPosted: Mon Jan 07, 2013 5:11 am                         
Joined: Mon Jan 07, 2013 5:05 am
Posts: 2                Hi, I managed to simulate mouse event by using windows 
api of ClientToScreen and mouse_event. But it is applied to desktop, which 
means it can simulate a mouse click inside and outside my application. 

But I need to simulate mouse event in my application only, and it will also 
work even with my application being minimized. Anyone knows which windows api 
should I look into?

Thanks in advanced.   
                             Top                DaveS          Post subject: 
Re: Simulate mouse event within application onlyPosted: Mon Jan 07, 2013 9:35 
am                                 
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4388
Location: San Diego, CA                Why be so complicated?

In you normal Mouse Event call a Function xyz

FUNCTION MOUSEDOWN(x as integer,y as integer) as boolean
  return XYZ(x,y)
END FUNCTION


Then just call XYZ from whereever you want to "simulate" that the user clicked 
the mouse
Same thing can be done for KEYDOWN etc.      
_________________
Dave Sisemore
MacPro, OSX Lion 10.7.4 RB2012r1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                seasonw          Post subject: 
Re: Simulate mouse event within application onlyPosted: Mon Jan 07, 2013 10:11 
am                         
Joined: Mon Jan 07, 2013 5:05 am
Posts: 2                I wanted to do so because I want to simulate click on 
HTMLViewer in my application. I want the mouse click even when the application 
is minimized. Any clue?   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to