copyright Posted September 17, 2004 Share Posted September 17, 2004 I am using... ;used to acquire the name of the person to rangeban $rangebanwho = InputBox("cbot", "What IP do you want to rangeban? {(}example: xxx.xxx{)}", "", "") ;used to send a the message of who i am rangebanning ControlSend(" Ares - [Chat]", "", "TTntEdit.UnicodeClass10", "" & $rangebanwho & "{ENTER}") ;used to send the stored variable to a different gui (admin utility) ControlSend("classname=ARCAClientClass", "", "RichEdit20A2", "" & $rangebanwho) the only problem is.. case sensitive. how do i make it keep "JoHnNy" when it sends instead of "johnny" ? please help.. cause i cant get the variables/controlsend to keep what i type case sensitive. Link to comment Share on other sites More sharing options...
copyright Posted September 17, 2004 Author Share Posted September 17, 2004 ok the problem is here.... ;used to acquire the name of the person to rangeban $variable = InputBox("title", "message", "", "") (( the inputbox is not saving the variable with case-sensitive characters. )) (( is there a way around this or an option i overlooked !? PLEASE !? )) Link to comment Share on other sites More sharing options...
copyright Posted September 17, 2004 Author Share Posted September 17, 2004 no, the problem is with ControlSend. It does not handle "shift state down" characters. Try searching the forum for "ControlSendPlus" or "_ControlSendPlus"if thats so, then why this:$var = "cApStEsT"ControlSend("title", "", "TTntEdit.UnicodeClass10", "" & $var)RESULTS: cApStEsT$var = InputBox("title", "message", "", "")ControlSend("title", "", "TTntEdit.UnicodeClass10", "" & $var)RESULTS: captest( that's why i think the problem is when the inputbox stores "whatever you type" into the variable $var )If i'm wrong please tell me.. . Link to comment Share on other sites More sharing options...
trids Posted September 17, 2004 Share Posted September 17, 2004 (edited) I get expected results Perhaps it's the control you're sending to .. (unless I'm missing the plot here )Using TextPad as the receiver :$sTitle = "TextPad" ;start running once we can see what's going on WinWaitActive($sTitle) ControlSend($sTitle,"","HSEditor1","aAbBcCdDeEfFgG{ENTER}") $sX = InputBox("title", "message", "", "") ControlSend($sTitle,"","HSEditor1","" & $sX).. I always get aAbBcCdDeEfFgGusing AU3 v3.0.103 Edited September 17, 2004 by trids Link to comment Share on other sites More sharing options...
Valik Posted September 17, 2004 Share Posted September 17, 2004 If you want to test what InputBox() is returning, please use a MsgBox(), don't rely on what the control shows and then assume it's InputBox() breaking it. At least verify first. 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