Copy Ledger Name to Clipboard

Discussion in 'Free Source Codes' started by mehul2cyahoo, Jun 25, 2019.

    
  1. mehul2cyahoo

    mehul2cyahoo New Member


    I am trying to copy ledger name to clipboard. Can someone tell me how to pass values to clipboard?

    [#Form: Ledger Vouchers]
    Add : Button : LedgerNameCopy

    [Button : LedgerNameCopy]
    Key : Alt + F
    Action : SET VALUE : @@PartyName
    Action : Field Copy

    [System: Formula]
    PartyName : $$LocaleString:($Name:Ledger:##LedgerName)
     


  2. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Try

    LOG : @@PartyName
     
    Last edited: Jun 27, 2019


  3. mehul2cyahoo

    mehul2cyahoo New Member



  4. mehul2cyahoo

    mehul2cyahoo New Member


    How to pass this value to windows clipboard so that cltr+v pastes ledger name? Output is shown in calculator window


    [#Form: Ledger Vouchers]
    Add : Button : LedgerNameCopy
    [Button : LedgerNameCopy]
    Key : Alt + F
    Action : Call : LNCFunc

    [System: Formula]
    PartyName : $$LocaleString:($Name:Ledger:##LedgerName)

    [Function : LNCFunc]
    10 : LOG : @@PartyName
     


  5. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Key combination can help you in a Simpler way.
     


  6. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Enjoy This Key Combination .............
    Dil Se... "Desi" :)

    Code:
    [#Form: Ledger Vouchers]
    Add : Button : LedgerNameCopy
    [Button : LedgerNameCopy]
    Key : Alt + F
    Action : Call : LNCFunc
    
    [System: Formula]
    PartyName : $$LocaleString:($Name:Ledger:##LedgerName)
    
    [Function : LNCFunc]
    10 : LOG : @@PartyName
    20 : Calculator
    30 : Trigger Key : UP,Ctrl+Alt+C,Esc,Esc
     
    Last edited: Jun 27, 2019


  7. mehul2cyahoo

    mehul2cyahoo New Member


    Thank you, this gets it done.

    A small improvement to above can be made to retain values in calculator by using
    Code:
     30 : Trigger Key : UP,Ctrl+Alt+C,Down,Esc 
    But, still not able to figure out how to directly pass values to OS clipboard. I think there must be a built in method. Will keep looking and update.

    Thanks for helping me in improving my knowledge.
     


Share This Page