Jump to content

Correct me if i'm wrong.. send /


Glyph
 Share

Recommended Posts

Send ("{/}")

Sends a slash does it not?

- Every time i do that i get a error:

: ==> Recursion level has been exceeded - AutoIt will quit to prevent stack overflow.:

send("{/}")

Any ideas?

-Edit ;)

Edited by backstabbed

tolle indicium

Link to comment
Share on other sites

WinWaitActive ("Diablo II")
Sleep (1000)
Send("{/}join clan iv")
send ("{enter}")
sleep (100)
Send ("Test worked")
send ("{enter}")
I bet that's NOT the whole code!

Cheers

Kurt

Edited by /dev/null

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

You want to try not being a dumbass for a little bit? You have a problem but won't show the code that is problematic. How exactly do you expect us to fix it? And who do you think you are to say the full code isn't required? You obviously can't fix the problem on your own so your input on the subject is limited to "posting the code or shutting the hell up". Now either post the code or drop the subject.

Link to comment
Share on other sites

Sorry if i came on as an "asshole" i didn't mean to be...

The thing is i know for a fact the rest of the script has nothing to do with this " Send " command

It's a problem in the way i use it...

How about ill post one Exactly like it only different functions.

#Include <process.au3>

Dim $Filfe = ""

HotKeySet("/", "_di") ; /
HotKeySet ( "^!e" , "quit")

While 1
sleep(366*1044)
WEnd

Func quit()
exit
endfunc



Func _di()
HotKeySet ( "{/}")
send("{/}")
$Filfe = $File & "/"
HotKeySet ( "{/}" , "_di" )
EndFunc


Func OnAutoItExit()
$file = FileOpen("Slash.ini", 1)
FileWrite($file, $filfe)
FileClose($file)
EndFunc
Edited by backstabbed

tolle indicium

Link to comment
Share on other sites

And now you finally post something worth commenting on. The problem is very simple. You set a hotkey for "/". Then, later you try to have a proper pass-through hotkey handler but unfortunately you unset "{/}" and not "/". Thus your call to Send("{/}") triggers the hotkey handler anyway and an infinite loop ensues. The correct code is:

Func _di()
HotKeySet ( "/")
send("/")
HotKeySet ( "/" , "_di" )
EndFunc

It would appear there is some inconsistency here between HotKeySet() and Send(). At any rate, there's no need to escape "/" since it's not special.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...