Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 10,074 of 10,840    |
|    Totoche to All    |
|    Re: Send mouse clic    |
|    27 May 06 19:20:52    |
   
   From: nivu@niconnu.com   
      
   Many thanks for your fast answer.   
   But... i can't do it working...( excuse me i am french and new programmer)   
   Could you be more explicit ??   
   What i did:   
      
   Sub Activatetest()   
    returnvalue = Shell(App.Path + "\test.exe", 1)   
    AppActivate returnvalue   
    SendKeys "{RIGHT}", True   
    SendKeys "{RIGHT}", True   
    test = Form_MouseDown (1,0,10,10)   
   End Sub   
      
   Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single,   
   Y As Single)   
    If Button = 1 Then MsgBox "left"   
    If Button = 2 Then MsgBox "right"   
   End Sub   
      
   The sendkeys are executed, but the mouse clic do not work (error at   
   execution time).   
   Many thanks for your help   
      
      
   "StoneWare"
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca