Help--
How can I write a macro to copy the field of the current cursor position and save this as a variable for me to use later???
VB Script ReadLine()
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Rough outline, bad syntax:
You now have a %variable% that can be used later in the same macro.
It can be passed as a variable to another macro
It can be written to an INI file for "use later"
It can be made into an environment variable (for this session only).
It all depends on what you mean by "use later".
---------------------------
If already on the field then you may be able to skip the first three steps. Make the macro into a hotkey, and you can use the hotkey once you are in the field.
Code: Select all
WaitWindowOpen>WindowName*
SetFocus>WindowName*
Press TAB * n to move to field to be copied
Select text to be copied
Press ALT
Send>c
Release ALT
GetClipBoard>variable
It can be passed as a variable to another macro
It can be written to an INI file for "use later"
It can be made into an environment variable (for this session only).
It all depends on what you mean by "use later".
---------------------------
If already on the field then you may be able to skip the first three steps. Make the macro into a hotkey, and you can use the hotkey once you are in the field.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!