Sign in to follow this  
Followers 0
Boblinski

AutoIt not working with game

7 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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.

Edited by monoscout999

Share this post


Link to post
Share on other sites

Oh, man. Real sorry. Just have no idea what to do and it sucks.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Do I have to beg? I just need a few ideas/opinions on what might be happening and what I should look into doing for a fix. Please please please

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

@Boblinski - If your persistence continues I will be forced to remove you.

Edited by big_daddy

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0