Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
can i generate mouse events through code.
Old 01-24-2007, 03:22 AM can i generate mouse events through code.
Average Talker

Posts: 28
Name: dinesh s
Trades: 0
hi,
can i generate mouse button click evets through coding.


plz help me ....
dinesh s is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-24-2007, 11:56 PM Re: can i generate mouse events through code.
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
That depends how the system you're working on is set up. Do you actually need to make the mouse click something through code, or just run the code that handles the click event? Assuming it's the latter, on the same page, you can pas null ( or nothing in VB ) to the method that handles the click event, like this:

Code:
   ...
   button1_Click(null, null);
   ...

   protected void button1_Click(object sender, EventArgs e) {
      if(sender != null)
         ...
   }

If you're trying to simulate a click to something besides your page, that gets harder ... and we need to know what to be able to offer any good advice.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 01-25-2007, 02:26 AM Re: can i generate mouse events through code.
Average Talker

Posts: 28
Name: dinesh s
Trades: 0
hi forrestcroc
the menu which appears when we click the right mouse button should automatically apears when the page is loading or when someother event occurs(eg. when we click the middle mouse button).
This is what i want.

Last edited by dinesh s; 01-25-2007 at 06:33 AM..
dinesh s is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to can i generate mouse events through code.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11150 seconds with 12 queries