查看单个帖子
旧 2009-04-13, 01:55 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】repeat last command macro

"repeat last command" macro
let me start by saying i have plenty of experience with excel vba but none with solidworks vba.
i am looking to add a button to the 'shortcut' toolbar that will repeat the last command. i currently have 'r' as my keyboard shortcut, but want to be able to click a button instead.
cheers.
the quick'n'dirty way would be sendkeys("r")
-handleman, cswp (the new, easy test)
hitting enter repeats last command as well.
if you wish to change the key that repeats the last command, goto tools pulldown>customize...>keyboard tab then in the search for: field search for "repeat"
matt lorono
cad engineer/ecn analyst
silicon valley, ca
ok, i'm guilty of not reading the question fully and responding to the last answer more so than to the question. sorry about that. handleman's solution is the easiest.
matt lorono
cad engineer/ecn analyst
silicon valley, ca
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)