【程序编程相关:关于数组】
private declare function sendmessage lib "user32.dll" alias "sendmessagea" (byval hwnd as long, byval wmsg as long, byval wparam as long, lparam as any) as long 【推荐阅读:jsp中调用javabean,是否可以弹】
【扩展信息:Jujube项目架构设计】private declare function findwindow lib "user32.dll" alias "findwindowa" (byval lpclassname as string, byval lpwindowname as string) as longprivate declare function findwindowex lib "user32" alias "findwindowexa" (byval hwnd1 as long, byval hwnd2 as long, byval lpsz1 as string, byval lpsz2 as string) as longfunction sqrx(byval x as double) as string ´计算平方根(比vb double 类型精度高)
dim temp as string, i as long, j as long shell "calc.exe", vbminimizednofocus ´运行计算器 temp = x & "y0.5=" for i = 1 to len(temp) sendkeys mid(temp, i, 1), true ´向计算器顺序发送按键消息x (x^y) 0.5= next temp = string(64, chr(0)) i = findwindow(vbnullstring, "计算器") ´窗口句柄 j = findwindowex(i, byval 0&, "edit", vbnullstring) ´编辑框句柄 ... 下一页