Sign in to follow this  
Followers 0
AceLoc

Need serious help now.

12 posts in this topic

#1 ·  Posted (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) ?

....

Thnk

Edited by aceloc

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

Share this post


Link to post
Share on other sites



any idea why it keeps repeating: Are you sure you wanna Port Scan XXX (Y/N) ?

You told it to.

Share this post


Link to post
Share on other sites

You told it to.

where did i? :):P

Thnk


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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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) ?

....

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

Share this post


Link to post
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]

Share this post


Link to post
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

Share this post


Link to post
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

What happense if you remove

Else
        ConsolePrintx(@CRLF & "Are you sure you wanna Port Scan, "&$b & " (Y/N)? ")

?

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
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.

Share this post


Link to post
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]

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

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

O_o

Share this post


Link to post
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
Sign in to follow this  
Followers 0