Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Scripting & Automation
  New Posts New Posts RSS Feed - Script to disable file close
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedScript to disable file close

 Post Reply Post Reply
Author
Message
LiveBlues View Drop Down
Groupie
Groupie


Joined: February 28 2005
Status: Offline
Points: 93
Post Options Post Options   Thanks (0) Thanks(0)   Quote LiveBlues Quote  Post ReplyReply Direct Link To This Post Topic: Script to disable file close
    Posted: February 28 2005 at 8:02am
Peter,

I was just at Spectrum and while attending your class, you showed a small program that you had to disable the file close option. I wrote it down, but I can't seen to get it to work. Here is what I put in my program.

PRINT ESC:STX:'Pinitsession.menu (file_close) enabled = false':CR

When I run the program I get an error dialog that tells me that I can't call a property.

Any ideas what I am doing wrong?

Thanks.
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: March 01 2005 at 5:26am
Hi -

The syntax is a little off. The correct syntax is:

PRINT ESC:STX:'Pinitsession.menu(file_close).enabled = false':CR:


Thanks,

Pete
Back to Top
LiveBlues View Drop Down
Groupie
Groupie


Joined: February 28 2005
Status: Offline
Points: 93
Post Options Post Options   Thanks (0) Thanks(0)   Quote LiveBlues Quote  Post ReplyReply Direct Link To This Post Posted: March 01 2005 at 5:31am
Thank you! I knew that I shouldn't have sat in the back.

Thanks again for such a great product.
Back to Top
LiveBlues View Drop Down
Groupie
Groupie


Joined: February 28 2005
Status: Offline
Points: 93
Post Options Post Options   Thanks (0) Thanks(0)   Quote LiveBlues Quote  Post ReplyReply Direct Link To This Post Posted: March 01 2005 at 5:43am
That worked great Pete. I was also able to disable the exit function on the file menu as well. One more question though. Can I also disable the ability to exit the program using the X in the upper right hand corner?
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: March 01 2005 at 8:54am
Here are links to other threads that address similar issues with some examples.

Thanks,

Pete
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.