分享_創建通用按鈕,模塊化調用_使用经验
学习.交流
专业源于专注
www. onlyit. cn   
学习交流 文件下载 手册资料 交流QQ群

    

 2  1/1   1  
作者
内容
daibiaoge  [个人空间]


注册  2020-04-30
发贴数  446
精华贴  2
原创贴  1
来自  
状态  正常

级别  会员
#1»发布于2022-10-27 11:11

感謝孟老師更新的版本,支持傳參數調用。 
http://www.myoit.cn/topic_list_detail?subject_id=3&topic_id=103541&topic_page_id=1 
借鑑此貼,感謝他的分享。 
http://www.myoit.cn/topic_list_detail?subject_id=3&topic_id=103516&topic_page_id=1 
 
int func_show() 

call_str('call_csp.u_help.cj_bz("AA","aahelp","tp")'); 
//第一個參數單據類型,第二個參數目標對象,第三個參數對象類型 
return 1; 

 
 
/*u_help.csp*/ 
 
int get_doc(string wj, string lx) 

  string wjm, ml; 
  if (lx == "tp") 
  { 
    ml = "rundll32.exe"; 
    wjm = get_pub_pict(wj); 
    if (wjm != "") 
    {shell_ext(ml, "shimgvw.dll,ImageView_Fullscreen " + wjm);} 
  } 
  else 
  { 
    wjm = download_file_by_id(wj); 
    shell(wjm); 
  } 
  return 1; 

 
int cj_bz(string djlx, string mbdx, string lx) 

  int x, y, w, h; 
  string  sb, ml, v3; 
  num x1, x, w; 
  sb =  "u_help_" + djlx; 
  ml = "call_csp.u_help.get_doc('" + mbdx + "','" + lx + "')"; 
  if (djlx == "" || gui_is_visible(sb)) 
  {return 0;} 
  x = gui_get_x("SpeedButton_Create"); 
  y = gui_get_y("SpeedButton_Create"); 
  w = gui_get_w("SpeedButton_Create"); 
  h = gui_get_h("SpeedButton_Create"); 
  x1 = x - w * 2 - 5; 
  gui_create_speedbutton("ScrollBox_Func_Right", sb, x1, y, w, h, "幫助", ml); 
  gui_set_font_color(sb, 16711935); 
  return 1; 
};


        


fwj3861  [个人空间]
QQ名  越南-叶子(121305301)


注册  2010-09-09
发贴数  529
精华贴  10
原创贴  20
来自  越南
状态  正常

级别  贵宾
#2»发布于2022-10-27 12:49

感谢大彪老师的脚本优化!


        




官方认证第三方服务团队  樊文俊(越南-叶子) QQ:121305301 TEL:+84869350626
承接越南北部-河内周边省份-OIT部署和维护服务(24小时上门或远程服务)
服务介绍:http://www.onlyit.cn/onlyit_service.html


 2  1/1   1  

登录后方可发贴


[ 电话: 0571-85462761 王先生 QQ: 124520435 加入软件QQ群 - 杭州 - 浙ICP备19051128号-1 网安 33010402003225 ]