Here are the two pieces of information that seem to be the most important (to me):
ben75 wrote:
i press mbutton but ONLY in the game i mean if i'm on windows it's working..
..if i'm using delay then i got another problem , my mouse bug and doesn't move fluently
That tells me that your game may be having a problem processing keystrokes that
SetKeyDelay is now making the game recognize (when before it just skipped them without buffering).
You could try adjusting the
priority of the game's process, other than that I don't know.