|
本帖最后由 amadis817 于 2010-6-23 12:02 编辑
我想要用 來控制網路遊戲中的 一部份 ( 下面程式可以幫助您進去 ) ..裡面有 帳號密碼
我想要控制的是 ,進入遊戲畫面後 右邊中間 時間下面那一排 的控制選單
下面是 我用 慧星小幫手 抓到上 ,但我怎麼用它就是不會 控制 ,沒辦法動作
這一排 不是按鈕 也不是圖 也不是 form 不知道該怎麼控制它 因此想請教一下這個 該用什麼含數控制
想請教一下 應該要怎麼寫 ( 或是那裡有範本可以參考 ,謝謝您)
<DIV class=clockmenu id=clockmenu style="MARGIN-LEFT: 684px! important"><DIV class=map id=map_map><SPAN style="WIDTH: 100%; CURSOR: pointer; POSITION: relative; HEIGHT: 50px" onclick="c.__OnSend('ajax_action.php?action=logonreward','',c.__func_comm_list,'logonreward');"></SPAN></DIV>
<DIV class=time><SPAN id=showdate> 20:44:45</SPAN></DIV>
<UL id=a-menuchild>
<LI><B>事業管理</B></LI>
<LI onmouseover="this.className='m-s-child-over'" onclick="om.clickchild('thing1','公司資訊',this)" onmouseout="this.className='m-s-child-out'"><A href="javascript:void(0)">公司資訊</A></LI>
<LI onmouseover="this.className='m-s-child-over'" onclick="om.clickchild('thingstructure','公司架構',this)" onmouseout="this.className='m-s-child-out'"><A href="javascript:void(0)">公司架構</A></LI>
<LI onmouseover="this.className='m-s-child-over'" onclick="om.clickchild('jobconst','常務工作',this)" onmouseout="this.className='m-s-child-out'"><A href="javascript:void(0)">常務工作</A></LI>
<LI onmouseover="this.className='m-s-child-over'" onclick="om.clickchild('buildingCreate','創建大廈',this)" onmouseout="this.className='m-s-child-out'"><A href="javascript:void(0)">創建大廈</A></LI>
<LI onmouseover="this.className='m-s-child-over'" onclick="om.clickchild('factoryShow','我的工廠',this)" onmouseout="this.className='m-s-child-out'"><A href="javascript:void(0)">我的工廠</A></LI>
<LI onmouseover="this.className='m-s-child-over'" onclick="om.clickchild('oilFieldCreate','建立油井',this)" onmouseout="this.className='m-s-child-out'"><A href="javascript:void(0)">建立油井</A></LI>
<LI onmouseover="this.className='m-s-child-over'" onclick="om.clickchild('thing2','店舖列表',this)" onmouseout="this.className='m-s-child-out'"><A href="javascript:void(0)">店舖列表</A></LI>
<LI onmouseover="this.className='m-s-child-over'" onclick="om.clickchild('thing3','員工列表',this)" onmouseout="this.className='m-s-child-out'"><A href="javascript:void(0)">員工列表</A></LI>
<LI onmouseover="this.className='m-s-child-over'" onclick="om.clickchild('thing4','員工招聘',this)" onmouseout="this.className='m-s-child-out'"><A href="javascript:void(0)">員工招聘</A></LI>
<LI onmouseover="this.className='m-s-child-over'" onclick="om.clickchild('employeeOperation','員工管理',this)" onmouseout="this.className='m-s-child-out'"><A href="javascript:void(0)">員工管理</A></LI>
<LI onmouseover="this.className='m-s-child-over'" onclick="om.clickchild('flagshipStoreAct','拓展部',this)" onmouseout="this.className='m-s-child-out'"><A href="javascript:void(0)">拓展部</A></LI><BR style="CLEAR: both"></UL></DIV>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
_IEErrorHandlerRegister()
$oIE = _IECreateEmbedded()
GUICreate("CEO_IE VERSION AUTO RUN", 1200, 980, _
(@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$GUIActiveX = GUICtrlCreateObj($oIE, 20, 20, 1200, 880)
$GUI_Button_Back = GUICtrlCreateButton("Back", 10, 920, 100, 30)
$GUI_Button_Forward = GUICtrlCreateButton("Forward", 120, 920, 100, 30)
$GUI_Button_Home = GUICtrlCreateButton("Home", 230, 920, 100, 30)
$GUI_Button_Stop = GUICtrlCreateButton("Stop", 340, 920, 100, 30)
$GUI_Button_OK = GUICtrlCreateButton("OK", 450, 920, 100, 30)
GUISetState() ;Show GUI
_IENavigate ($oIE, "http://www.funmily.com/")
SLEEP(2000)
_IEImgClick ($oIE, "http://image.funmily.com/funmily/zh-tw/images/btn_login.gif")
sleep(2000)
$oForm = _IEFormGetObjByName($oIE, "login_form")
$oQuery = _IEFormElementGetObjByName($oForm, "login_type")
_IEFormElementOptionSelect($oQuery, 0, 1, "byIndex"); 0 是 funmily 1 是uid
$oQuery = _IEFormElementGetObjByName($oForm, "username")
_IEFormElementSetValue($oQuery, "test6688")
$oQuery = _IEFormElementGetObjByName($oForm, "password")
_IEFormElementSetValue($oQuery, "6688test")
MsgBox(0, "輸入驗證螞", "code")
_IENavigate ($oIE, "http://twceologin.funmily.com ")
sleep(3000)
_IEImgClick ($oIE, "http://twceologin.funmily.com/images/btn_sel_3.gif")
sleep(3000)
_IEImgClick ($oIE, "http://twceologin.funmily.com/images/enterbt.gif")
; Waiting for user to close the window
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
Exit
Case $msg = $GUI_Button_Home
謝謝您的回答 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入
×
评分
-
查看全部评分
|