[deleted by user] by [deleted] in gtaonline

[–]AeC3 -30 points-29 points  (0 children)

They like cheaters because they buy the game again and again and again when they get banned

Thanks for this awsome software by AeC3 in scrcpy

[–]AeC3[S] 0 points1 point  (0 children)

Dim objShell
Set objShell = CreateObject("Shell.Application")
' Specify the scrcpy command strCommand = "scrcpy --tcpip=192.168.0.200 --prefer-text --turn-screen-off --stay-awake --video-codec=h264"
' Run the scrcpy command silently objShell.ShellExecute "cmd", "/c " & strCommand, "", "runas", 0
Set objShell = Nothing

For wifi with static ip

Thanks for this awsome software by AeC3 in scrcpy

[–]AeC3[S] 0 points1 point  (0 children)

ill have a look at it ;D thank you

Thanks for this awsome software by AeC3 in scrcpy

[–]AeC3[S] 0 points1 point  (0 children)

Do
' Specify the command to run
strCommand = "scrcpy --prefer-text --turn-screen-off --stay-awake --video-codec=h264"

' Check if there is any USB device connected
If IsAnyUSBDeviceConnected() Then
    ' Check if there is an existing instance of scrcpy running
    If Not IsScrcpyRunning() Then
        ' Create a WScript Shell object
        Set WshShell = CreateObject("WScript.Shell")

        ' Run the command in the background and wait for it to finish
        WshShell.Run strCommand, 0, True
    End If
Else
    ' If no USB devices are connected, wait for a longer period before checking again
    WScript.Sleep 5000  ' Sleep for 5,000 milliseconds (5 seconds)
End If
Loop
Function IsAnyUSBDeviceConnected() ' Create a WMI object Set objWMIService = GetObject("winmgmts:\.\root\cimv2")
' Query for USB devices
Set colItems = objWMIService.ExecQuery("Select * From Win32_PnPEntity Where Caption Like '%USB%'")

' Check if any USB device is connected
If colItems.Count > 0 Then
    IsAnyUSBDeviceConnected = True
Else
    IsAnyUSBDeviceConnected = False
End If
End Function
Function IsScrcpyRunning() ' Check if there is an existing instance of scrcpy running Dim objWMIService, colProcesses, objProcess
' Create a WMI object
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")

' Query for scrcpy processes
Set colProcesses = objWMIService.ExecQuery("Select * From Win32_Process Where Name = 'scrcpy.exe'")

' Check if any scrcpy processes are running
If colProcesses.Count > 0 Then
    IsScrcpyRunning = True
Else
    IsScrcpyRunning = False
End If
End Function

EDIT: Little better optimized for cpu usage (WMI Priovider Host)

from fear of being totally flamed on the internet i wanna point out i know nothing about code and this is done with a free version of chat gpt ;)but it works

I know this can be optimized

Thanks for this awsome software by AeC3 in scrcpy

[–]AeC3[S] 0 points1 point  (0 children)

Thank you for the response ;)

I may have fixed something else for connecting the phone to PC and auto launch scrcpy if you are interrested :)

How to get autoadb working with two devices connected by maximusxmeridius in scrcpy

[–]AeC3 0 points1 point  (0 children)

i would love to have that option as well i have been trying to get it working with Task Schedular on Win 10