Jump to content

Recommended Posts

Posted (edited)

 

$mailadress = InputBox("Question", "Your email?", "", "", _
    -1, -1, 0, 0)

  IF not $mailadress = "@" Then
     MsgBox(4096, "Result1"  , $mailadress) 
  Else
     MsgBox(4096, "Result2"  , $mailadress) 
  EndIf

 

How to get a check on whether there is an @ somewhere in the string and should then be accepted and if there is no @ in the string
then it should not be accepted.

 

 

 

 

 

 

 

 

 

 

 

Edited by Borje
Posted

StringInStr (String In String)

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

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
×
×
  • Create New...