Hey guys,
I've created a little clickbot for me which does nothing but doing left mouseclicks 2 times a second. Outside of Cabal it works perfectly but as I try to use it in Cabal nothing happens. Can anyone help please?
(It's written in AutoIt)
I've created a little clickbot for me which does nothing but doing left mouseclicks 2 times a second. Outside of Cabal it works perfectly but as I try to use it in Cabal nothing happens. Can anyone help please?
(It's written in AutoIt)
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Klickbot = GUICreate("Klickbot", 227, 79, 439, 240)
GUISetCursor (0)
GUISetBkColor(0xF0F0F0)
$Button1 = GUICtrlCreateButton("Bot starten", 40, 24, 145, 41)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
While 1
MOUSECLICK("Left")
SLEEP(500)
WEnd
EndSwitch
WEnd