Jump to content
Sign in to follow this  
dakota

help with my script

Recommended Posts

dakota

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

Share this post


Link to post
Share on other sites
Simucal

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)

Share this post


Link to post
Share on other sites
BigDod

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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites
Valuater

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

Share this post


Link to post
Share on other sites
Simucal

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)

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  

×