Habe dir ein kleines Beispiel anhand eines Buttons erstellt.
Zielprogramm
Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$GUI_Form1 = GUICreate("Ziel", 167, 75, 192, 124)
$GUI_Btn_Ziel = GUICtrlCreateButton("Buttonname_XY", 10, 10, 145, 50)
GUICtrlSetState(-1, $GUI_DISABLE)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While True
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $GUI_Btn_Ziel
MsgBox(0, "Random", "It works!")
EndSwitch
WEnd
Hackprogramm
Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$GUI_Form1 = GUICreate("Hack", 167, 75, 192, 124)
$GUI_Btn_Hack = GUICtrlCreateButton("Attack", 10, 10, 145, 50)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While True
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $GUI_Btn_Hack
ControlEnable("Ziel", "Buttonname_XY", 3)
EndSwitch
WEnd