Jump to content

How Do I Fix this Error? What does it mean?


milkman
 Share

Recommended Posts

C:\Documents and Settings\Calvin\My Documents\Scripts\Keys\Keys.au3 (140) : ==> Recursion level has been exceeded - AutoIt will quit to prevent stack overflow.:

I have 26 HotKeySet commands and they are all scripted right, but when I put them all together and try and activate them, I get that error.

Link to comment
Share on other sites

C:\Documents and Settings\Calvin\My Documents\Scripts\Keys\Keys.au3 (140) : ==> Recursion level has been exceeded - AutoIt will quit to prevent stack overflow.:

I have 26 HotKeySet commands and they are all scripted right, but when I put them all together and try and activate them, I get that error.

maybe you could post your code so we might be able to tell you where you've got your mistake
Link to comment
Share on other sites

maybe you could post your code so we might be able to tell you where you've got your mistake

Heres the code. Each Seperate Hotkey works, but when I put them together they dont.

; ----------------------------------------------------------------------------

;

; AutoIt Version: 3.1.0

; Author: Calvin <teamgonuts@gmail.com>

;

; Script Function:

; Mixes up the keys

;

; ----------------------------------------------------------------------------

; Script Start - Add your code below here

HotKeySet ( "a", "a1" )

Func a1()

Send ( "z" )

EndFunc

HotKeySet ( "b", "b1" )

Func b1()

Send ( "y" )

EndFunc

HotKeySet ( "c", "c1" )

Func c1()

Send ( "x" )

EndFunc

HotKeySet ( "d", "d1" )

Func d1()

Send ( "w" )

EndFunc

HotKeySet ( "e", "e1" )

Func e1()

Send ( "v" )

EndFunc

HotKeySet ( "f", "f1" )

Func f1()

Send ( "u" )

EndFunc

HotKeySet ( "g", "g1" )

Func g1()

Send ( "t" )

EndFunc

HotKeySet ( "h", "h1" )

Func h1()

Send ( "s" )

EndFunc

HotKeySet ( "i", "i1" )

Func i1()

Send ( "r" )

EndFunc

HotKeySet ( "j", "j1" )

Func j1()

Send ( "q" )

EndFunc

HotKeySet ( "k", "k1" )

Func k1()

Send ( "p" )

EndFunc

HotKeySet ( "l", "l1" )

Func l1()

Send ( "o" )

EndFunc

HotKeySet ( "m", "m1" )

Func m1()

Send ( "n" )

EndFunc

HotKeySet ( "n", "n1" )

Func n1()

Send ( "m" )

EndFunc

HotKeySet ( "o", "o1" )

Func o1()

Send ( "l" )

EndFunc

HotKeySet ( "p", "p1" )

Func p1()

Send ( "k" )

EndFunc

HotKeySet ( "q", "q1" )

Func q1()

Send ( "s" )

EndFunc

HotKeySet ( "r", "r1" )

Func r1()

Send ( "i" )

EndFunc

HotKeySet ( "s", "s1" )

Func s1()

Send ( "h" )

EndFunc

HotKeySet ( "t", "t1" )

Func t1()

Send ( "g" )

EndFunc

HotKeySet ( "u", "u1" )

Func u1()

Send ( "f" )

EndFunc

HotKeySet ( "v", "v1" )

Func v1()

Send ( "e" )

EndFunc

HotKeySet ( "w", "w1" )

Func w1()

Send ( "d" )

EndFunc

HotKeySet ( "x", "x1" )

Func x1()

Send ( "c" )

EndFunc

HotKeySet ( "y", "y1" )

Func y1()

Send ( "b" )

EndFunc

HotKeySet ( "z", "z1" )

Func z1()

Send ( "a" )

EndFunc

While 1

Sleep ( 100000 )

Wend

Link to comment
Share on other sites

try this 1 - needs beta

#include <misc.au3>

while 1
    sleep (50)
    if _IsPressed ("41") then send ("{bs}z")
    if _IsPressed ("42") then send ("{bs}y")
    if _IsPressed ("43") then send ("{bs}x")
    if _IsPressed ("44") then send ("{bs}w")
    if _IsPressed ("45") then send ("{bs}v")
    if _IsPressed ("46") then send ("{bs}u")
    if _IsPressed ("47") then send ("{bs}t")
    if _IsPressed ("48") then send ("{bs}s")
    if _IsPressed ("49") then send ("{bs}r")
    if _IsPressed ("4A") then send ("{bs}q")
    if _IsPressed ("4B") then send ("{bs}p")
    if _IsPressed ("4C") then send ("{bs}o")
    if _IsPressed ("4D") then send ("{bs}n")
    if _IsPressed ("4E") then send ("{bs}m")
    if _IsPressed ("4F") then send ("{bs}l")
    if _IsPressed ("50") then send ("{bs}k")
    if _IsPressed ("51") then send ("{bs}j")
    if _IsPressed ("52") then send ("{bs}i")
    if _IsPressed ("53") then send ("{bs}h")
    if _IsPressed ("54") then send ("{bs}g")
    if _IsPressed ("55") then send ("{bs}f")
    if _IsPressed ("56") then send ("{bs}e")
    if _IsPressed ("57") then send ("{bs}d")
    if _IsPressed ("58") then send ("{bs}c")
    if _IsPressed ("59") then send ("{bs}b")
    if _IsPressed ("5A") then send ("{bs}a")
Wend

ok this is very basic i know but it works most of the time :o

Link to comment
Share on other sites

updated the script for capital letters :o

#include <misc.au3>

while 1
    sleep (50)
    if _IsPressed ("5A") and not _IsPressed ("10") then send ("{bs}A")
    if _IsPressed ("5A") and _IsPressed ("10") then send ("{bs}a")
    if _IsPressed ("59") and not _IsPressed ("10") then send ("{bs}B")
    if _IsPressed ("59") and _IsPressed ("10") then send ("{bs}b")
    if _IsPressed ("58") and not _IsPressed ("10") then send ("{bs}C")
    if _IsPressed ("58") and _IsPressed ("10") then send ("{bs}c")
    if _IsPressed ("57") and not _IsPressed ("10") then send ("{bs}D")
    if _IsPressed ("57") and _IsPressed ("10") then send ("{bs}d")
    if _IsPressed ("56") and not _IsPressed ("10") then send ("{bs}E")
    if _IsPressed ("56") and _IsPressed ("10") then send ("{bs}e")
    if _IsPressed ("55") and not _IsPressed ("10") then send ("{bs}F")
    if _IsPressed ("55") and _IsPressed ("10") then send ("{bs}f")
    if _IsPressed ("54") and not _IsPressed ("10") then send ("{bs}G")
    if _IsPressed ("54") and _IsPressed ("10") then send ("{bs}g")
    if _IsPressed ("53") and not _IsPressed ("10") then send ("{bs}H")
    if _IsPressed ("53") and _IsPressed ("10") then send ("{bs}h")
    if _IsPressed ("52") and not _IsPressed ("10") then send ("{bs}I")
    if _IsPressed ("52") and _IsPressed ("10") then send ("{bs}i")
    if _IsPressed ("51") and not _IsPressed ("10") then send ("{bs}J")
    if _IsPressed ("51") and _IsPressed ("10") then send ("{bs}j")
    if _IsPressed ("50") and not _IsPressed ("10") then send ("{bs}K")
    if _IsPressed ("50") and _IsPressed ("10") then send ("{bs}k")
    if _IsPressed ("4F") and not _IsPressed ("10") then send ("{bs}L")
    if _IsPressed ("4F") and _IsPressed ("10") then send ("{bs}l")
    if _IsPressed ("4E") and not _IsPressed ("10") then send ("{bs}M")
    if _IsPressed ("4E") and _IsPressed ("10") then send ("{bs}m")
    if _IsPressed ("4D") and not _IsPressed ("10") then send ("{bs}N")
    if _IsPressed ("4D") and _IsPressed ("10") then send ("{bs}n")
    if _IsPressed ("4C") and not _IsPressed ("10") then send ("{bs}O")
    if _IsPressed ("4C") and _IsPressed ("10") then send ("{bs}o")
    if _IsPressed ("4B") and not _IsPressed ("10") then send ("{bs}P")
    if _IsPressed ("4B") and _IsPressed ("10") then send ("{bs}p")
    if _IsPressed ("4A") and not _IsPressed ("10") then send ("{bs}Q")
    if _IsPressed ("4A") and _IsPressed ("10") then send ("{bs}q")
    if _IsPressed ("49") and not _IsPressed ("10") then send ("{bs}R")
    if _IsPressed ("49") and _IsPressed ("10") then send ("{bs}r")
    if _IsPressed ("48") and not _IsPressed ("10") then send ("{bs}S")
    if _IsPressed ("48") and _IsPressed ("10") then send ("{bs}s")
    if _IsPressed ("47") and not _IsPressed ("10") then send ("{bs}T")
    if _IsPressed ("47") and _IsPressed ("10") then send ("{bs}t")
    if _IsPressed ("46") and not _IsPressed ("10") then send ("{bs}U")
    if _IsPressed ("46") and _IsPressed ("10") then send ("{bs}u")
    if _IsPressed ("45") and not _IsPressed ("10") then send ("{bs}V")
    if _IsPressed ("45") and _IsPressed ("10") then send ("{bs}v")
    if _IsPressed ("44") and not _IsPressed ("10") then send ("{bs}W")
    if _IsPressed ("44") and _IsPressed ("10") then send ("{bs}w")
    if _IsPressed ("43") and not _IsPressed ("10") then send ("{bs}X")
    if _IsPressed ("43") and _IsPressed ("10") then send ("{bs}x")
    if _IsPressed ("42") and not _IsPressed ("10") then send ("{bs}Y")
    if _IsPressed ("42") and _IsPressed ("10") then send ("{bs}y")
    if _IsPressed ("41") and not _IsPressed ("10") then send ("{bs}Z")
    if _IsPressed ("41") and _IsPressed ("10") then send ("{bs}z")
Wend

ok i know the {bs}-thing isn't that nice but it works :geek:

Link to comment
Share on other sites

Heres the code. Each Seperate Hotkey works, but when I put them together they dont.

Others have posted different code that may do what you want.

I think the error in your original code was sending a key with the Send() functions that triggers the translation function you defined for the sent letter, which sends a different letter, triggering another translation function, etc. ad infinitum.

:o

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Thinking the same thing. (wrote this with scrambler on)

The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Link to comment
Share on other sites

  • Moderators

O crap all my old ones are in regular. Whats new in the beta version?

About 90% of the workable scripts on here.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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...