Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
run a command on inactive user.
#2
You can use file trigger. The trigger string of the macro (macro1) can be:

$f 0x18 "$Common Start Menu$\Programs\Quick Macros 2" "Help.lnk"

(paste it in the edit field on the QM main toolbar)

To launch the macro from other (or same) user, run this macro (macro2):

Code:
Copy      Help
SetAttr "$Common Start Menu$\Programs\Quick Macros 2\Help.lnk" FILE_ATTRIBUTE_ARCHIVE 1

macro2 modifies file attributes, and then runs macro1.

When you run macro2, macro1 runs in current user too, unless you use other macro list file. To avoid it, macro1 can check user name:

Code:
Copy      Help
str s
GetUserComputer s
if(s~"User"=0) ret ;;exit if current user is not "User"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)