Jump to content
Sign in to follow this  
trueicecold

MouseClick Not working with Flash?

Recommended Posts

trueicecold

Hello all, I'm kinda new in AutoIt, and I've tried to make the simplest script ever:

#include <GuiConstantsEx.au3>

GuiCreate("Sample GUI", 400, 400)
HotKeySet("{F7}","Strt")
HotKeySet("{F8}","Stp")

$end = 1000

Func Strt()
    For $i = 0 To  $end
        MouseClick("left")
        Sleep(500)
    Next
EndFunc

Func Stp()
    $end = 0
EndFunc

; GUI MESSAGE LOOP
GuiSetState()
While GuiGetMsg() <> $GUI_EVENT_CLOSE 
WEnd

When I try this on Notepad, I can see the space character sent great. However, in a Flash app, the Space is not sent every 500ms, but in random times, I guess he misses some clicks...

Can anyone tell me why?

Thanks :)

Edited by trueicecold

Share this post


Link to post
Share on other sites
evilertoaster

I can see the space character sent great

All it does is a bunch of mouse clicks...where are you getting the spaces from?

Flash apps can sometimes miss user input, there's not much you can do about that unless you are the author of the flash app in question.

Share this post


Link to post
Share on other sites
trueicecold

All it does is a bunch of mouse clicks...where are you getting the spaces from?

Flash apps can sometimes miss user input, there's not much you can do about that unless you are the author of the flash app in question.

yeah I replaces the send with a mouse clicks. so how do people create those bots in flash ? (Like bowling in Facebook?)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.