Page 1 of 1

Problem with InKeyStr()

Posted: Sat Aug 11, 2018 11:01 am
by Allanon
Hello,

if I set the password flag the InKeyStr() function returns asterisks instead of the typed string.

Code: Select all

a = InKeyStr(#ALL, 100, False)
DebugPrint(a)
b = InKeyStr(#ALL, 100, True)
DebugPrint(b)
DebugPrompt("HIT ENTER")
I'm using it with Layers enabled, but the same problem exists also without layers...

Re: Problem with InKeyStr()

Posted: Sat Aug 11, 2018 4:13 pm
by Bugala
Seems to work right here. Hollywood7.1 and Windows.

First it shows typed letters, second try it shows asterisk.

Re: Problem with InKeyStr()

Posted: Sat Aug 11, 2018 9:53 pm
by SamuraiCrow
@Bugala

Only the echo to the console is supposed to be asterisks. The variable assignment is supposed to be unaffected.

Re: Problem with InKeyStr()

Posted: Sat Aug 11, 2018 9:58 pm
by Bugala
@SamuraiCrow

ah, i see. That happens here too that the variable assignment is asterisks as well.

Re: Problem with InKeyStr()

Posted: Mon Aug 13, 2018 10:25 pm
by airsoftsoftwair
Oops, will be fixed. Thanks for reporting!

Re: Problem with InKeyStr()

Posted: Sun Dec 09, 2018 2:48 pm
by airsoftsoftwair

Code: Select all

- Fix: InKeyStr() simply returned a string full of asterisks when password mode was active, which is
  not quite what password mode was made for

Re: Problem with InKeyStr()

Posted: Sun Mar 31, 2019 5:22 pm
by zenzizenzizenzic
Another problem I've noted with InKeyStr is that if an empty string is entered, it will reset the print statement to the upper left of the screen and overwrite existing text.

Re: Problem with InKeyStr()

Posted: Tue Apr 02, 2019 10:14 pm
by airsoftsoftwair
True, I'll fix this. Thanks for reporting!

Re: Problem with InKeyStr()

Posted: Mon May 27, 2019 5:20 pm
by airsoftsoftwair

Code: Select all

- Fix: When entering an empty string in InKeyStr(), the cursor position was reset to the top-left corner