AceLoc Posted September 28, 2006 Share Posted September 28, 2006 (edited) To test this script you will need this files:http://www.autoitscript.com/forum/index.ph...ost&id=5856 ;Console.au3http://www.autoitscript.com/forum/index.ph...ost&id=5855 ;Mx63.zip#include <Console.au3> $a = PluginOpen("C:\Program Files\Autoit3\Beta\Include\MX63.dll");Plugin ConsoleLoad("Test Console By Ace Loc") ConsolePrintx("AutoIt Console By Ace Loc [version 1.06]" & @CRLF) ConsolePrintx("(C) Copyright 2006-2007 Childs Play Corp." & @CRLF & @CRLF) ConsolePrintx("Internet Protocol (IP): ") $b = ConsoleInputLine();Input ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ") While 1 $c = $b If $c = "Y" Then Run("notepad.exe") ExitLoop ElseIf $c = "N" Then ConsolePrintx(@CRLF & "Internet Protocol (IP): ") ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ") Else ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ") EndIf WEnd Func ConsolePrintx($data) ConsolePrint($data) EndFuncany idea why it keeps repeating: Are you sure you wanna Port Scan XXX (Y/N) ?....Thnk Edited September 28, 2006 by aceloc [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
Valik Posted September 28, 2006 Share Posted September 28, 2006 any idea why it keeps repeating: Are you sure you wanna Port Scan XXX (Y/N) ?You told it to. Link to comment Share on other sites More sharing options...
AceLoc Posted September 28, 2006 Author Share Posted September 28, 2006 You told it to.where did i? Thnk [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
blademonkey Posted September 28, 2006 Share Posted September 28, 2006 (edited) To test this script you will need this files: http://www.autoitscript.com/forum/index.ph...ost&id=5856 ;Console.au3 http://www.autoitscript.com/forum/index.ph...ost&id=5855 ;Mx63.zip #include <Console.au3> $a = PluginOpen("C:\Program Files\Autoit3\Beta\Include\MX63.dll");Plugin ConsoleLoad("Test Console By Ace Loc") ConsolePrintx("AutoIt Console By Ace Loc [version 1.06]" & @CRLF) ConsolePrintx("(C) Copyright 2006-2007 Childs Play Corp." & @CRLF & @CRLF) ConsolePrintx("Internet Protocol (IP): ") $b = ConsoleInputLine();Input ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ") While 1 $c = $b If $c = "Y" Then Run("notepad.exe") ExitLoop ElseIf $c = "N" Then ConsolePrintx(@CRLF & "Internet Protocol (IP): ") ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ") Else ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ") EndIf WEnd Func ConsolePrintx($data) ConsolePrint($data) EndFunc any idea why it keeps repeating: Are you sure you wanna Port Scan XXX (Y/N) ? .... Thnkbecause of this:ElseIf $c = "N" Then ConsolePrintx(@CRLF & "Internet Protocol (IP): ") ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ") Else ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ") From what i read it meas that if $c is not 'N' or 'Y' then it will always run that. sounds like a logic bomb. Edited September 28, 2006 by blademonkey ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung Link to comment Share on other sites More sharing options...
AceLoc Posted September 28, 2006 Author Share Posted September 28, 2006 because of this:ElseIf $c = "N" Then ConsolePrintx(@CRLF & "Internet Protocol (IP): ") ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ") Else ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ") sounds like a logic bomb.heh.. i ment if i fill in the (IP) the first time then it keeps repeating that (are you sure you wanna portscan xxxx (Y/N) thnk [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
blademonkey Posted September 28, 2006 Share Posted September 28, 2006 heh.. i ment if i fill in the (IP) the first time then it keeps repeating that (are you sure you wanna portscan xxxx (Y/N)thnkSorry man that makes no sense. I guess it would help if you explain how you want it to act. Because it is behaving exactly as it should per your code. ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung Link to comment Share on other sites More sharing options...
Nezoic Posted September 28, 2006 Share Posted September 28, 2006 heh.. i ment if i fill in the (IP) the first time then it keeps repeating that (are you sure you wanna portscan xxxx (Y/N) thnk What happense if you remove Else ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ") ? Link to comment Share on other sites More sharing options...
AceLoc Posted September 28, 2006 Author Share Posted September 28, 2006 What happense if you remove Else ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ") ?makes no sence. [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
Nezoic Posted September 28, 2006 Share Posted September 28, 2006 Well that Else is basically going to spam that until c$ = Y or N. Take it out and it wont spam anything. Link to comment Share on other sites More sharing options...
AceLoc Posted September 28, 2006 Author Share Posted September 28, 2006 ah lol fixed.. #include <Console.au3> $a = PluginOpen("C:\Program Files\Autoit3\Beta\Include\MX63.dll");Plugin ConsoleLoad("Test Console By Ace Loc") ConsolePrintx("AutoIt Console By Ace Loc [version 1.07]" & @CRLF) ConsolePrintx("(C) Copyright 2006-2007 Childs Play Corp." & @CRLF & @CRLF) ConsolePrintx("Internet Protocol (IP): ") $b = ConsoleInputLine();Input ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ") While 1 $c = ConsoleInputLine();Reads If $c = "Y" Then Run("notepad.exe") ExitLoop ElseIf $c = "N" Then ConsolePrintx(@CRLF & "Internet Protocol (IP): ") $d = ConsoleInputLine();Input2 ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$d & " (Y/N)? ") Else ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$d & " (Y/N)? ") EndIf WEnd Func ConsolePrintx($data) ConsolePrint($data) EndFunc heh.. did make a wrong note i did ";Input2" at a Read part *-) (sometimes im just sooooo tired ) thanks for helping all. [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
AceLoc Posted September 28, 2006 Author Share Posted September 28, 2006 Well that Else is basically going to spam that until c$ = Y or N. Take it out and it wont spam anything.well.. thanks for supporting even your like max wrong..and nothing what you say is making sence.. but hey.. Thanks for Tryin to help [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
Lord Maim Posted September 28, 2006 Share Posted September 28, 2006 well.. thanks for supporting even your like max wrong..and nothing what you say is making sence.. but hey.. Thanks for Tryin to help O_o 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