Jump to content

Recommended Posts

Posted

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.

Posted

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 !? ))

Posted

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.. .

Posted (edited)

I get expected results :ph34r:

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 aAbBcCdDeEfFgG

using AU3 v3.0.103

Edited by trids
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...