感謝孟老師更新的版本,支持傳參數調用。 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; }; |