Parev Vahan , Its a problem coz i did set the timer interval to 1000 and I did align the form on the bottom part of my screen , so the form Onkey*.* r not allways fired.
Well not easy to explain in fact , I also tried to set the active control to the button2 ( the one who disable the timer ) with no luck. ----- Original Message ----- From: Vahan Yoghoudjian To: [email protected] Sent: Friday, May 06, 2005 8:58 AM Subject: RE: [delphi-en] Timer and mouse-event I didn't understand why the form being small is a problem? Vahan Yoghoudjian (Parev!) ;) -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of mardirossian patrick Sent: Friday, May 06, 2005 9:15 AM To: [email protected] Subject: [delphi-en] Timer and mouse-event Hi , I am using a Timer and mouse-event in a program , i made my form allways on top , in fact im trying to play a game with this program , now the question is how to close my program ? I tried to test the right click to stop the program , the problem is that my form is a small one and the timer interval is set to 1000. Here is a part of my code : procedure TForm1.Timer1Timer(Sender: TObject); begin SetCursorpos(20,20) mouse_event( MOUSEEVENTF_LEFTDOWN.... SetCursorpos(40,20) mouse_event( MOUSEEVENTF_LEFTDOWN.... .... .... end; [Non-text portions of this message have been removed] ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] ---------------------------------------------------------------------------- ---- Yahoo! Groups Links a.. To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed] ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links [Non-text portions of this message have been removed] ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

