Jump to content

help with my script


Recommended Posts

what is wrong with my if stament

msgbox (0,"IP Adresses" , @IPAddress1)


$IP = @ipaddress2
$badip = 0.0.0.0
if $IP = $badip Then
    msgbox (1 "Exit" "Exit")
    exit
    else
    msgbox (0,"IP Adresses" , @IPAddress2)
    msgbox (0,"IP Adresses" , @IPAddress3)
    msgbox (0,"IP Adresses" , @IPAddress4)
endif
exit
Link to comment
Share on other sites

Seems ok except your MsgBox was missing some commas and your $badip value wasnt in quotes:

MsgBox(0, "IP Adresses", @IPAddress1)


$IP = @IPAddress2
$badip = "0.0.0.0"
If $IP = $badip Then
    MsgBox(1, "Exit", "Exit")
    Exit
Else
    MsgBox(0, "IP Adresses", @IPAddress2)
    MsgBox(0, "IP Adresses", @IPAddress3)
    MsgBox(0, "IP Adresses", @IPAddress4)
EndIf
Exit
AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)
Link to comment
Share on other sites

Try

msgbox (0,"IP Adresses" , @IPAddress1)


$IP = @ipaddress2
$badip = "0.0.0.0"
if $IP = $badip Then
    msgbox (1, "Exit", "Exit")
    exit
    else
    msgbox (0,"IP Adresses" , @IPAddress2)
    msgbox (0,"IP Adresses" , @IPAddress3)
    msgbox (0,"IP Adresses" , @IPAddress4)
endif
exit

Edit - Too slow again

Edited by BigDod


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

you should be using SciTE... in SciTE there is code checking

MsgBox(0, "IP Adresses", @IPAddress1)


$IP = @IPAddress2
$badip = "0.0.0.0"
If $IP = $badip Then
    MsgBox(1, "Exit", "Exit")
    Exit
Else
    MsgBox(0, "IP Adresses", @IPAddress2)
    MsgBox(0, "IP Adresses", @IPAddress3)
    MsgBox(0, "IP Adresses", @IPAddress4)
EndIf
Exit

Ohhh Big-Bad-Dod-Dogged-Me... lol

... but i got the tidy 8)

Heck... i didn't even see you Simucal.... BLAH!!!

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

Mwuahaha.. I beat you all!

AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)
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...