hello :D
im working on private sever tool and cant quite to get my entpresser to work any help would be wonderful.
im working on private sever tool and cant quite to get my entpresser to work any help would be wonderful.
Code:
#include <GUIConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiButton.au3>
#include <WindowsConstants.au3>
#NoTrayIcon
GUICreate("Enter", 160, 120)
$button1 = GUICtrlCreateButton("Enter Press On", 10, 10, 90, 50)
$button2 = GUICtrlCreateButton("Enter Press Off", 10, 60, 90, 50)
GUISetState(@SW_SHOW)
While 1
Switch GUIGetMsg()
Case - 3
Exit
Case $button1
$enter = 1
If $enter = 1 Then
Autolog()
EndIf
Case $button2
$enter = 0
EndSwitch
WEnd
Func Autolog()
While 1
If $enter = 0 Then
ExitLoop
EndIf
if winactive('SRO_Client') = 1 Then
send("{ENTER}")
Else
controlsend('SRO_Client',"","","{ENTER}")
EndIf
Sleep(2000)
WEnd
EndFunc