• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Drawing pressed key on Virtuoso Window

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 142
  • Views 10244
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Drawing pressed key on Virtuoso Window

RicardoGV1
RicardoGV1 over 3 years ago

Is there a way of drawing on the window?

There are some solutions as the attached link which draws inside the cell, but I need to draw even if the user changes to schematic editor or another window.

 

and for the pressed key, also read an answer which said there was no code for that, but was a while ago. 




Update: I used autoHotKey on windows
5873.ShowKeyPressed.zip

Drawing logo in schematic view

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Whilst I can think of ways of adapting the code in the attached link to draw using "hilight sets" (geCreateHilightSet etc) which would then not create anything in the database itself, it would be pretty cumbersome to do this. You'd have to modify every bindkey to call another function, probably have a timer to remove the hilight and so on. I don't think it's a particularly sensible thing to do.

    Instead, try searching on google for "screenkey". This is a Linux utility (available for many distributions or can be built from source - it's on GitHub) which can display key presses in a pretty configurable way. I've not tried it myself but there are a few videos showing it in use - this seems a far better way of doing it rather than re-implementing this within Virtuoso.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • RicardoGV1
    RicardoGV1 over 3 years ago in reply to Andrew Beckett

    Hi Andrew,

    As the "update" shows After your help I was working with autohotkey, but because company policies we are not using AutoHotKey or screenkey anymore.
    So I think I'm taking the other option of modifying every bindkey. 

    I found this thing which writes on the screen. Just have two concerns. I don't want to use those functions as the CIW shows in the attached video, Is there a way to access those script lines or is hidden by cadence?

    and for the bindkeys, How do I save the previous bindkey function to rewrite it after the timer ends?


    Play this video




    Regards
    R. Gómez

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to RicardoGV1

    I have no idea what that video is supposed to be showing me, but you can retrieve the current bindkey by using hiGetBindKey.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to RicardoGV1

    I have no idea what that video is supposed to be showing me, but you can retrieve the current bindkey by using hiGetBindKey.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Children
  • RicardoGV1
    RicardoGV1 over 3 years ago in reply to Andrew Beckett

    I'm sorry, I was trying to show that using the short locator functions _lceHiShortLocatorAddVirtualLabel1CB()  and lceHiShortLocatorForm->tabs->page1->netNameCombo1->value="text"  I'm able to drawn the text on screen.

    The thing is that this have some disadvantages If I call those functions net selector tool is activated,  then I must exit function after drawing every key and that I can't edit the way is displayed or placed. That's why I was asking if there is a way of accessing those functions to copy the functionality.

    *also I'm looking forward to modify those codes because I'll use that functionality to create others scripts.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to RicardoGV1
    RicardoGV1 said:
    That's why I was asking if there is a way of accessing those functions to copy the functionality.

    We do not provide the source code of our commands. Some of them are in C++ and some are in SKILL, but either way they are not something we provide for customers to copy and modify.

    Regards,

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information