need help with auto buffer script working minimiz

07/24/2009 04:14 osama awed#1
hello .. this is my script .. it won't work .. imma noob at auto it scripts
i need it to select the members at the party by pressing (CTRL+Num) then press 7(mana Cycle) .. i don't know how to do that .. can you help me please ?!

Quote:
Global $Paused
$hWnd = WinGetHandle ("SRO_Client-Name")
HotKeySet ("{F9}","Start")
HotKeySet ("{F10}","Pause")

While 1
Sleep (50)
WEnd


Func Start()

While 1
ControlSend ($hWnd,"","Edit1","{LCTRL Down}{1 DOWN}{1 UP}{LCTRL UP}")
Sleep (450)
ControlSend ($hWnd,"","Edit1","{LCTRL UP}")
ControlSend ($hWnd,"","","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{LCTRL Down}{2 DOWN}{2 UP}{LCTRL UP}")
Sleep (450)
ControlSend ($hWnd,"","Edit1","{LCTRL UP}")
ControlSend ($hWnd,"","","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{LCTRL Down}{3 DOWN}{3 UP}{LCTRL UP}")
Sleep (450)
ControlSend ($hWnd,"","Edit1","{LCTRL UP}")
ControlSend ($hWnd,"","Edit1","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{LCTRL Down}{4 DOWN}{4 UP}{LCTRL UP}")
Sleep (450)
ControlSend ($hWnd,"","Edit1","{LCTRL UP}")
ControlSend ($hWnd,"","Edit1","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{LCTRL Down}{1 DOWN}{1 UP}{LCTRL UP}")
Sleep (450)
ControlSend ($hWnd,"","Edit1","{LCTRL UP}")
ControlSend ($hWnd,"","Edit1","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{LCTRL Down}{5 DOWN}{5 UP}{LCTRL UP}")
Sleep (450)
ControlSend ($hWnd,"","Edit1","{LCTRL UP}")
ControlSend ($hWnd,"","Edit1","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{LCTRL Down}{6 DOWN}{6 UP}{LCTRL UP}")
Sleep (450)
ControlSend ($hWnd,"","Edit1","{LCTRL UP}")
ControlSend ($hWnd,"","Edit1","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{LCTRL Down}{7 DOWN}{7 UP}{LCTRL UP}")
Sleep (450)
ControlSend ($hWnd,"","Edit1","{LCTRL UP}")
ControlSend ($hWnd,"","Edit1","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{LCTRL Down}{8 DOWN}{8 UP}{LCTRL UP}")
Sleep (450)
ControlSend ($hWnd,"","Edit1","{LCTRL UP}")
ControlSend ($hWnd,"","Edit1","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","9")
WEnd
EndFunc

Func Pause()
$Pause = NOT $Pause
While $Pause
Sleep (1)
WEnd
EndFunc
and this script work great, but not minimize :
Quote:
#include <GUIConstants.au3>


GUICreate ( "Presser Bot" ,200 , 200 )
GUISetState(False)

While 1

Send("{CTRLDOWN}{1}")
sleep(400)
Send("{CTRLUP}")
sleep(150)
Send("7")
Sleep( 3200)
Send("{CTRLDOWN}{2}")
sleep(400)
Send("{CTRLUP}")
sleep(150)
Send("7")
Sleep( 3200)
Send("{CTRLDOWN}{3}")
sleep(400)
Send("{CTRLUP}")
sleep(150)
Send("7")
Sleep( 3200)
Send("{CTRLDOWN}{4}")
sleep(400)
Send("{CTRLUP}")
sleep(150)
Send("7")
Sleep( 3200)
Send("{CTRLDOWN}{1}")
sleep(400)
Send("{CTRLUP}")
sleep(150)
Send("7")
Sleep( 3200)
Send("{CTRLDOWN}{5}")
sleep(400)
Send("{CTRLUP}")
sleep(150)
Send("7")
Sleep( 3200)
Send("{CTRLDOWN}{6}")
sleep(400)
Send("{CTRLUP}")
sleep(150)
Send("7")
Sleep( 3200)
Send("{CTRLDOWN}{7}")
sleep(400)
Send("{CTRLUP}")
sleep(150)
Send("7")
Sleep( 3200)
Send("{CTRLDOWN}{8}")
sleep(400)
Send("{CTRLUP}")
sleep(150)
Send("7")
sleep( 4000)
Send("9")
Sleep( 3200)

WEnd
07/24/2009 16:44 hambal#2
dude wrong section post it to silkroad hack and exploit
07/24/2009 17:03 theoneofgod#3
It is in the right section.

I remade your script, didn't test it, but it will work.

Code:
Global $Paused
$hWnd = WinGetHandle ("SRO_Client-Name")
HotKeySet ("{F9}","Start")
HotKeySet ("{F10}","Pause")

While 1
Sleep (1)
WEnd


Func Start()

While 1
ControlSend ($hWnd,"","Edit1","{CTRLDOWN} 1 {CTRLUP}")
Sleep (500)
ControlSend ($hWnd,"","","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{CTRLDOWN} 2 {CTRLUP}")
Sleep (500)
ControlSend ($hWnd,"","","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{CTRLDOWN} 3 {CTRLUP}")
Sleep (500)
ControlSend ($hWnd,"","","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{CTRLDOWN} 4 {CTRLUP}")
Sleep (500)
ControlSend ($hWnd,"","","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{CTRLDOWN} 5 {CTRLUP}")
Sleep (500)
ControlSend ($hWnd,"","","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{CTRLDOWN} 6 {CTRLUP}")
Sleep (500)
ControlSend ($hWnd,"","","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{CTRLDOWN} 7 {CTRLUP}")
Sleep (500)
ControlSend ($hWnd,"","","7")
Sleep( 3000)
ControlSend ($hWnd,"","Edit1","{CTRLDOWN} 8 {CTRLUP}")
Sleep (500)
ControlSend ($hWnd,"","","7")
Sleep( 3000)
WEnd
EndFunc

Func Pause()
$Paused = NOT $Paused
While $Paused
Sleep (1)
WEnd
EndFunc
Btw, when you use a Global Variable remember to spell it right in the function :)
07/25/2009 13:47 osama awed#4
ty so much
it is working great but sometimes can't select members cuz there is no delay between pressing "CTRL" and "num" .. i add Opt("SendKeyDownDelay", 50) to the script and it is working like a charm now
thx again for ur help ...