Sign in to follow this  
Followers 0
Glyph

Correct me if i'm wrong.. send /

9 posts in this topic

#1 ·  Posted (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 by backstabbed

tolle indicium

Share this post


Link to post
Share on other sites



Here's an idea: post all of your code, not just one line.

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 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 *

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by backstabbed

tolle indicium

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Hooray!!, thank you!, sorry for being rude!!!


tolle indicium

Share this post


Link to post
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
Sign in to follow this  
Followers 0