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").
Questions about "Actions:Input Box"
Re: Questions about "Actions:Input Box"
Variable names are case-insensitive,1. Assign Entered Value to Variable : Variables written will automatically become uppercase
so the names MyVar, myvar, and MYVAR are all the same name.
Could you give me some examples of Chinese strings that you want to use? I want to check it myself.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").
Oleg Yershov
-
robotask813
- Posts: 11
- Joined: Wed Sep 03, 2025 2:53 am
Re: Questions about "Actions:Input Box"
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.
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"
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. I made small modification of your task
I try to enter the string
Code: Select all
對話框要求我輸入一長串文字。我不知道該輸入多少。我們再試一次。I don't know Chinese, so I use Google Translate. 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"
Oleg Yershov
-
robotask813
- Posts: 11
- Joined: Wed Sep 03, 2025 2:53 am
Re: Questions about "Actions:Input Box"
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: 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: “变量”
1. "Input Box", the number of Chinese characters entered (even: "variable", odd: "change")
I downloaded your source code without making any changes, as follows: 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: “变量”
Last edited by robotask813 on Sat Nov 08, 2025 10:03 am, edited 3 times in total.
-
robotask813
- Posts: 11
- Joined: Wed Sep 03, 2025 2:53 am
Re: Questions about "Actions:Input Box"
2. Now run the problematic method: the input content is 1 Chinese character: “变”
The action behind "input Box" did not run and the error "Aborted" occurred.
-
robotask813
- Posts: 11
- Joined: Wed Sep 03, 2025 2:53 am
Re: Questions about "Actions:Input Box"
3. Now run the problematic method: the input content of "Prompt String" is 1 Chinese character: “变”
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.
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"
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)
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.
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)
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.
Oleg Yershov