MSLx Fanboy Posted May 13, 2005 Share Posted May 13, 2005 Having a bit o' trouble verifying that the stuff entered into a GUI is what is actually valid. File attached. Any help would be greatly appreciated, I don't use GUIs very often.TSAuto_Kick.au3 Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
GaryFrost Posted May 14, 2005 Share Posted May 14, 2005 check your syntax on the if statements I believe NOT in string comparison is incorrect Try for example: If StringInStr(StringUpper(GUICtrlRead($CtrlIPAddr)),"IP ADDRESS") Then MsgBox(0, "Teamspeak Auto-Kick Tool", "No IP Address Entered") Else $IPAddr = GUICtrlRead($CtrlIPAddr) If StringLen(TCPNametoIP($IPAddr)) > 0 Then $IPAddr = TCPNametoIP($IPAddr) $good += 1 Else MsgBox(0, "Teamspeak Auto-Kick Tool", "Bad IP Address") EndIf EndIf SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted May 14, 2005 Author Share Posted May 14, 2005 (edited) Thanks! Now I just need to do some better testing for the TCPNametoIP() lineEdit: was using two different variables for the IP Address. Wow, I'm pretty slow there. Current version of the GUI below5/14 1:21PM Updated script with checks for checkboxes, have a few more things to add...then to add in the real scripting part.TSAuto_Kick.au3 Edited May 14, 2005 by MSLx Fanboy Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted May 14, 2005 Author Share Posted May 14, 2005 I've finished the GUI part of it, made it into a func i plan to include in a separate file, for simplicity's sake. Taking a break now...I'll come back and write the half of the script that actually does the work! GUI Code belowTSAuto_Kick.au3 Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now