Page 1 of 1
Questions about "Actions:Input Box"
Posted: Thu Nov 06, 2025 10:51 am
by robotask813
The following are the issues that arose during the trial:
Questions about "Actions:Input Box"as follows:
1. Assign Entered Value to Variable : Variables written will automatically become uppercase
2. "Task name":An error will occur when there are too many Chinese characters(More than 26 different Chinese characters,),Log prompt error:"An error occurred"or "Aborted"("Input Box" :The following "Actions" will not be executed)
3. "Actions:Input Box":
"Prompt String":An error will occur when there are too many Chinese characters(More than 26 different Chinese characters,),Log prompt error:"An error occurred"or "Aborted"("Input Box" :The following "Actions" will not be executed)
If problems 2 and 3 above occur at the same time or separately, the errors will be random(Log prompt error:"An error occurred"or "Aborted").
Re: Questions about "Actions:Input Box"
Posted: Thu Nov 06, 2025 4:22 pm
by Oleg
1. Assign Entered Value to Variable : Variables written will automatically become uppercase
Variable names are case-insensitive,
so the names
MyVar,
myvar, and
MYVAR are all the same name.
If problems 2 and 3 above occur at the same time or separately, the errors will be random(Log prompt error:"An error occurred"or "Aborted").
Could you give me some examples of Chinese strings that you want to use? I want to check it myself.
Re: Questions about "Actions:Input Box"
Posted: Fri Nov 07, 2025 5:28 am
by robotask813
1. "Task name"
2. "Actions:Input Box":“Prompt String”:
3. When the Task is running, in the "Input Box" dialog box, it is normal to enter an even number of Chinese characters, but it is terminated when an odd number of Chinese characters are entered. The action after "Actions: Input Box" will not be executed, and the run log prompts "Aborted"
Above 1~3,If you enter Chinese characters in these three positions, as long as one Chinese character is an odd number, an error will occur. If it is an even number, it will be normal.
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|976845217
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DisableOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task128"
Hide=INTEGER|0
ID=INTEGER|1122542263
LogOnAsUser=INTEGER|1
Name=STRING|"变量"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
StepPause=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
[Actions\Action1]
ActionID=STRING|"A_DIALOG_INPUTBOX"
Enabled=INTEGER|-1
Name=STRING|"Input Box"
Params=FOLDER
[Actions\Action1\Params]
_rt_variables_produced=STRING|"KK"
password=STRING|"0"
prompt=STRING|"变量"
stopifcancel=STRING|"1"
variable=STRING|"KK"
[Actions\Action2]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""ok"""
Params=FOLDER
[Actions\Action2\Params]
icon=STRING|"1"
msg0=STRING|"ok"
msgcount=STRING|"1"
playsound=STRING|"0"
showmessage=STRING|"1"
Re: Questions about "Actions:Input Box"
Posted: Fri Nov 07, 2025 2:43 pm
by Oleg
I've tried your task. It works.
I try to enter the string
Give me some strings when you get an error.
I don't know Chinese, so I use Google Translate.

- ChineseSymbols.png (55.75 KiB) Viewed 2635 times
I made small modification of your task
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|307868550
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DisableOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task1568"
Hide=INTEGER|0
ID=INTEGER|1122542263
LogOnAsUser=INTEGER|1
Name=STRING|"еЏй‡Џ"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RestrictRESTAPIAccess=INTEGER|0
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
StepPause=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
[Actions\Action1]
ActionID=STRING|"A_DIALOG_INPUTBOX"
Enabled=INTEGER|-1
Name=STRING|"Input Box"
Params=FOLDER
[Actions\Action1\Params]
_rt_variables_produced=STRING|"KK"
password=STRING|"0"
prompt=STRING|"еЏй‡Џ"
stopifcancel=STRING|"1"
variable=STRING|"KK"
[Actions\Action2]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log message (neutral) ""{KK}"""
Params=FOLDER
[Actions\Action2\Params]
expression=STRING|"3"
message=STRING|"{KK}"
mode=STRING|"0"
type=STRING|"3"
[Actions\Action3]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""{KK}"""
Params=FOLDER
[Actions\Action3\Params]
icon=STRING|"1"
msg0=STRING|"{KK}"
msg1=STRING|"ok"
msgcount=STRING|"2"
playsound=STRING|"0"
showmessage=STRING|"1"
Re: Questions about "Actions:Input Box"
Posted: Sat Nov 08, 2025 9:53 am
by robotask813
Please see my demo: I use your code to demonstrate
1. "Input Box", the number of Chinese characters entered (even: "variable", odd: "change")
I downloaded your source code without making any changes, as follows:

- 1.jpg (51.28 KiB) Viewed 2605 times
If you run it directly, the task can be started normally. Please see what I entered: “变量”
1. First demonstrate how it can be run normally: the input content is 2 Chinese characters: “变量”

- 2.jpg (25.54 KiB) Viewed 2605 times

- 3.jpg (36.85 KiB) Viewed 2605 times
Re: Questions about "Actions:Input Box"
Posted: Sat Nov 08, 2025 9:58 am
by Oleg
I'm sorry I don't see your images
Re: Questions about "Actions:Input Box"
Posted: Sat Nov 08, 2025 10:04 am
by robotask813
2. Now run the problematic method: the input content is 1 Chinese character: “变”

- 4.jpg (25.13 KiB) Viewed 2602 times

- 5.jpg (20.34 KiB) Viewed 2602 times
The action behind "input Box" did not run and the error "Aborted" occurred.
Re: Questions about "Actions:Input Box"
Posted: Sat Nov 08, 2025 10:08 am
by robotask813
3. Now run the problematic method: the input content of "Prompt String" is 1 Chinese character: “变”

- 6.jpg (53.08 KiB) Viewed 2599 times

- 7.jpg (20.18 KiB) Viewed 2599 times
Summary: "Input Box", "Prompt String" and Task name: The input content in these three positions is 2 Chinese characters (such as "variable"), which can run normally. If the input content is 1 Chinese character (such as "change"), problems will occur.
Huadan: You can try adding English characters after the Chinese characters when an error occurs, and you will make new discoveries.
Re: Questions about "Actions:Input Box"
Posted: Sat Nov 08, 2025 10:55 am
by Oleg
I made a several tests on the test machine
I set the language for non-Unicode programs to
Chinese (Traditional, Hong Kong SAR)
Control panel->Region->Administrative tab ->current language for non-Unicode programs (see screenshot)

- CharSet.png (213.97 KiB) Viewed 2594 times
If you have
checked the "Use Unicode UTF-8..." box, the task will work correctly with any strings.
If you
uncheck this box, the task will encounter the same problems you described.
In any case, we will investigate the problem. Thank you for the information.
Re: Questions about "Actions:Input Box"
Posted: Wed Nov 19, 2025 8:14 am
by Oleg
The problem is already fixed in version 10.6
Update your copy