seawang的个人空间 https://blog.eetop.cn/dacong9999 [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

一个layout热键设置skill(转)

热度 1已有 3546 次阅读| 2014-3-7 11:13

;;  Date       		: 17 April 2013                        
;;  Revision 		: 1.1
;;  Author   		: Divya Akella
;;  Description 		: Skill procedures and Bindkeys for easier layout drawing

procedure( AllLayerToggle(num "x")
leiMouseSetEntryLayer(779)
   let(((AllList list(sprintf(nil "M%d" num) "drawing")) )    
    if( leIsLayerVisible(AllList) then
      leSetAllLayerVisible(nil)
    else 
      leSetAllLayerVisible(t)
    ) 

    hiRedraw()    
  )
 )
 hiSetBindKey("Layout" "<Key>0" "AllLayerToggle(1)")
 
procedure( MetalToggle(num "x")
leiMouseSetEntryLayer(779)
  let(((MetalList list(sprintf(nil "M%d" num) "drawing")) )     
    if( leIsLayerVisible(MetalList) then
      leSetLayerVisible(MetalList nil) 
    else 
      leSetLayerVisible(MetalList t)
    ) 
    hiRedraw()
  )
  let(((ViaList list(sprintf(nil "V%d" num) "drawing")) )
    if( leIsLayerVisible(ViaList) then
      leSetLayerVisible(ViaList nil) 
    else 
      leSetLayerVisible(ViaList t)
    ) 
    hiRedraw()
  )
)
 
procedure( RXToggle()
leiMouseSetEntryLayer(779)
    if( leIsLayerVisible(list("RX" "drawing")) then
      leSetLayerVisible(list("RX" "drawing") nil) 
    else 
      leSetLayerVisible(list("RX" "drawing") t)
    ) 
    hiRedraw()
    if( leIsLayerVisible(list("CA" "drawing")) then
      leSetLayerVisible(list("CA" "drawing") nil) 
    else 
      leSetLayerVisible(list("CA" "drawing") t)
    ) 
    hiRedraw()
)

procedure( PCToggle()
leiMouseSetEntryLayer(779)
    if( leIsLayerVisible(list("PC" "drawing")) then
      leSetLayerVisible(list("PC" "drawing") nil) 
    else 
      leSetLayerVisible(list("PC" "drawing") t)
    ) 
    hiRedraw()
    if( leIsLayerVisible(list("CA" "drawing")) then
      leSetLayerVisible(list("CA" "drawing") nil) 
    else 
      leSetLayerVisible(list("CA" "drawing") t)
    ) 
    hiRedraw()
)

procedure( NWToggle()
leiMouseSetEntryLayer(779)
    if( leIsLayerVisible(list("NW" "drawing")) then
      leSetLayerVisible(list("NW" "drawing") nil) 
    else 
      leSetLayerVisible(list("NW" "drawing") t)
    ) 
    hiRedraw()
)

 hiSetBindKey("Layout" "<Key>1" "MetalToggle(1)") 
 hiSetBindKey("Layout" "<Key>2" "MetalToggle(2)") 
 hiSetBindKey("Layout" "<Key>3" "MetalToggle(3)") 
 hiSetBindKey("Layout" "<Key>4" "MetalToggle(4)") 
 hiSetBindKey("Layout" "<Key>5" "MetalToggle(5)") 
 hiSetBindKey("Layout" "<Key>6" "MetalToggle(6)") 
 hiSetBindKey("Layout" "Shift<Key>1" "RXToggle()") 
 hiSetBindKey("Layout" "Shift<Key>2" "PCToggle()") 
 hiSetBindKey("Layout" "Shift<Key>3" "NWToggle()") 


procedure( MetalSelect(num "x")
  let(((MetalList list(sprintf(nil "M%d" num) "drawing")) ) 
   	leSetEntryLayer(MetalList) 
    hiRedraw()
  )
)
 hiSetBindKey("Layout" "Ctrl<Key>1" "MetalSelect(1)") 
 hiSetBindKey("Layout" "Ctrl<Key>2" "MetalSelect(2)") 
 hiSetBindKey("Layout" "Ctrl<Key>3" "MetalSelect(3)") 
 hiSetBindKey("Layout" "Ctrl<Key>4" "MetalSelect(4)") 
 hiSetBindKey("Layout" "Ctrl<Key>5" "MetalSelect(5)") 
 hiSetBindKey("Layout" "Ctrl<Key>6" "MetalSelect(6)") 
 hiSetBindKey("Layout" "Ctrl<Key>7" "leiMouseSetEntryLayer(0)") 
 hiSetBindKey("Layout" "Ctrl<Key>8" "leiMouseSetEntryLayer(32)") 
 hiSetBindKey("Layout" "Ctrl<Key>9" "leiMouseSetEntryLayer(16)") 

点赞

发表评论 评论 (4 个评论)

回复 t多多洛 2016-6-22 17:00
感谢:loveliness: :loveliness: :loveliness:
回复 富兰克尹 2016-11-19 16:16
好东西,感谢分享
回复 Ouyang_Dadi 2020-6-11 11:46
多谢前辈分享

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 1

    关注
  • 36

    粉丝
  • 17

    好友
  • 145

    获赞
  • 192

    评论
  • 11388

    访问数
关闭

站长推荐 上一条 /2 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-25 06:00 , Processed in 0.017176 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部