Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Bots 自动控制_Bots_Autoit - Fatal编程技术网

Bots 自动控制

Bots 自动控制,bots,autoit,Bots,Autoit,我通常在不同的窗口发送热键。问题是要找到正确的窗口控件。或者控件是正确的,并且存在未知问题。这些是控制措施: 标题:PokeMMO 类:LWJGL controlID:仍然未知 进程:javaw.exe 没用 Global $sProcess = "javaw.exe" ; Process PokeMMO ControlSend(_Process2Win($sProcess), "", "", "{DOWN}") Func _Process2Win($pid) If IsStrin

我通常在不同的窗口发送热键。问题是要找到正确的窗口控件。或者控件是正确的,并且存在未知问题。这些是控制措施:

标题:PokeMMO
:LWJGL
controlID:仍然未知
进程:javaw.exe

没用

Global $sProcess = "javaw.exe" ; Process PokeMMO 

ControlSend(_Process2Win($sProcess), "", "", "{DOWN}")

Func _Process2Win($pid)
    If IsString($pid) Then $pid = ProcessExists($pid)
    If $pid = 0 Then Return -1
    $list = WinList()
    For $i = 1 To $list[0][0]
        If $list[$i][0] <> "" And BitAND(WinGetState($list[$i][1]), 2) Then
            $wpid = WinGetProcess($list[$i][0])
            If $wpid = $pid Then Return $list[$i][0]
        EndIf
    Next
    Return -1
EndFunc   ;==>_Process2Win
Stystem消息:Java虚拟机启动器-发生Java异常错误


指示安装不同版本的Java。

尝试使用Title和text参数,但保留controlID参数,如“”或“”。这也应该起作用。祝你好运。

这是桌面窗口吗?试试WinFlash吧。它是一个exe编译的Java程序吗?Java不使用本机WinAPI。所以很难实现自动化。尝试使用空字符串“”更改第一个示例中的默认参数。如果Java应用程序无法使用控制函数,则应尝试使用WinActivate,然后发送。可能的重复项
Global $sProcess = "javaw.exe" ; Process PokeMMO 

ControlSend(_Process2Win($sProcess), "", "", "{DOWN}")

Func _Process2Win($pid)
    If IsString($pid) Then $pid = ProcessExists($pid)
    If $pid = 0 Then Return -1
    $list = WinList()
    For $i = 1 To $list[0][0]
        If $list[$i][0] <> "" And BitAND(WinGetState($list[$i][1]), 2) Then
            $wpid = WinGetProcess($list[$i][0])
            If $wpid = $pid Then Return $list[$i][0]
        EndIf
    Next
    Return -1
EndFunc   ;==>_Process2Win
Run("C:\path\path\path\PokeMMO.exe")
WinWait("[CLASS:LWJGL]")
Local $sControl = ControlGetFocus("[CLASS:LWJGL]")
MsgBox(0, "ControlGetFocus Example", "The control that has focus is: " & $sControl)