AutoIt で IE の操作
新規セッションで IE を起動して mixi にログイン。
mixi ではできるかもしれないけれど、_IEGetObjById でオブジェクトが取得できなかった場合には、ControlSend を使う。
Win7 だと動いたけど XP だと駄目みたい。
変な風に変えちゃったかな?
あ、Shell を bbLean に変えているから、その影響もあったりするのかも。
#include <IE.au3> ShellExecute ("iexplore.exe", "about:blank -nomerge") WinWait ("空白のページ") $oIE = _IEAttach ("about:blank", "url") _IELoadWait ($oIE) _IENavigate($oIE, "https://mixi.jp/invite.pl") _IELoadWait ($oIE) ControlSend("mixi", "", "Internet Explorer_Server1", "userid") ControlSend("mixi", "", "Internet Explorer_Server1", "{TAB}") ControlSend("mixi", "", "Internet Explorer_Server1", "passwd") ControlSend("mixi", "", "Internet Explorer_Server1", "{TAB}") ControlSend("mixi", "", "Internet Explorer_Server1", "{TAB}") ControlSend("mixi", "", "Internet Explorer_Server1", "{ENTER}") _IELoadWait($oIE)