Jump to content

AutoIt not working with game


Recommended Posts

So I'm only just learning to use AutoIt but have a small script I am trying to run.

This is the entire script:

Sleep(4000)
MouseClick("left",816,688,2)
sleep(1000)
MouseClick("left",816,200,2)

Now, I want to use this in a game I am playing (I plan to make the script much larger and loop etc). However..

If I run the script and leave it to run by itself... it moves my mouse to 816,688... then to 816,200 and all is OK!

But, if I run the script, and quickly (well within the sleep4000 time frame) switch over to the game window.. the mouse does not move nor click... the script stays open in the system-tray for the full length.. then closes... but NOTHING has happened.

Please help asap.. I am itching to start developing my scripts.

Thanks,'

Bob.

Link to comment
Share on other sites

Sorry but we don`t discuss anything related to games in this forum... read the forum rules, and i hope that if you have a non-game-related issues come back here.

@monoscout999

It's not exact.

If you have create an AutoIt game you can talk about it, but it's no longer allowed to talk about any game automation. :mellow:

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...