Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QM Virgin.
#3
Question:
How to use the net function to run a macro on a guest virtual PC (Virtual Box or Vmware Player) from a macro that runs on host PC.

1. On guest PC: Install Quick Macros (QM).

2. On guest PC: In QM Options -> Network check the first check box and type a password next to it. Also copy the computer name that is displayed below; will need it in step 4. Click OK or Apply. Allow Quick Macros in the Windows Firewall dialog.

3. On guest PC: Create a macro for testing.
Macro Macro on guest PC
Code:
Copy      Help
out "success"

4. On host PC: Create this macro for testing.
Macro Macro on host PC
Code:
Copy      Help
int result=net("GUEST-NAME" "PASSWORD" "Macro on guest PC")
if(result) end F"<help>net</help> failed, result={result}"
Here GUEST-NAME is guest PC name (you can see/copy it in step 2).
Here PASSWORD is the password from step 2.
And the third argument is the macro name on guest PC.

5. Run this macro on host PC. Look in QM output on guest PC, it should display "success".

If error:
Make sure that you can access the guest PC from host PC in Windows Explorer -> Network. For example I can access it when using Vmware Player, but cannot access when using Virtual Box.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)