Jump to content

Need serious help now.


AceLoc
 Share

Recommended Posts

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) ?

....

Thnk

Edited by aceloc

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Link to comment
Share on other sites

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) ?

....

Thnk

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)? ")

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 by blademonkey

---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

Link to comment
Share on other sites

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

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

Sorry 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

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

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 :):P

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

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