Author Topic: menuload/unload help please  (Read 3383 times)

0 Members and 1 Guest are viewing this topic.

Pad

  • Bull Frog
  • Posts: 342
menuload/unload help please
« on: May 05, 2015, 04:04:40 PM »
Hi

I have some software that runs within autocad.  It is dongle protected. Everything works fine when its dongle is plugged in, but it is not possible to run autocad without the dongle.  A screen pops up warning of the absent dongle and autocad locks up.  If the menu for the software is unloaded then autocad will start fine. So I am trying to make a lisp that will unload the menu if loaded and vice versa.  If all works to plan then I can run the lisp before shutting down autocad to remove the menu and run the lisp when I have he dongle and want to make use of it.

Here is what I have, but its not working:

Code: [Select]
(defun C:ktfa (/)
(if (null ((menugroup "KEY")))
(command "menuload" "C:\Users\Metrix_PB\AppData\Roaming\Key\support\key.cuix")  ; i have also tried this with \\
(command "_MENUUNLOAD" "KEY")
)
(princ)
)

Any help will be appreciated.
Thanks

Pad

  • Bull Frog
  • Posts: 342
Re: menuload/unload help please
« Reply #1 on: May 05, 2015, 04:09:46 PM »
Actually scrap that, the menu loaded or unloaded doesnt make any difference, I thought it did.
I'll have to find some other way to stop the software loading.
P

stusic

  • Guest
Re: menuload/unload help please
« Reply #2 on: May 05, 2015, 04:15:29 PM »
Try looking for any support apps that load with it, like arx files...

Pad

  • Bull Frog
  • Posts: 342
Re: menuload/unload help please
« Reply #3 on: May 05, 2015, 04:31:37 PM »
Hi Stusic,  I few arxs get loaded, I'll look into that.  Thanks

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: menuload/unload help please
« Reply #4 on: May 05, 2015, 06:34:38 PM »
Will it work if you create a different shortcut for when you want to work without the dongle?

Have the 2nd shortcut point to a profile that does not load the menu using.
CAD Tech

Pad

  • Bull Frog
  • Posts: 342
Re: menuload/unload help please
« Reply #5 on: May 05, 2015, 07:23:39 PM »
Yeah, that could work.  I'll give it a go. Thanks.

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: menuload/unload help please
« Reply #6 on: May 05, 2015, 07:47:13 PM »
Do you know about the profile switch in the shortcut target?
CAD Tech

Pad

  • Bull Frog
  • Posts: 342
Re: menuload/unload help please
« Reply #7 on: May 06, 2015, 05:18:52 AM »
Yeah I should be able to figure that out.
Thanks.

Sorry, Ive just realised I posted this thread in the wrong forum..

ChrisCarlson

  • Guest
Re: menuload/unload help please
« Reply #8 on: May 07, 2015, 04:13:37 PM »
On a side note, I'm curious what "dongle protected" menus are?

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: menuload/unload help please
« Reply #9 on: May 08, 2015, 10:07:58 AM »
I think that means the supporting program uses a local hardware lock.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}