Can anyone help me understand the below question:
Differentiate Script and macro ? and
Can I link macro from script?
#Rumba
Can anyone help me understand the below question:
Differentiate Script and macro ? and
Can I link macro from script?
Can anyone help me understand the below question:
Differentiate Script and macro ? and
Can I link macro from script?
Hi,
MACRO:
A Macro record a series of actions, such as keystrokes and commands. Once you record a macro, you can play it back to automate routine tasks.
End users use macro very often , it's easy and no extra skills are needed.
SCRIPTS:
A script is a program or sequence of instructions that is interpreted or carried out by another program.
You can create scripts to do almost anything you can do with RUMBA. The coding language is a type of VBA (Visual Basic for Application)
The Rumba Script Player (VSP.exe) is part of the Script Engine, a separate application provided alongside Rumba to create and modify Rumba Scripts.
The cool thing about the script engine you can also record a series of action same as with the Macro but the Script engine will generate the code for you.
There is no build in mechanism to link a macro from a script.
/ae
Can anyone help me understand the below question:
Differentiate Script and macro ? and
Can I link macro from script?
Hi Naveen,
in terms of running launching a macro from Rumba script, André is correct, there is no built-in API method to Run a macro.
However, it is be possible to map the macro to a key sequence in the keyboard map and then from your script to use sendkeys to send the key sequence to the active window and trigger the execution of the macro.
Note: The sendkeys API method with send the key sequence to the window frame which has focus, so you need to ensure you are sending to the correct windows. Under most circumstances the AppActivate API method in the script editor will suffice.
If you need to launch a script from your macro then this is possible also, using the RunApplication command to launch VSP.exe with the relevant command line parameters.
Note: The RunApplication command in the macro editor simply shells the command which is mapped, so if will not pause macro execution, if you need your macro to wait for the script to run and exit, then you will need to chain the execution,
i.e. break your macro into several macros and sequence the execution of your macros and scripts So your macro1 would run and then launch script1 and exit, script1 would run and then launch macro2 and exit, macro2 would run and then launch script2 and exit and so on.
Naturally it's not idea, but it is doable !!
Tom
Can anyone help me understand the below question:
Differentiate Script and macro ? and
Can I link macro from script?
Hi Naveen,
in terms of running launching a macro from Rumba script, André is correct, there is no built-in API method to Run a macro.
However, it is be possible to map the macro to a key sequence in the keyboard map and then from your script to use sendkeys to send the key sequence to the active window and trigger the execution of the macro.
Note: The sendkeys API method with send the key sequence to the window frame which has focus, so you need to ensure you are sending to the correct windows. Under most circumstances the AppActivate API method in the script editor will suffice.
If you need to launch a script from your macro then this is possible also, using the RunApplication command to launch VSP.exe with the relevant command line parameters.
Note: The RunApplication command in the macro editor simply shells the command which is mapped, so if will not pause macro execution, if you need your macro to wait for the script to run and exit, then you will need to chain the execution,
i.e. break your macro into several macros and sequence the execution of your macros and scripts So your macro1 would run and then launch script1 and exit, script1 would run and then launch macro2 and exit, macro2 would run and then launch script2 and exit and so on.
Naturally it's not idea, but it is doable !!
Tom
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.