Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 05:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Error: can't find func

Discussion on Error: can't find func within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2014
Posts: 84
Received Thanks: 6
Error: can't find func

not sure that the error is that, but it's something simular.
I keep getting it at the last part of the script, where it needs to go back to a Func that's placed higher in the code.
I don't want to share the code, unless you're a trusted member.
my script looks like this:

Func 1()
xxxx
xxxx
xxxx
2
;goes to func 2

Func 2()
xxxx
xxxx
xxxx
3
;goes to func 3

Func 3()
xxxx
xxxx
xxxx
4
;goes to func 4

Func 4()
xxxx
xxxx
2
; goes back to func 2 , here I get the error.
goldenapple007 is offline  
Old 06/08/2014, 23:15   #2
 
elite*gold: 22
Join Date: Feb 2012
Posts: 576
Received Thanks: 332
Quote:
Originally Posted by goldenapple007 View Post
not sure that the error is that, but it's something simular.
I keep getting it at the last part of the script, where it needs to go back to a Func that's placed higher in the code.
I don't want to share the code, unless you're a trusted member.
my script looks like this:

Func 1()
xxxx
xxxx
xxxx
2
;goes to func 2

Func 2()
xxxx
xxxx
xxxx
3
;goes to func 3

Func 3()
xxxx
xxxx
xxxx
4
;goes to func 4

Func 4()
xxxx
xxxx
2
; goes back to func 2 , here I get the error.
1. u coud share the functions call code
2. what the hell is this?
seems like it coud be done all in 1 function(maybe recursive)
VisionEP1 is offline  
Thanks
1 User
Old 06/08/2014, 23:44   #3
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Nobody will be able to reproduce the problem with that pseudocode.
Why don't you try to isolate the problem in a new script?
alpines is offline  
Thanks
1 User
Old 06/09/2014, 11:26   #4
 
elite*gold: 0
Join Date: May 2014
Posts: 84
Received Thanks: 6
Quote:
Originally Posted by alpines View Post
Nobody will be able to reproduce the problem with that pseudocode.
Why don't you try to isolate the problem in a new script?
after I added the code here , I found the mistake.
I forgot a $ before a variable...
I shouldn't code that late ( acctualy you can't call that coding, It's just copy pasterino)
I'm gonna run it now, and see if it works ...
Takes a long time to test cus I need 3 vm's for it

edit: tested and works , infinity loops =D , it's a script to level my League of legends account(s)
I added a stop button, don't worry.
goldenapple007 is offline  
Old 06/09/2014, 15:22   #5
 
Paraly's Avatar
 
elite*gold: 27
Join Date: Sep 2009
Posts: 5,609
Received Thanks: 1,596
Try this, your script will be paused with F5 and you can exit the script with F6

PHP Code:
#NoTrayIcon

Global $Pause
HotKeySet
("{F5}","_Pause")
HotKeySet("{F6}","_Exit")


While 
1
    _Func1
()
    
_Func2()
    
_Func3()
    
_Func4()
WEnd

Func _Pause
()
    
$Pause Not $Pause
    
While $Pause
        ToolTip
("Script paused..",@DesktopWidth 0.5, @DesktopHeight 0.05)
        
Sleep(75)
    
WEnd
EndFunc

Func _Exit
()
    
Local $i 5
    
Do
        
ToolTip("Script will exit in " $i " Seconds..",@DesktopWidth 0.5, @DesktopHeight 0.05)
        
Sleep(1000)
        
$i -= 1
    Until $i 
0
    
Exit
EndFunc 
Paraly is offline  
Reply


Similar Threads Similar Threads
Func nach der func ausführen problem
08/15/2011 - AutoIt - 6 Replies
Hi, ich hab hier mal nen code schnipel der nicht funktioniert.. Die error Erkennung... if StringInStr($oWebTcp.body, "Du kannst nicht weitermachen...") Then GUICtrlSetData($list1, "Login failed. Please fix"&" = "&$array&" ANR: ")
[Fragen zu] Gui Hide & Show / Admin Rights / Func in Func
12/12/2010 - AutoIt - 29 Replies
Hi Leute, wie ihr oben ja bereits lesen könnt habe ich ein paar Fragen. 1. Könnte mir jmd. eine Hotkeyset-Func schreiben, womit ich mit nur einer (!) Taste die GUI verstecken und wieder anzeigen lassen kann ? 2. Gibt es etwas, dass dem gescripteten Tool von selbst Adminrechte verschafft? Ich rede NICHT von RequireAdmin, da muss man ja Administrator des PCs sein. €: Kann "#requireadmin" rausgezögert werden ?! Ich möchte, dass das passiert, aber erst, wenn ich einen Knopf gedrückt...
Badly formatted Func statement-Error
09/12/2010 - AutoIt - 10 Replies
Hiho, ich wollte grade anfangen, oder habe angefangen, einen kleinen Aimbot in AutoIt zu programmieren/coden (wie auch immer) naya, als ich ihn dann gestartet habe, kamm wie im Titel schon zu sehen, ein Error nämlich: "Badly formatted Func statement" Nun wollte ich mal fragen, ob jmd. hier eine Lösung weiß :) Hier mal der Code:
[HELP]Func -> Syntax Error
07/10/2010 - AutoIt - 13 Replies
Huhu Com.. Ich wollte mir mal einen kleinen Bot machen... Aber bei "Func" kommt immer diese Fehlermeldung... http://img804.imageshack.us/img804/7364/screensho t1.jpg Bin dankbar für jede hilfe :) p.s: ja, am Ende hab ich auch ein "EndFunc"



All times are GMT +1. The time now is 05:11.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.