Jump to content

Recommended Posts

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
Posted

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.

Posted

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?)

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
  • Recently Browsing   0 members

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