Author |
|
cruelkix Groupie
Joined: October 08 2008 Location: United States
Online Status: Offline Posts: 47
|
Posted: May 02 2009 at 08:51 | IP Logged
|
|
|
I cant seem to find what the sytax is for an input box?
Im in a macro and I change the "Command" drop down to input box and then I place the "ID" drop down to No TTS, but what in the world do I put in the "Send Keys/TTS/Dim/Formula" box? I've gottent he input box to come up but I can seem to change the text nor pull the inputted value into a variable.
Thanks for the help!
|
Back to Top |
|
|
grif091 Super User
Joined: March 26 2008 Location: United States
Online Status: Offline Posts: 1357
|
Posted: May 02 2009 at 11:43 | IP Logged
|
|
|
Part of the answer. The Send Keys is a quoted string ie. "INPUT BOX TEXT" that displays below the Input Box window title. If you select TTS, PH will speak those words when the Input Box is displayed. Have not figured out where the inputed data goes yet. It is not in any of the tempx variables. The typed data appears the next time the Input Box is displayed so the data must be stored across a macro execution.
__________________ Lee G
|
Back to Top |
|
|
cruelkix Groupie
Joined: October 08 2008 Location: United States
Online Status: Offline Posts: 47
|
Posted: May 02 2009 at 11:47 | IP Logged
|
|
|
grif091 wrote:
Part of the answer. The Send Keys is a quoted string ie. "INPUT BOX TEXT" that displays below the Input Box window title. If you select TTS, PH will speak those words when the Input Box is displayed. Have not figured out where the inputed data goes yet. It is not in any of the tempx variables. The typed data appears the next time the Input Box is displayed so the data must be stored across a macro execution. |
|
|
Interesting. I'm happy to know it wasn't an obvious answer at least! So when you click OK it must be running some code to store the Value inputted into a variable somewhere. The question is where. Does it dump it into a [LOCAL#] by chance?
|
Back to Top |
|
|
grif091 Super User
Joined: March 26 2008 Location: United States
Online Status: Offline Posts: 1357
|
Posted: May 02 2009 at 13:29 | IP Logged
|
|
|
The entered data is in [INPUTRET].
__________________ Lee G
|
Back to Top |
|
|
cruelkix Groupie
Joined: October 08 2008 Location: United States
Online Status: Offline Posts: 47
|
Posted: May 02 2009 at 19:46 | IP Logged
|
|
|
grif091 wrote:
The entered data is in [INPUTRET]. |
|
|
Sweet. So how did you figure that one out?
Is that a global or a local variable?
Edited by cruelkix - May 02 2009 at 19:47
|
Back to Top |
|
|
grif091 Super User
Joined: March 26 2008 Location: United States
Online Status: Offline Posts: 1357
|
Posted: May 02 2009 at 20:29 | IP Logged
|
|
|
I would like to say I have great intuitive insight. But, I searched the forum for "Input Box" and about the fifth or sixth hit had a macro example that used the Input Box and showed where to access the keyed data.
[INPUTRET] is a system variable like [DUSK], [DAWN], [SUNRISE], [SUNSET] (not sure all of those are real) that PH has predefined.
__________________ Lee G
|
Back to Top |
|
|
cruelkix Groupie
Joined: October 08 2008 Location: United States
Online Status: Offline Posts: 47
|
Posted: May 02 2009 at 20:38 | IP Logged
|
|
|
grif091 wrote:
I would like to say I have great intuitive insight. But, I searched the forum for "Input Box" and about the fifth or sixth hit had a macro example that used the Input Box and showed where to access the keyed data.
[INPUTRET] is a system variable like [DUSK], [DAWN], [SUNRISE], [SUNSET] (not sure all of those are real) that PH has predefined.
|
|
|
I did the same search and had 0 luck after reading through a few of them..... If it was found by searching I feel bad for making you look.
System Variable.... good stuff, thanks for the info.
|
Back to Top |
|
|