Sign in to follow this  
Followers 0
trueicecold

MouseClick Not working with Flash?

3 posts in this topic

#1 ·  Posted (edited)

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



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

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  
Followers 0