can you guys help me on this

05/26/2012 07:57 sickqweasdzxc#1
hellow i seem to have problem here
------------------
WinWaitActive
WinSetOnTop
$win =
WinMove($win, "", 0, 0)
$k = 1
Do
_monstersearch()

Until $k = 2 ;Loop Repeated non stop since $k is always 1. So you need to press End key to stop the script
Func _monstersearch()

$w = 1
Do
ControlSend($win, "", "", "1") ;send key 1 for scroll
Sleep(1000) ;stop for 2 sec
ControlSend($win, "", "", "2") ;send key 1 for scroll
Sleep(1000) ;stop for 2 sec
ControlSend($win, "", "", "3") ;send key 1 for scroll
Sleep(1000) ;stop for 2 sec
ControlSend($win, "", "", "4") ;send key 1 for scroll
Sleep(20000) ;stop for 40 secs
Until $w = 2
EndFunc ;==>_monstersearch
------------------------
on the do function when it do 1 2 3 4 key it doesn't spam :( i wonder what i need to change can you guys help me thanks in advance:handsdown:
05/26/2012 12:39 Logtetsch#2
Copy and past is very easy.....
And dafuq is this "WinWaitActive" ? There are no parameters.

Look at this -> [Only registered and activated users can see links. Click Here To Register...] <-
and on this -> [Only registered and activated users can see links. Click Here To Register...] <-
What is $win ?

Correct it please and send us your full script.
Thanks
05/26/2012 12:41 Trrooper[Y]#3
I send you now a PN :) i can help you
05/26/2012 20:25 sickqweasdzxc#4
WinWaitActive("Zebraffe(Strongest) Emerald18(346228)--version:1.0.3.3") ;The script waits for the window named "xxx" to become active.
WinSetOnTop("Zebraffe(Strongest) Emerald18(346228)--version:1.0.3.3", "", 0)
$win = "Zebraffe(Strongest) Emerald18(346228)--version:1.0.3.3"
WinMove($win, "", 0, 0)
$k = 1
Do
_monstersearch()

Until $k = 2 ;Loop Repeated non stop since $k is always 1. So you need to press End key to stop the script
Func _monstersearch()

$w = 1
Do
ControlSend($win, "", "", "1") ;send key 1 for scroll
Sleep(1000) ;stop for 1 sec
ControlSend($win, "", "", "2") ;send key 2 for scroll
Sleep(1000) ;stop for 1 sec
ControlSend($win, "", "", "3") ;send key 3 for scroll
Sleep(1000) ;stop for 1 sec
ControlSend($win, "", "", "4") ;send key 4 for scroll
Sleep(26000) ;stop for 30 sec
Until $w = 2
EndFunc ;==>_monstersearch

WinWaitActive("Zebraffe(Strongest) ama(46228)--version:1.0.3.3") ;The script waits for the window named "xxx" to become active.
WinSetOnTop("Zebraffe(Strongest) ama(46228)--version:1.0.3.3", "", 0)
$win = "Zebraffe(Strongest) ama(46228)--version:1.0.3.3"
WinMove($win, "", 0, 0)
$k = 1
Do
_monstersearch()

Until $k = 2 ;Loop Repeated non stop since $k is always 1. So you need to press End key to stop the script
Func _monstersearch()

$w = 1
Do
ControlSend($win, "", "", "1") ;send key 1 for scroll
Sleep(1000) ;stop for 1 sec
ControlSend($win, "", "", "2") ;send key 2 for scroll
Sleep(1000) ;stop for 1 sec
ControlSend($win, "", "", "3") ;send key 3 for scroll
Sleep(1000) ;stop for 1 sec
ControlSend($win, "", "", "4") ;send key 4 for scroll
Sleep(26000) ;stop for 30 sec
ControlSend($win, "", "", "5") ;send key 5 for scroll
Sleep(10000) ;
Until $w = 2
EndFunc ;==>_monstersearch
the site that i got this code is now dead i did not get the chance to ask questions about it so i just edit it and thank god it works but after i add the number 4 and 5 spam i does not follow the time that i put on to it. so the only problem here is key 4 and key 5 they seem to affect other key and make them delay for quite a long time sorry for my bad english
06/17/2012 13:31 genesisVI#5
Quote:
Originally Posted by sickqweasdzxc View Post
hellow i seem to have problem here
------------------
WinWaitActive
WinSetOnTop
$win =
WinMove($win, "", 0, 0)
$k = 1
Do
_monstersearch()

Until $k = 2 ;Loop Repeated non stop since $k is always 1. So you need to press End key to stop the script
Func _monstersearch()

$w = 1
Do
ControlSend($win, "", "", "1") ;send key 1 for scroll
Sleep(1000) ;stop for 2 sec
ControlSend($win, "", "", "2") ;send key 1 for scroll
Sleep(1000) ;stop for 2 sec
ControlSend($win, "", "", "3") ;send key 1 for scroll
Sleep(1000) ;stop for 2 sec
ControlSend($win, "", "", "4") ;send key 1 for scroll
Sleep(20000) ;stop for 40 secs
Until $w = 2
EndFunc ;==>_monstersearch
------------------------
on the do function when it do 1 2 3 4 key it doesn't spam :( i wonder what i need to change can you guys help me thanks in advance:handsdown:
while 1
send("1")
sleep("1000")
wend
its looping it will spam 1 over and over until called to stop ^_^