Questions about "Actions:Input Box"

Discuss RoboTask here
Post Reply
robotask813
Posts: 11
Joined: Wed Sep 03, 2025 2:53 am

Questions about "Actions:Input Box"

Post 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").
Oleg
Site Admin
Posts: 3256
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Questions about "Actions:Input Box"

Post 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.
Oleg Yershov
robotask813
Posts: 11
Joined: Wed Sep 03, 2025 2:53 am

Re: Questions about "Actions:Input Box"

Post 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"

Oleg
Site Admin
Posts: 3256
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Questions about "Actions:Input Box"

Post by Oleg »

I've tried your task. It works.
I try to enter the string

Code: Select all

對話框要求我輸入一長串文字。我不知道該輸入多少。我們再試一次。
Give me some strings when you get an error.
I don't know Chinese, so I use Google Translate.
ChineseSymbols.png
ChineseSymbols.png (55.75 KiB) Viewed 233 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"
Oleg Yershov
robotask813
Posts: 11
Joined: Wed Sep 03, 2025 2:53 am

Re: Questions about "Actions:Input Box"

Post 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
1.jpg (51.28 KiB) Viewed 203 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
2.jpg (25.54 KiB) Viewed 203 times
3.jpg
3.jpg (36.85 KiB) Viewed 203 times
Last edited by robotask813 on Sat Nov 08, 2025 10:03 am, edited 3 times in total.
Oleg
Site Admin
Posts: 3256
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Questions about "Actions:Input Box"

Post by Oleg »

I'm sorry I don't see your images
Oleg Yershov
robotask813
Posts: 11
Joined: Wed Sep 03, 2025 2:53 am

Re: Questions about "Actions:Input Box"

Post by robotask813 »

2. Now run the problematic method: the input content is 1 Chinese character: “变”
4.jpg
4.jpg (25.13 KiB) Viewed 200 times
5.jpg
5.jpg (20.34 KiB) Viewed 200 times
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"

Post by robotask813 »

3. Now run the problematic method: the input content of "Prompt String" is 1 Chinese character: “变”
6.jpg
6.jpg (53.08 KiB) Viewed 197 times
7.jpg
7.jpg (20.18 KiB) Viewed 197 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.
Oleg
Site Admin
Posts: 3256
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Questions about "Actions:Input Box"

Post 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
CharSet.png (213.97 KiB) Viewed 192 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.
Oleg Yershov
Post Reply