JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java 新手區  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 請問如何封住hook api來取得字串?
funy





發文: 78
積分: 0
於 2005-02-05 23:15 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
小弟目前製做了一個利用IE製成的Browser
但是為了避免像譯典通那種滑鼠停佇文字上面,就能取得那段文字的HOOK API
想用類似玻璃的東西蓋在IE上面
目前嘗試用jPanel覆蓋在上面,並將之setOpaque(false)
但都看不到下面的Browser
請問如何解決?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package ie;
 
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import com.webrenderer.*;
import com.borland.dbswing.*;
/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2005</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */
 
public class Frame extends JFrame {
  JPanel contentPane;
  BorderLayout borderLayout1 = new BorderLayout();
  IBrowserCanvas browser;
  JTextField textfield;
  JPanel jPanel1 = new JPanel();
  BorderLayout borderLayout2 = new BorderLayout();
  JPanel jPanel2 = new JPanel();
  //Construct the frame
  public Frame() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
      jbInit();
    }
    catch(Exception e) {
      e.printStackTrace();
    }
  }
 
  //Component initialization
  private void jbInit() throws Exception  {
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(borderLayout1);
    textfield = new JTextField();
    BrowserFactory.setLicenseData("30dtrial", "AOQ342SC08MGD18U37BI8UEI");
    browser = BrowserFactory.spawnInternetExplorer();
    textfield.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e){browser.loadURL(textfield.getText());}});
    this.setSize(new Dimension(1024, 860));
    this.setTitle("Browser");
    contentPane.setOpaque(true);
    jPanel1.setLayout(borderLayout2);
    jPanel2.setBackground(Color.white);
    jPanel2.setForeground(Color.black);
    jPanel2.setOpaque(false);
    browser.loadURL("tw.yahoo.com");
    jPanel1.add(textfield, BorderLayout.NORTH);
    jPanel1.add(BorderLayout.CENTER,(Canvas)browser);
    contentPane.add(jPanel1, BorderLayout.CENTER);
    contentPane.add(jPanel2, BorderLayout.CENTER);
    }
 
  //Overridden so we can exit when window is closed
  protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
      System.exit(0);
    }
  }
}
 


tekwei edited on 2005-02-06 01:04
reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
3581 請問如何封住hook api來取得字串? funy 2181 2005-02-05 23:15
2280 Re:請問如何封住hook api來取得字串? nomoney 58 2005-02-06 12:48
2109 Re:請問如何封住hook api來取得字串? Duncan 430 2005-02-06 22:50
2023 Re:請問如何封住hook api來取得字串? Duncan 402 2005-02-07 00:25
3778 Re:請問如何封住hook api來取得字串? atticcat 427 2005-02-07 01:25
2157 Re:請問如何封住hook api來取得字串? Duncan 364 2005-02-07 10:17
2214 Re:請問如何封住hook api來取得字串? funy 104 2005-02-09 12:50
2036 Re:請問如何封住hook api來取得字串? Duncan 111 2005-02-09 13:50
2127 Re:請問如何封住hook api來取得字串? funy 15 2005-02-10 22:58
1914 Re:請問如何封住hook api來取得字串? Duncan 130 2005-02-11 13:20
2036 Re:請問如何封住hook api來取得字串? funy 158 2005-02-13 23:44
» JWorld@TW »  Java 新手區

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8