1
我需要使用AutoIt更改Internet Explorer中的仿真模式。如何使用AutoIt設置Internet Explorer選項?
基本上我需要打開「開發者工具」(F12),更改文檔模式,可模擬IE 10
的AutoIt啓動並在我的IDE(Eclipse中)上運行。我已經可以打開IE,我有什麼疑問:
- 我該如何模擬打開調試選項?
- 我怎樣才能改變仿真版本?
我剛剛創建的AutoIt的一個新實例,並知道如何打開IE:
package autotioficial;
import java.io.File;
import com.jacob.com.LibraryLoader;
import autoitx4java.AutoItX;
public class App {
public static void main(String[] args) {
File file = new File("lib", "jacob-1.18-x86.dll"); //path to the jacob dll
System.setProperty(LibraryLoader.JACOB_DLL_PATH, file.getAbsolutePath());
AutoItX x = new AutoItX();
x.run("C:/Program Files (x86)/Internet Explorer/iexplore.exe");
}
}
請,我明白任何形式的幫助。謝謝 !
Bookeater,謝謝回答的問題是,如何在點擊該選項,在我用鼠標... –
@Leonardo萊昂納多點擊PRINTSCREEN,所以按F12後沒有選擇選項? (x.send(「{F12}」)) – Bookeater
不,不行,不知道爲什麼。 –