Need a code thats open the bot and use the mouse

07/12/2011 12:25 nfswor#1
Hello every body ..

I'm need a code , to be can open the bot and use the mouse .. like nfsw bot ( [Only registered and activated users can see links. Click Here To Register...] ) ..

And thats my bot

Code:
global $Paused
global $cnt = 1
global $z = 0
HotKeySet("{F9}", "Terminate")
HotKeySet("{F7}", "TogglePause")
$timeInput = InputBox("Timer Settings", "How many second delay?", "3")
$time = $timeInput*1000

    Sleep(3000)

MouseClick("",1271,387,1,0)

    Sleep(5000)



While 1
    MouseClick("",253,191,1,0)
    Sleep(1000)
    
    MouseClick("",536,346,1,0)
    Sleep(5000)
        MouseClick("",536,346,1,0)
    Sleep(5000)
        MouseClick("",536,346,1,0)
    Sleep(5000)
        MouseClick("",536,346,1,0)
    Sleep(5000)
        MouseClick("",536,346,1,0)
    Sleep(5000)
        MouseClick("",536,346,1,0)
    Sleep(5000)
        MouseClick("",536,346,1,0)
    Sleep(5000)
    
    MouseClick("",464,156,1,0)
    Sleep(1000)
    
    MouseClick("",358,117,1,0)
    Sleep(1000)
    
    
    MouseClick("",98,55,1,0)
    Sleep(5000)
        MouseClick("",98,55,1,0)
    Sleep(5000)
        MouseClick("",98,55,1,0)
    Sleep(5000)
        MouseClick("",98,55,1,0)
    Sleep(5000)
        MouseClick("",98,55,1,0)
    Sleep(5000)
        MouseClick("",98,55,1,0)
    Sleep(5000)
        MouseClick("",98,55,1,0)
    Sleep(5000)
        MouseClick("",98,55,1,0)
    Sleep(5000)
        MouseClick("",98,55,1,0)
    Sleep(5000)
        MouseClick("",98,55,1,0)
    Sleep(5000)
    
    
    MouseClick("",88,118,1,0)
    Sleep(1000)
    
    
    WEnd


Func TogglePause() ; the pause function
$Paused = NOT $Paused
While $Paused
ToolTip('Please press "F8" to resume!',600,200,"",1,2)
sleep(1000)
WEnd
ToolTip("")
EndFunc

Func Terminate() ; the exit function
Exit 0
EndFunc
the bot work , but cant use the mouse when i open the bot .

And thats from Autoit Info

Code:
>>>> Window <<<<
Title:	حياة قاتل مأجور - الجرائم - Mozilla Firefox
Class:	MozillaUIWindowClass
Position:	-8, -8
Size:	1296, 1010
Style:	0x15CF0000
ExStyle:	0x00000100
Handle:	0x00B60230

>>>> Control <<<<
Class:	MozillaWindowClass
Instance:	2
ClassnameNN:	MozillaWindowClass2
Name:	
Advanced (Class):	[CLASS:MozillaWindowClass; INSTANCE:2]
ID:	
Text:	
Position:	0, 109
Size:	1280, 841
ControlClick Coords:	447, 669
Style:	0x56000000
ExStyle:	0x00000000
Handle:	0x0037029C

>>>> Mouse <<<<
Position:	447, 800
Cursor ID:	0
Color:	0x000000

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<
IDM DwnlPanelCtrl Window
.... Thanks ..
07/12/2011 14:06 Reeek#2
ofc you can't use your mouse, you use 1000000x MouseMove >.<
07/12/2011 15:34 nfswor#3
yes but Ludder231 said for me :-

the code is controlsend() search in helpfile...

example: ControlClick("Windowname", "", "", "Left", 1, 401, 466)
ControlSend("Windowname", "", "", "Text to send")

but am try it , not work .. !
07/12/2011 16:50 Reeek#4
what u want to do with that code? Klickin' in background?
07/12/2011 17:47 nfswor#5
no i need a code to click , and can use the mouse ( i'm open firefox and the bot click and i can go to play any game or or or ) ,, ,>>
07/12/2011 20:47 Ludder231#6
yes, with controlsend you can use your mouse in other games and so
07/12/2011 21:16 nfswor#7
am try , and not work ..

can you edit ,, on my sicript .. and make it .
and when i was search , i'm found a coordmode whats about it ?
07/13/2011 14:10 Reeek#8
I don't think that's possible... the onliest way I could imagine is saving your current MousePos, clicking somewhere and remove the Mouse to the first pos... With c++ you could maybe do it, with Autoit - no chance, waaaay too slow interpreted
07/13/2011 15:40 nfswor#9
but jagu , made it with autoit in his nfswbot .