GUI Input box
Posted 14 May 2010 - 01:00 AM
Posted 14 May 2010 - 01:23 AM
Post your code or the relevant part anyway.
The string returned will not exceed 254 characters and if input contains carriage returns or linefeeds, the result will be truncated at the first occurrence of those characters.
[color=#000000;]- Bruce[/color] [font="'Lucida Console';"]/*somdcomputerguy */ If you change the way you look at things, the things you look at change.[/font]
Posted 17 May 2010 - 01:23 PM
Posted 17 May 2010 - 01:51 PM
That isn't posting relevent code.
I am using a standard input box with a password '*' filter. My password is 32 characters long but the input box is only 19 characters long. When I try to pass the contents to a variable it will only pass the visible 19 characters. I was able to get it to pass all 32 characters when I extended the size of the input box. I would gather have the input box shorter than the length of the password. Let me know if you know of a solution.
You don't seem to realize there are several reasons we might want to see the code beside the obvious one, I want to steal your ever so secretive code because... , well, just because.
Personally I could care less about your code (I have some thanks), but at least post a snippet that demonstrates the problem and make sure the input is created exactly as you have it in your script.
Posted 17 May 2010 - 02:47 PM
#include <GUIConstantsEx.au3> #include <EditConstants.au3> GuiCreate("Input",247,224,441,368) $input1 = GuiCtrlCreateInput("",10,10,100,20,$ES_PASSWORD) $msgbox = GUICtrlCreateButton("Input",10,30,60,20) GUICtrlSetData($input1,"12345678901234567890123456789012") GuiSetState() While 1 $msg = GuiGetMsg() If $msg = -3 Then Exit If $msg = $msgbox Then MsgBox(0,'',StringLen(guictrlread($input1))) Wend
if you manually type in a new password it will only do 13 characters.
Posted 17 May 2010 - 03:10 PM
#include <GUIConstantsEx.au3> #include <EditConstants.au3> GuiCreate("Input",247,224,441,368) $input1 = GuiCtrlCreateInput("",10,10,100,20,BitOR($ES_AUTOHSCROLL,$ES_PASSWORD)) $msgbox = GUICtrlCreateButton("Input",10,30,60,20) GuiSetState() While 1 Sleep(10) $msg = GuiGetMsg() If $msg = -3 Then Exit If $msg = $msgbox Then MsgBox(0,'',guictrlread($input1) & @CRLF) Wend
Edited by JohnOne, 17 May 2010 - 03:12 PM.
Posted 17 May 2010 - 03:29 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users