|
Post by burrito on Jul 9, 2005 0:47:05 GMT -5
Today, as I was running my script for buying ash logs from the guild, the script stopped sending the "up" key. All the other keys work fine except the directional keys(Left, Right, Up, Down). The thing is, the script was working fine for a while then it just stopped working. This is the part that really preplexes me because there was no reason for it to happen no new programs I didn't edit the script or anything. Any Help or Feedback would be very much appreciated. Here is the code by the way in case anyone wants to see it (I know its dumb but it works) AutoItSetOption("SendKeyDelay", 500) AutoItSetOption("SendKeyDownDelay", 100) sleep(2000) buy() buy() buy() buy() buy() buy() buy() buy() buy() buy() buy() buy() func buy() send("{ENTER}") send("{UP}") send("{ENTER}") endfunc
|
|
dirp2
New Member
Posts: 26
|
Post by dirp2 on Jul 9, 2005 2:29:42 GMT -5
I see you have a nice SendKeyDelay,but your SendKeyDownDelay is a little fast for this kind of script IMO.Since this isnt a time sensative script,try increasing your KeyDownDelay to 150-200,and maybe throw a short sleep inbetween sending your keystrokes.
func buy() send("{ENTER}") Sleep(500) send("{UP}") Sleep(500) send("{ENTER}") Sleep(500) endfunc
I know this is what your SendKeyDelay is supposed to do,but I have noticed it to be buggy from time to time.Sometimes it would send my keystrokes with np,other times it would always seem to miss the same line over and over in my script.Thats when I started throwing sleeps inbetween my keystrokes and did away with SendKeyDelay all together,and that seems to work better.
Also,this could be just me,but I have noticed when navigating thru menus (such as AH or vendor menus) that my delays have to be increased a fair amount to allow the menu to fully load and take into account any latency.
|
|
|
Post by burrito on Jul 9, 2005 18:13:54 GMT -5
Thanks for the info dirp I think thats partially my problem, but I kind of solved my own problem by mistake while screwing around with the script as long as the script doesn't use F8 to target the NPC it works fine, now I just use enter and I have lengthened my delays. If anyone know why not sending F8 would fix it I would still like to know.
|
|