Может кто помочь переписать скрипт на c++

Помощь в написании скриптов
Feedjj
Posts: 1
Joined: 06 Jan 2024, 20:54

Может кто помочь переписать скрипт на c++

06 Jan 2024, 20:57

Code: Select all

#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetControlDelay, 1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
#IfWinActive ahk_exe GTA5.exe
#NoEnv
#SingleInstance, force
F5::Suspend
F6::Reload
 
*r::
{
DllCall("SetCursorPos", int, 77777, int, 77777)
Send, {shift down}
Send, {w down}
sleep 40
Send, {shift up}
Send, {e}
Send, {space down}
sleep 100
Send, {space up}
Send, {w up}
PixelGetColor, mainwind, 1351, 384, RGB
}
while ( mainwind != 0x233552 )
{
PixelGetColor, mainwind, 1351, 384, RGB
}
Random, rand1, 1212, 1289
Random, rand2, 605, 561
DllCall("SetCursorPos", int,rand1, int, rand2)
sleep 7
ControlClick, x1241 y435, ahk_exe GTA5.exe
PixelGetColor, windclass1, 648, 525, RGB
while ( windclass1 != 0x233552 )
{
PixelGetColor, windclass1, 648, 525, RGB
}
PixelGetColor, linehouse, 939, 401, RGB
if ( linehouse != 0x233552 )
{
zeleniyy:
PixelSearch, Px, Py, 1113, 389, 1317, 423, 0x1A1A1A, 10, Fast, ahk_exe GTA5.exe
if ErrorLevel
goto, zeleniyy
eslinezeleniyy:
ControlClick, x1213 y407, ahk_exe GTA5.exe
PixelGetColor, inhouse, 1331, 395, RGB
while ( inhouse != 0x233552 )
{
PixelGetColor, inhouse, 1331, 395, RGB
}
SendInput {TAB}
SendInput {SPACE}
PixelGetColor, buycontract, 959, 717, RGB
while ( buycontract != 0x233552 )
{
PixelGetColor, buycontract, 959, 717, RGB
}
SendInput {SPACE}
sleep 35
SendInput {TAB}
SendInput {SPACE}
sleep 15
SendInput {TAB}
SendInput {SPACE}
krest:
PixelSearch, Px, Py, 1323, 294, 1340, 309, 0xFFFFFF, 3, Fast, ahk_exe GTA5.exe
if ErrorLevel
goto, krest
else:
ControlClick, x1333 y304, ahk_exe GTA5.exe
ControlClick, x1333 y304, ahk_exe GTA5.exe
ControlClick, x1333 y304, ahk_exe GTA5.exe
} Else
{
ControlClick, x1333 y304, ahk_exe GTA5.exe
Random, rand1, 1007, 1097
Random, rand2, 605, 561
DllCall("SetCursorPos", int,rand1, int, rand2)
sleep 5
ControlClick, x1060 y570, ahk_exe GTA5.exe
PixelGetColor, windclass1, 648, 525, RGB
while ( windclass1 != 0x233552 )
{
PixelGetColor, windclass1, 648, 525, RGB
}
PixelGetColor, linehouse, 939, 401, RGB
if ( linehouse != 0x233552 )
{
zeleniyyyy:
PixelSearch, Px, Py, 1113, 389, 1317, 423, 0x1A1A1A, 10, Fast, ahk_exe GTA5.exe
if ErrorLevel
goto, zeleniyyyy
eslinezeleniyyyy:
ControlClick, x1213 y407, ahk_exe GTA5.exe
PixelGetColor, inhouse, 1331, 395, RGB
while ( inhouse != 0x233552 )
{
PixelGetColor, inhouse, 1331, 395, RGB
}
SendInput {TAB}
SendInput {SPACE}
PixelGetColor, buycontract, 959, 717, RGB
while ( buycontract != 0x233552 )
{
PixelGetColor, buycontract, 959, 717, RGB
}
SendInput {SPACE}
sleep 35
SendInput {TAB}
SendInput {SPACE}
sleep 15
SendInput {TAB}
SendInput {SPACE}
krestrrr:
PixelSearch, Px, Py, 1323, 294, 1340, 309, 0xFFFFFF, 3, Fast, ahk_exe GTA5.exe
if ErrorLevel
goto, krestrrr
elseeee:
ControlClick, x1333 y304, ahk_exe GTA5.exe
ControlClick, x1333 y304, ahk_exe GTA5.exe
ControlClick, x1333 y304, ahk_exe GTA5.exe
} Else
{
ControlClick, x1333 y304, ahk_exe GTA5.exe
Random, rand1, 829, 903
Random, rand2, 605, 561
DllCall("SetCursorPos", int,rand1, int, rand2)
sleep 5
ControlClick, x860 y570, ahk_exe GTA5.exe
PixelGetColor, windclass1, 648, 525, RGB
while ( windclass1 != 0x233552 )
{
PixelGetColor, windclass1, 648, 525, RGB
}
PixelGetColor, linehouse, 939, 401, RGB
if ( linehouse != 0x233552 )
{
PixelGetColor, inhouse, 1331, 395, RGB
while ( inhouse != 0x233552 )
{
PixelGetColor, inhouse, 1331, 395, RGB
}
SendInput {TAB}
SendInput {SPACE}
PixelGetColor, buycontract, 959, 717, RGB
while ( buycontract != 0x233552 )
{
PixelGetColor, buycontract, 959, 717, RGB
}
SendInput {SPACE}
sleep 35
SendInput {TAB}
SendInput {SPACE}
sleep 15
SendInput {TAB}
SendInput {SPACE}
krestrr:
PixelSearch, Px, Py, 1323, 294, 1340, 309, 0xFFFFFF, 3, Fast, ahk_exe GTA5.exe
if ErrorLevel
goto, krestrr
elseee:
ControlClick, x1333 y304, ahk_exe GTA5.exe
ControlClick, x1333 y304, ahk_exe GTA5.exe
ControlClick, x1333 y304, ahk_exe GTA5.exe
} Else
ControlClick, x1333 y304, ahk_exe GTA5.exe
Random, rand1, 631, 697
Random, rand2, 605, 561
DllCall("SetCursorPos", int,rand1, int, rand2)
sleep 1
ControlClick, x660 y570, ahk_exe GTA5.exe
PixelGetColor, windclass1, 648, 525, RGB
while ( windclass1 != 0x233552 )
{
PixelGetColor, windclass1, 648, 525, RGB
}
PixelGetColor, linehouse, 939, 401, RGB
if ( linehouse != 0x233552 )
{
PixelGetColor, inhouse, 1331, 395, RGB
while ( inhouse != 0x233552 )
{
PixelGetColor, inhouse, 1331, 395, RGB
}
sendInput {TAB}
SendInput {SPACE}
PixelGetColor, buycontract, 959, 717, RGB
while ( buycontract != 0x233552 )
{
PixelGetColor, buycontract, 959, 717, RGB
}
SendInput {SPACE}
sleep 35
SendInput {TAB}
SendInput {SPACE}
sleep 15
SendInput {TAB}
SendInput {SPACE}
krestrre:
PixelSearch, Px, Py, 1323, 294, 1340, 309, 0xFFFFFF, 3, Fast, ahk_exe GTA5.exe
if ErrorLevel
goto, krestrre
elseeer:
ControlClick, x1333 y304, ahk_exe GTA5.exe
ControlClick, x1333 y304, ahk_exe GTA5.exe
ControlClick, x1333 y304, ahk_exe GTA5.exe
} Else
sleep 10
krestikj:
PixelSearch, Px, Py, 1323, 294, 1340, 309, 0xFFFFFF, 3, Fast, ahk_exe GTA5.exe
if ErrorLevel
goto, krestikj
nekrestikj:
ControlClick, x1333 y304, ahk_exe GTA5.exe
ControlClick, x1333 y304, ahk_exe GTA5.exe
ControlClick, x1333 y304, ahk_exe GTA5.exe
goto, closegui
}
}
closegui:
{
return
[Mod edit: + [code][/code] tags.]

Return to “Помощь”

Who is online

Users browsing this forum: No registered users and 68 guests