AceLoc Posted October 1, 2006 Posted October 1, 2006 Is it possible.. to get this in a Func and still work the same? While 1 TCPSend ($ConnectedSocket, $szData) If Not @error Then MsgBox(0, "Succeed:", "Packet Sended") Else MsgBox(0, "Error:", "Port Is Closed.") ExitLoop EndIf WEnd Thnk [quote name='AceLoc']I gots new sunglasses there cool.[/quote]
AceLoc Posted October 1, 2006 Author Posted October 1, 2006 ehmm.. lol fixed (last time i Tidy'd it said You cant do While/If/Do etc in a Func) strange though :/ Thnk [quote name='AceLoc']I gots new sunglasses there cool.[/quote]
PsaltyDS Posted October 2, 2006 Posted October 2, 2006 ehmm.. lol fixed (last time i Tidy'd it said You cant do While/If/Do etc in a Func) strange though :/ Thnk It's the other way around, you can't declare a function inside a loop or conditional statement. This would cause errors: While 1 Func _Test() MsgBox(64, "Test", "Test") EndFunc WEndoÝ÷ ض¬Â)emçâæ®¶sdgVæ2õFW7B¢vÆR¢×6t&÷cBÂgV÷CµFW7BgV÷C²ÂgV÷CµFW7BgV÷C²¢tVæ@¤VæDgVæ0 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
AceLoc Posted October 2, 2006 Author Posted October 2, 2006 It's the other way around, you can't declare a function inside a loop or conditional statement. This would cause errors: While 1 Func _Test() MsgBox(64, "Test", "Test") EndFunc WEndoÝ÷ ض¬Â)emçâæ®¶sdgVæ2õFW7B¢vÆR¢×6t&÷cBÂgV÷CµFW7BgV÷C²ÂgV÷CµFW7BgV÷C²¢tVæ@¤VæDgVæ0oÝ÷ Ûú®¢×§z÷«)Ý -Ö¥æÊ+pjÆÞq«¬z'bv{¶»-Z¥{X¡iÙbëaÆ®¶sdVÇ6Tbb33c¶"ÒgV÷C¶WׯSgV÷C²FVà¥vÆR£·vFWfW ¤VæD`¥tVæ@¤bb33c¶"ÒgV÷C¶WׯS"gV÷C²FVà¥vÆR£·vFWfW ¤VæF`¥tVæ@£¶Æöær6öFP¥tVæ@ ¤gVæ2ôWׯP¤W@¤VæDgVæ so thats why ! [quote name='AceLoc']I gots new sunglasses there cool.[/quote]
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