Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共13 条记录, 每页显示 10 条, 页签: [1] [2]
[浏览完整版]

标题:以vbs增加工具条窗体实现网络搜索等功能

1楼
ygy7876 发表于:2009/12/27 8:54:01

以vbs增加工具条窗体实现网络搜索等功能

http://www.brsbox.com/ygy7876网盘中下载"gjtct.rar",解压后双击gjtct.frm文件便可导入gjtct.窗体

网盘中有:"stk制作控制台工具条的说明.pdf "和"STK制作控制台工具条的说明.CHM "可以看考

图片点击可在新窗口打开查看

[此贴子已经被作者于2009-12-27 17:59:29编辑过]
2楼
ygy7876 发表于:2009/12/27 9:01:16

图片点击可在新窗口打开查看

[此贴子已经被作者于2009-12-27 14:41:15编辑过]
3楼
ygy7876 发表于:2009/12/27 9:01:51

图片点击可在新窗口打开查看

[此贴子已经被作者于2009-12-27 14:42:30编辑过]
4楼
ygy7876 发表于:2009/12/27 9:02:13

图片点击可在新窗口打开查看

[此贴子已经被作者于2009-12-27 14:46:45编辑过]
5楼
ygy7876 发表于:2009/12/27 9:11:27

工具条窗体中全部代码:

Sub APPLICATION_VBAStart()   '初始化UserForm2窗体
 gjtct.show
  gjtct.Move 320,-28,53,450
 
End Sub

 

Sub gjtct_Click()            ' 单击窗体时展开窗体
 call gjtct.Move (320,-28,200,450)
End Sub
 
Sub gjtct_DblClick(Cancel)     '双击窗体时收缩窗体
 call gjtct.Move (320,-28,53,450)
End Sub


Sub gjtct_Load()     '加载窗体时显示最大和最小按钮
 gjtct.MinButton=1
 gjtct.MaxButton=1
 
End Sub


Sub gjtct_CommandButton1_Click()
dim Label
  dim Market
  Result = Application.GetCurrentStock(Label,Market)
  if Result = 0 then
      msgbox "请选择一个品种"
      exit sub
  end if
 call Application.ShellExecute ("open", "http://www.windin.com/home/stock/html/"&Label&"."&Market&".shtml?&t=1&q="&Label, "", "", 1 )
End Sub


Sub gjtct_CommandButton2_Click()
dim Label
  dim Market
  Result = Application.GetCurrentStock(Label,Market)
  if Result = 0 then
      msgbox "请选择一个品种"
      exit sub
  end if
 call Application.ShellExecute ("open", "http://profile.10jqka.com.cn/GenBase/"&Label&".html", "", "", 1 )   '巨灵F10

End Sub


Sub gjtct_CommandButton3_Click()
dim Label
  dim Market
  Result = Application.GetCurrentStock(Label,Market)
  if Result = 0 then
      msgbox "请选择一个品种"
      exit sub
  end if
 call Application.ShellExecute ("open", "http://guba.eastmoney.com/"&Label&",guba.html", "", "", 1 )   '东方财富股吧
End Sub


Sub gjtct_CommandButton4_Click()    '搜狗新闻搜索

dim Label
  dim Market
  Result = Application.GetCurrentStock(Label,Market)
  if Result = 0 then
      msgbox "请选择一个品种"
      exit sub
  end if
 call Application.ShellExecute ("open", "http://news.sogou.com/news?query="&Label&"", "", "", 1 )               
End Sub

 


Sub gjtct_CommandButton5_Click()
Application.WinExec  "E:\dzh2\大智慧新一代.exe", 1

End Sub


Sub gjtct_CommandButton7_Click()
 
   dim Label
  dim Market
  Result = Application.GetCurrentStock(Label,Market)
  if Result = 0 then
      msgbox "请选择一个品种"
      exit sub
  end if
 
 Set objIE = CreateObject("InternetExplorer.Application")   '调用MSie的剪贴板实现复制股票代码
 objIE.Navigate("about:blank")
 objIE.document.parentwindow.clipboardData.SetData "text", Label
 objIE.Quit
 
 msgbox "已成功将"&Market&Label&"复制到粘贴板"

End Sub

[此贴子已经被作者于2009-12-27 14:34:01编辑过]
6楼
admin 发表于:2009/12/27 10:32:01

图片看不到。

建议使用 http://tinypic.com/ 贴图,然后复制链接过来

7楼
ygy7876 发表于:2009/12/27 11:07:31

以下分别是wind搜索和巨灵F10搜索的结果

 

图片点击可在新窗口打开查看

 

图片点击可在新窗口打开查看

[此贴子已经被作者于2009-12-27 15:32:16编辑过]
8楼
金字塔 发表于:2009/12/27 11:22:12

ygy7876: 你把图中红圈的IMG码粘贴过来效果更好

 

图片点击可在新窗口打开查看

9楼
信步 发表于:2011/10/8 19:45:02
这个哪里能下
10楼
guotx2010 发表于:2011/10/9 13:49:50
不错
共13 条记录, 每页显示 10 条, 页签: [1] [2]


Powered By Dvbbs Version 8.3.0
Processed in 0.04883 s, 2 queries.