Dear respected tdl experts and members, i need a help in this code. i want to copy the value of clip board which is copied by command ctrl+c and use the clip board value in counter. example i copied number 1 by pressing ctrl+c. now i want to add this value 1 + 1. next if i press f3 key last total+1 i.e 2+1 next if i press f3 key last total+1 i.e 3+1 so it goes on like this. [#Menu :Gate way of Tally] Add :Button : F3 [Button : F3] Title : "F3" Key :F3 Action :Call:Trigger6 [FUNCTION:trigger6] [SYSTEM : FORMULA] P1 : counter value + 1 Variable : counter : Number 01: SET : Counter : "copy clip board value" ctrl+c value here 02: Trigger key :ctrl+v,p1,ctrl+c
Try this Code: [#Menu :Gate way of Tally] Button: F3 [Button : F3] Title : "F3~~~" + $$String:##NewValue Keys:F5 Action:Set:NewValue: $$trigger6:##NewValue [FUNCTION:trigger6] Parameter:P1:Number Return:Number 01: SET : P1 : ##P1 + 1 10:Return:##P1 [Variable:NewValue] Type:Number [System:Variable] NewValue:0