chaoses-ib / ibinputsimulator Goto Github PK
View Code? Open in Web Editor NEWA library for simulating keyboard and mouse input with drivers
License: MIT License
A library for simulating keyboard and mouse input with drivers
License: MIT License
最新版的 G HUB 和 LGS 似乎直接阉割了部分鼠标功能。驱动不再支持鼠标按键或移动,G HUB 和 LGS 的 Lua 宏会使用 SendInput 而不是驱动来实现被阉割的功能。
Originally posted by @Chaoses-Ib in #4 (comment)
When user receives Send::Error::Success from IbSendInit function it means that send variable has been initialized with any of the 'SendTypes'. But when we stop the program it calls IbSendDestroy, or in my case I can call this function several times to reinit dll with another driver with calling IbSendDestroy before Init.
IbSendDestroy checks if send
variable is not empty and calls send.release(). Which leads to the memory leak. I guess you call it because you got problems with inheritance and if you simply replace this line with main::send.reset()
it will fail to destroy objects.
It can be also resolved by adding default destructor to Base class like:
virtual ~Base() = default;
C:\L\C++\packages\IbInputSimulator-0.3\AhkDll\AhkDll.vcxproj : error : 找不到导入的项目“C:\L\C++\packages\IbWinCppLib\IbWinCppLib.props”。请确认 Import 声明“C:\L\C++\packages\IbWinCppLib\IbWinCppLib.props”中的表达式正确,且文件位于磁盘上。 C:\L\C++\packages\IbInputSimulator-0.3\AhkDll\AhkDll.vcxproj C:\L\C++\packages\IbInputSimulator-0.3\AhkDll.Test\AhkDll.Test.vcxproj : error : 找不到导入的项目“C:\L\C++\packages\IbWinCppLib\IbWinCppLib.props”。请确认 Import 声明“C:\L\C++\packages\IbWinCppLib\IbWinCppLib.props”中的表达式正确,且文件位于磁盘上。 C:\L\C++\packages\IbInputSimulator-0.3\AhkDll.Test\AhkDll.Test.vcxproj
I also found that you can actually install the RzComDriver without Synapse. There are various logs generated by razer synapse and one of them is
Manifest.log
this contains an XML manifest of all software products from razer. I have a console app I wrote in c# that actually uses the C# API used by Razers software to download the same Manifest file.Within the Manifest, there is a link to the full Razer Synapse install (eg: https://cdn.razersynapse.com/1665042231FcnE6gEARazerSynapseSetup_v3.7.1015.100615.exe).
This exe is in a format that can be extracted from and within the $PLUGINSDIR
RzComDriver_vx.x.xx.x.exe
exists which is the Razer Common Control Driver.
Originally posted by @ChrisKader in #6 (comment)
i cant seem make alt or shift keys work am i doing wrong?
alt 3 for example
please help thank you
IbSend("{alt down}")
sleep, 40
IbSend("{3 down}")
sleep, 60
IbSend("{3 up}")
sleep, 60
IbSend("{alt up}")
如题
i cant seem make it work please help
loot()
{
pixelSearch, lootX1, lootY1, 744, 341, 836, 458, 0x6B29A5, 0, Fast RGB
if(ErrorLevel) {
return
} else if(!ErrorLevel) {
Newlootx1 := lootX1 + 20
Newlooty1 := lootY1 + 40
IbSendMouseMove("{%Newlootx1%, %Newlooty1%}") ;---------- i cant make it work
sleep, 150
IbSend("{click down}")
sleep, 30
IbSend("{click up}")
sleep, 500
return
} else {
sleep, 10
return
}
}
edit:
this seems to work if i specified my coords
IbSend("{click 1179 83 0}")
but i cant make this work
IbSend("{click %NewlootX% %NewlootY% 0}")
any ideas T_T
"C:\Program Files\Logitech Gaming Software\Drivers\Installers\DifxInstaller.exe" install "C:\Program Files\Logitech Gaming Software\Drivers\USBAudio\lgAudio.inf" DRIVER_PACKAGE_FORCE
"C:\Program Files\Logitech Gaming Software\Drivers\Installers\DifxInstaller.exe" install "C:\Program Files\Logitech Gaming Software\Drivers\LGSBulk\LGPBTDD.inf" DRIVER_PACKAGE_FORCE
"C:\Program Files\Logitech Gaming Software\Drivers\Installers\DifxInstaller.exe" install "C:\Program Files\Logitech Gaming Software\Drivers\LGSHidFilter\LGSFMouHID.inf" DRIVER_PACKAGE_FORCE
"C:\Program Files\Logitech Gaming Software\Drivers\Installers\DifxInstaller.exe" install "C:\Program Files\Logitech Gaming Software\Drivers\LGSHidFilter\LGSFUsbFilt.inf" DRIVER_PACKAGE_FORCE
"C:\Program Files\Logitech Gaming Software\Drivers\Installers\DifxInstaller.exe" install "C:\Program Files\Logitech Gaming Software\Drivers\VirtualBus\LGBusEnum.inf" npnp=root\LogiGamePanelVirtualBus DRIVER_PACKAGE_FORCE
"C:\Program Files\Logitech Gaming Software\Drivers\Installers\DifxInstaller.exe" install "C:\Program Files\Logitech Gaming Software\Drivers\VirtualBus\LGVirHid.inf" DRIVER_PACKAGE_FORCE
"C:\Program Files\Logitech Gaming Software\Drivers\Installers\DifxInstaller.exe" install "C:\Program Files\Logitech Gaming Software\Drivers\LGJoyHid\LGJoyHid.inf" DRIVER_PACKAGE_FORCE
"C:\Program Files\Logitech Gaming Software\Drivers\Installers\DifxInstaller.exe" install "C:\Program Files\Logitech Gaming Software\Drivers\LGJoyHid\WinUSB\LGJoyWinUsb.inf" DRIVER_PACKAGE_FORCE
"C:\Program Files\Logitech Gaming Software\Drivers\Installers\LGCoreTempInstall.exe" /S /company=Logitech
"C:\Program Files\Logitech Gaming Software\Drivers\Installers\Install_apo.exe" --remove 1 --inf "C:\Program Files\Logitech Gaming Software\Drivers\USBAudio\lgAudio.inf"
"C:\Program Files\Logitech Gaming Software\Drivers\Installers\Install_apo.exe" --repair --inf "C:\Program Files\Logitech Gaming Software\Drivers\USBAudio\lgAudio.inf"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\SDK\LCD\x86\LgLcdApi.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\SDK\LCD\x64\LgLcdApi.dll"
/s "C:\Program Files\Logitech Gaming Software\SDK\LCD\x64\LgLcdApi.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\SDK\G-key\x86\LogitechGkey.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\SDK\G-key\x64\LogitechGkey.dll"
/s "C:\Program Files\Logitech Gaming Software\SDK\G-key\x64\LogitechGkey.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\SDK\LCD\x86\LogitechLcd.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\SDK\LCD\x64\LogitechLcd.dll"
/s "C:\Program Files\Logitech Gaming Software\SDK\LCD\x64\LogitechLcd.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\SDK\LED\x86\LogitechLed.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\SDK\LED\x64\LogitechLed.dll"
/s "C:\Program Files\Logitech Gaming Software\SDK\LED\x64\LogitechLed.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\SDK\Arx Control\x86\LogitechGArxControl.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\SDK\Arx Control\x64\LogitechGArxControl.dll"
/s "C:\Program Files\Logitech Gaming Software\SDK\Arx Control\x64\LogitechGArxControl.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\SDK\SteeringWheel\x86\LogitechSteeringWheel.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\SDK\SteeringWheel\x64\LogitechSteeringWheel.dll"
/s "C:\Program Files\Logitech Gaming Software\SDK\SteeringWheel\x64\LogitechSteeringWheel.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\Drivers\USBAudio\LGCapturePropPage.dll"
/s "C:\Program Files\Logitech Gaming Software\Drivers\USBAudio\LGCapturePropPage.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\Drivers\USBAudio\LGRenderPropPage.dll"
/s "C:\Program Files\Logitech Gaming Software\Drivers\USBAudio\LGRenderPropPage.dll"
"regsvr32" /s "C:\Program Files\Logitech Gaming Software\Drivers\USBAudio\LGSpeakerPropPage.dll"
/s "C:\Program Files\Logitech Gaming Software\Drivers\USBAudio\LGSpeakerPropPage.dll"
"C:\Program Files\Logitech Gaming Software\Drivers\APOService\LogiRegistryService.exe" -install
"C:\Program Files\Logitech Gaming Software\Drivers\APOService\LogiRegistryService.exe" -start
C:\WINDOWS\system32\services.exe
"C:\Program Files\Logitech Gaming Software\Drivers\APOService\LogiRegistryService.exe"
"C:\WINDOWS\system32\regsvr32" /s "C:\Program Files\Logitech Gaming Software\Drivers\LGJoyHid\LgJoyFrc.dll"
/s "C:\Program Files\Logitech Gaming Software\Drivers\LGJoyHid\LgJoyFrc.dll"
"C:\WINDOWS\SysWOW64\regsvr32" /s "C:\Program Files\Logitech Gaming Software\Drivers\LGJoyHid\LgJoyFrc32.dll"
"C:\WINDOWS\system32\regsvr32" /s "C:\Program Files\Logitech Gaming Software\Drivers\LGJoyHid\LGHppFrc.dll"
/s "C:\Program Files\Logitech Gaming Software\Drivers\LGJoyHid\LGHppFrc.dll"
"C:\WINDOWS\SysWOW64\regsvr32" /s "C:\Program Files\Logitech Gaming Software\Drivers\LGJoyHid\LGHppFrc32.dll"
"C:\WINDOWS\system32\regsvr32" /s "C:\Program Files\Logitech Gaming Software\LGJoyDriverAPI.dll"
/s "C:\Program Files\Logitech Gaming Software\LGJoyDriverAPI.dll"
"C:\Program Files\Logitech Gaming Software\Drivers\Installers\OverwolfInstallerLogitech.exe" -silent
im so amazed that it bypassed my gameguard for macro
most of keystroke and clicks working 100% perfectly
but can i ask how to controlsend(send keystroke to background) like this?
ControlSend, ahk_parent, {F2}, ahk_exe choboApp.exe
i tried this but i cant make it work
IbSend("ControlSend, ahk_parent, {F2}, ahk_exe choboApp.exe")
please help me.. thank you for awesome library!
使用 AHK v1 这个示例程序时,程序没有反应,没有任何动作也没有报错。
如題,以下是萌新小弟我的代碼:
import ctypes
import os
import time
root = os.path.abspath(os.path.dirname(file))
driver = ctypes.CDLL(f'{root}/IbAhkSend.dll')
driver.IbSendInit("Logitech")
for i in range(5):
driver.IbSendKeybdDown('n')
driver.IbSendKeybdDownUp('n')
print('press n')
time.sleep(1)
報錯:
OSError: exception: access violation reading 0x0000000000000000
雖然可能是個白癡問題,但還是請大佬指教一下~~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.