Glyph Posted December 9, 2006 Share Posted December 9, 2006 (edited) 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 December 9, 2006 by backstabbed tolle indicium Link to comment Share on other sites More sharing options...
Valik Posted December 9, 2006 Share Posted December 9, 2006 Here's an idea: post all of your code, not just one line. Link to comment Share on other sites More sharing options...
Glyph Posted December 9, 2006 Author Share Posted December 9, 2006 WinWaitActive ("Diablo II") Sleep (1000) Send("{/}join clan iv") send ("{enter}") sleep (100) Send ("Test worked") send ("{enter}") tolle indicium Link to comment Share on other sites More sharing options...
/dev/null Posted December 9, 2006 Share Posted December 9, 2006 (edited) 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 December 9, 2006 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 More sharing options...
Glyph Posted December 9, 2006 Author Share Posted December 9, 2006 I don't think the full code is required It's just a send i need to know :/ i don't wanan post my full code... it's not what i want to be known as open source... tolle indicium Link to comment Share on other sites More sharing options...
Valik Posted December 9, 2006 Share Posted December 9, 2006 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 More sharing options...
Glyph Posted December 9, 2006 Author Share Posted December 9, 2006 (edited) 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 December 9, 2006 by backstabbed tolle indicium Link to comment Share on other sites More sharing options...
Valik Posted December 9, 2006 Share Posted December 9, 2006 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 More sharing options...
Glyph Posted December 9, 2006 Author Share Posted December 9, 2006 Hooray!!, thank you!, sorry for being rude!!! tolle indicium Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now