Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple input box
#1
Basically expand the functionality of the input box so i can input many values i need predetermined before the macro starts. Each text would get its unique variable. Now i have to fill 5 input boxes in a row ( one opens i type something- it closes, another one opens and so on). So it would be nice to just have one input box with empty 5 lines where i can type. For example:

"line 1- your name" - i type my name, str a
"line 2 - what you need" - item i need str b
"line3 - how much" - how much i need int c
...
than in the macro i tell it to save all the information into *.txt file's, so macro can use it later.ect

All in one input box.

Just an idea Smile
Thank you
#2
After some digging i figured out that i may be able to achieve similar functionality using Dialogs.
So i'm going give that a try.
Need to learn faster :mrgreen:
#3
Success!! I made it with the dialog, this is so great Big Grin Did it like this it is so easy and it works :
Code:
Copy      Help
\Dialog_Editor


BEGIN DIALOG
0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
1 Button 0x54030001 0x4 120 116 48 14 "OK"
2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
3 Edit 0x54030080 0x200 102 12 96 14 ""
4 Edit 0x54032000 0x200 102 34 32 14 ""
5 Edit 0x54032000 0x200 102 54 32 14 ""
6 Edit 0x54032000 0x200 102 74 32 14 ""
7 Static 0x54000000 0x0 40 14 48 12 "Name"
8 Static 0x54000000 0x0 40 34 48 12 "Time"
9 Static 0x54000000 0x0 40 56 48 12 "Quantity"
10 Static 0x54000000 0x0 40 74 48 12 "Number of items"
END DIALOG
DIALOG EDITOR: "" 0x2030307 "" "" ""

str controls = "3 4 5 6"
str e3 e4 e5 e6
if(!ShowDialog("Upitnik2" 0 &controls)) ret

_s=e3; _s.setfile("C:\abc\item.txt")
_s=e4; _s.setfile("C:\abc\time.txt")
_s=e5; _s.setfile("C:\abc\quantity.txt")
_s=e6; _s.setfile("C:\abc\number.txt")


Forum Jump:


Users browsing this thread: 1 Guest(s)