Invoke Quicklaunch via popupmenu?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
ari
Junior Coder
Posts: 23
Joined: Tue Jul 15, 2014 4:12 pm

Invoke Quicklaunch via popupmenu?

Post by ari » Wed Jul 23, 2014 8:23 pm

Is there a way to invoke the actual quicklaunch under my mouse pointer, like the popupmenu command? Also, can quicklaunch be opened via a hotkey?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Invoke Quicklaunch via popupmenu?

Post by Marcus Tettmar » Wed Jul 23, 2014 9:32 pm

Not sure what you mean. Can you clarify?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

ari
Junior Coder
Posts: 23
Joined: Tue Jul 15, 2014 4:12 pm

Re: Invoke Quicklaunch via popupmenu?

Post by ari » Thu Jul 24, 2014 2:24 pm

Sure, is there a way to see the quicklaunch pop-up menu in other areas of the screen, perhaps triggered by a hotkey or some other command. Basically like the popupmenu command, except with the quicklaunch content. Like a quicklaunch plugin for the popupmenu command.

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Invoke Quicklaunch via popupmenu?

Post by JRL » Thu Jul 24, 2014 10:27 pm

Something like this? This script views the macros12.dat file and puts every script that has the quicklaunch flag set to "Y" in a list. It then presents that list in a dialog. Double click on an item in the list and it should execute the script.

I'm pretty sure this will not work correctly if you have your scripts in a directory structure or somewhere other than the default script directory so let us know if this doesn't work for you.

Code: Select all

ReadFile>%script_dir%\macros12.dat,vData
Separate>vData,crlf,vLine

Let>vList=
Let>kk=0
Repeat>kk
  Add>kk,1
  Let>value=vLine_%kk%
  Separate>value,:,item
  If>item_24=Y
    Concat>vList,%item_1%%crlf%
  EndIf
Until>kk=vLine_Count


Dialog>Dialog1
object Dialog1: TForm
  Caption = 'QuickLaunch'
  ClientHeight = 526
  ClientWidth = 368
  Position = poScreenCenter
  object MSListBox1: tMSListBox
    Left = 14
    Top = 14
    Width = 339
    Height = 499
    Anchors = [akLeft, akTop, akRight]
  end
end
EndDialog>Dialog1

SetDialogProperty>Dialog1,MSListBox1,Text,vList
AddDialogHandler>Dialog1,MSListBox1,OnDblClick,RunScript

Show>Dialog1,

SRT>RunScript
  GetDialogProperty>Dialog1,MSListBox1,SelectedItems,script
  ExecuteFile>%script_dir%\%script%.scp
  Exit>0
END>RunScript

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts