Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Cadence > Re: Few questio...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 4192 of 4373
Post > Topic >>

Re: Few questions about skill, for experts

by wre <wre.groups@[EMAIL PROTECTED] > Aug 29, 2008 at 03:45 AM

On Aug 27, 3:59 am, bu-bu <bedo...@[EMAIL PROTECTED]
> wrote:

> ~ how to make a script resident in memory ?
> i have a script that i want to use every time. I would like to make it
> resident in memory, to avoid to click my buttons many times a day.


If you want to run a script every few seconds you could do this.

hiRegTimer( "yourfunction( \"your input\")" 10)

I use this in a showproperties function which shows the w and l of
the
current selected transistor or resistor for example. I implemented
a value input to start, stop or repeat the function. This enables
you to stop it from repeat mode. Sample code to get the idea:

procedure( wrShowProperties( @[EMAIL PROTECTED]
 value instance)

  let( ( all internal vars ...)

    wrText = nil
    unless( boundp( 'wrShowPropertiesValue)
      wrShowPropertiesValue = "start"
      wrShowPropertiesTextPrev = ""
    )

    if( null( value) && null( instance)
    then
      if( wrShowPropertiesValue == "repeat"
      then
        wrShowPropertiesValue = "stop"
      else
        wrShowPropertiesValue = "repeat"
      )
    )

    case( wrShowPropertiesValue
      ( "stop"
        wrText = "stopped"
        instancepointerPrev = nil
      )
      ( t
....
code to get interesting properties to show
....
        if( wrShowPropertiesValue == "repeat" && null( instance)
        then
          hiRegTimer( "wrShowProperties( \"repeat\")" 10)
        )
        if( wrShowPropertiesValue == "stop"
        then
          wrText = "stopped"
        )
      )
    ) ;; case
    if( wrDecodeBindKeysText == " Alt-q Alt-q"
    then
      wrTextStop =" (Alt-q to stop)"
    else
      wrTextStop =" (Alt-q Alt-q to stop)"
    )
    if( stringp( wrText) && wrText != wrShowPropertiesTextPrev &&
wrWriteModeTxt == wrWriteModeTxtPrev
    then
      wrWindowName( strcat( wrWriteModeTxt "wrShowProperties: " wrText
wrTextStop))
      wrShowPropertiesTextPrev = wrText
    )
  ) ;; let
;; test: wrShowProperties( )
)

see my blog for more details: http://relyveld.wordpress.com/

Greetings, William.
 




 5 Posts in Topic:
Few questions about skill, for experts
bu-bu <bedoune@[EMAIL   2008-08-26 18:59:54 
Re: Few questions about skill, for experts
Andrew Beckett <andrew  2008-08-29 10:41:02 
Re: Few questions about skill, for experts
wre <wre.groups@[EMAIL  2008-08-29 03:45:58 
Re: Few questions about skill, for experts
Andrew Beckett <andrew  2008-09-01 10:10:17 
Re: Few questions about skill, for experts
bu-bu <bedoune@[EMAIL   2008-09-01 01:55:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 20:01:07 CST 2008.