forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Menu output call

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Tue Aug 19, 2008 5:41 am    Post subject: Menu output call Reply with quote

How to call this...from DIALOG POPUP

CD Eject && Close [5s]


This DO NOT WORK...
:CD Eject && Close [5s]MENU
Back to top
View user's profile Send private message Send e-mail
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Tue Aug 19, 2008 9:35 am    Post subject: Reply with quote

Hi Smile

Maybe this work if I understand what you think

Dialog Popup,cd Eject &&Close[5s]

IHope to be usefull
Back to top
View user's profile Send private message Send e-mail
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Tue Aug 19, 2008 10:18 am    Post subject: Reply with quote

Not that...

Problems is when i try to call this with MENU...LOOP fails to run :CD Eject && Close [5s]MENU
Back to top
View user's profile Send private message Send e-mail
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Tue Aug 19, 2008 10:54 am    Post subject: Reply with quote

Ok,
I writed this sample and work

Code:
DIALOG CREATE,Test Dialog,-1,0,240,160
  DIALOG ADD,BUTTON,BUTTON1,49,84,,,BUTTON1
  DIALOG SHOW
  :loop
  Wait Event
  %e = @Event()
  Goto %e
:Button1Button
  Dialog Popup,CD Eject && Close [5s]
  Goto Loop
:CD Eject && Close [5s]MENU
Info Work!!

:close
  stop


Is like not work with you?
Back to top
View user's profile Send private message Send e-mail
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Sat Aug 23, 2008 7:57 am    Post subject: Reply with quote

Nope, your example does not work here. The label needs to have 2 spaces and no ampersand(s) like this:

Code:
:CD Eject  Close [5s]MENU


In this test code, clicking on the popup menu for buttons 2, 3 and 4 all result in the program jumping to button 2's MENU label.

Code:
  DIALOG CREATE,Popup Menu Test,-1,0,205,116
  DIALOG ADD,BUTTON,BUTTON1,29,34,64,24,BUTTON1
  DIALOG ADD,BUTTON,BUTTON2,29,106,64,24,BUTTON2
  DIALOG ADD,BUTTON,BUTTON3,61,34,64,24,BUTTON3
  DIALOG ADD,BUTTON,BUTTON4,61,106,64,24,BUTTON4
  DIALOG SHOW

:loop
  Wait Event
  %e = @Event()
  Goto %e

:Button1Button
  Dialog Popup,CD Eject and Close [5s]
  Goto Loop
:CD Eject and Close [5s]MENU
  Info "1 Worked!! CD Eject and Close [5s]MENU"
  Goto Loop

:Button2Button
  Dialog Popup,CD Eject "&" Close [5s]
  Goto Loop
:CD Eject  Close [5s]MENU
  Info "2 Worked!! CD Eject  Close [5s]MENU" @cr()@cr()"popup 2, 3 and 4 end up here"
  Goto Loop

:Button3Button
  Dialog Popup,CD Eject & Close [5s]
  Goto Loop
:CD Eject & Close [5s]MENU
  Info "3 Worked!! CD Eject & Close [5s]MENU" @cr()@cr()we never see this
  Goto Loop

:Button4Button
  Dialog Popup,CD Eject && Close [5s]
  Goto Loop
:CD Eject && Close [5s]MENU
  Info "4 Worked!! CD Eject && Close [5s]MENU" @cr()@cr()we never see this
  Goto Loop

:close
  stop


So we could change the code to this:

Code:
  DIALOG CREATE,Popup Menu Test,-1,0,205,116
  DIALOG ADD,BUTTON,BUTTON1,29,34,64,24,BUTTON1
  DIALOG ADD,BUTTON,BUTTON2,29,106,64,24,BUTTON2
  DIALOG ADD,BUTTON,BUTTON3,61,34,64,24,BUTTON3
  DIALOG ADD,BUTTON,BUTTON4,61,106,64,24,BUTTON4
  DIALOG SHOW

:loop
  Wait Event
  %e = @Event()
  Goto %e

:Button1Button
  Dialog Popup,CD Eject and Close [5s]
  Goto Loop
:CD Eject and Close [5s]MENU
  Info "1 Worked!! CD Eject and Close [5s]MENU"
  Goto Loop

:Button2Button
  Dialog Popup,CD Eject "&" Close [5s]
  Goto Loop
:CD Eject  Close [5s]MENU
  Info "2, 3 or 4 Worked!! CD Eject  Close [5s]MENU"
  Goto Loop

:Button3Button
  Dialog Popup,CD Eject & Close [5s]
  Goto Loop

:Button4Button
  Dialog Popup,CD Eject && Close [5s]
  Goto Loop

:close
  stop

_________________
cheers

Dave
Back to top
View user's profile Send private message
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Sun Aug 24, 2008 5:38 pm    Post subject: Reply with quote

Thanks DaveŽ, 2 empty spaces worked Smile

http://www.softpedia.com/get/System/System-Miscellaneous/Pristy-Utils.shtml

Pristy Utils Version 2009 is in works...come get some Wink
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group