Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Login ID and Macro trigger
#1
Is there a way I can disable all my macros or just some by using the login id as the determination? i would like my menus etc not to be popping up all over the place bugging my wife.

Thanks.
#2
Maybe better would be to use different macro files. Disabling/enabling also is possible. Place this code in function init2 (if init2 function does not exist, create):

Code:
Copy      Help
str user
GetUserComputer user
;for older QM versions, instead of GetUserComputer use this:
;int nn=257
;if(!GetUserName(user.all(nn) &nn)) ret
;user.fix(nn-1)


sel user
,case "User 1"
,dis+ "macro or folder" 2 ;;disable
,case "User 2"
,dis- "macro or folder" 2 ;;enable
,;...
#3
I forgot to mention that we do alot of "switch user" rather than the "logoff." Is there a way to trigger this when the user "returns" to an already logged in session?

Thanks.
#4
nah, that's ok.
I can code up a macro that will do it for me me in a quick and dirty way and then....hey wait a minute...


Code:
Copy      Help
disable my macros
enable her macros
'Wl
Code:
Copy      Help
disable her macros
enable mine macros
'Wl

drop this on the start menu instead of the logoff option and "you got yourself a witches brew."! Big Grin
#5
I deleted my previous post because it was not true. You don't have to restart QM, because then two independent QM instances are running. However, I never tested whether it is safe. And something does not work, for example, running macros from other computers (net).


Forum Jump:


Users browsing this thread: 1 Guest(s)