매크로

자유
2016.05.12 20:38

딜콜 오류

조회 수 123 추천 0 댓글 0


ListSet( NPFList, XXNFList)
{
global MBCDLL
global NpfGetDeviceInfo, NpfSetDevice
global WsGetAddressInfo, WsSetAddress
if (MBCDLL := DllCall("LoadLibrary", "str", "MBC.dll")) {
NpfGetDeviceInfo := DllCall("GetProcAddress", "uint", MBCDLL, "str", "NpfGetDeviceInfo")
NpfSetDevice := DllCall("GetProcAddress", "uint", MBCDLL, "str", "NpfSetDevice")
WsGetAddressInfo := DllCall("GetProcAddress", "uint", MBCDLL, "str", "WsGetAddressInfo")
WsSetAddress := DllCall("GetProcAddress", "uint", MBCDLL, "str", "WsSetAddress")
VarSetCapacity(deviceName, 64)
VarSetCapacity(deviceDesc, 256)
Stringmid,NPFList,NPFList,2,1
DllCall(NpfGetDeviceInfo, "uint", NPFList, "str", deviceName, "str", deviceDesc)
VarSetCapacity(address, 16)
Stringmid,XXNFList,XXNFList,2,1
DllCall(WsGetAddressInfo, "uint", XXNFList, "str", address)
}
}
MBC_InitTerm()
{
global MBCDLL, SignalGetMode, SignalSetMode
global NpfFindAllDevices, NpfGetDeviceCount, NpfGetDeviceInfo, NpfSetDevice, NpfStart, NpfStop, NpfGetState
global WsFindAllAddresses, WsGetAddressCount, WsGetAddressInfo, WsSetAddress, WsStart, WsStop, WsGetState
if (MBCDLL) {
DllCall(WsStop)
DllCall(NpfStopDevice)
DllCall("FreeLibrary", "uint", MBCDLL)
MBCDLL = 0
return
}
if (MBCDLL := DllCall("LoadLibrary", "str", "MBC.dll")) {
SignalGetMode := DllCall("GetProcAddress", "uint", MBCDLL, "str", "SignalGetMode")
SignalSetMode := DllCall("GetProcAddress", "uint", MBCDLL, "str", "SignalSetMode")
NpfFindAllDevices := DllCall("GetProcAddress", "uint", MBCDLL, "str", "NpfFindAllDevices")
NpfGetDeviceCount := DllCall("GetProcAddress", "uint", MBCDLL, "str", "NpfGetDeviceCount")
NpfGetDeviceInfo := DllCall("GetProcAddress", "uint", MBCDLL, "str", "NpfGetDeviceInfo")
NpfSetDevice := DllCall("GetProcAddress", "uint", MBCDLL, "str", "NpfSetDevice")
NpfStart := DllCall("GetProcAddress", "uint", MBCDLL, "str", "NpfStart")
NpfStop := DllCall("GetProcAddress", "uint", MBCDLL, "str", "NpfStop")
NpfGetState := DllCall("GetProcAddress", "uint", MBCDLL, "str", "NpfGetState")
WsFindAllAddresses := DllCall("GetProcAddress", "uint", MBCDLL, "str", "WsFindAllAddresses")
WsGetAddressCount := DllCall("GetProcAddress", "uint", MBCDLL, "str", "WsGetAddressCount")
WsGetAddressInfo := DllCall("GetProcAddress", "uint", MBCDLL, "str", "WsGetAddressInfo")
WsSetAddress := DllCall("GetProcAddress", "uint", MBCDLL, "str", "WsSetAddress")
WsStart := DllCall("GetProcAddress", "uint", MBCDLL, "str", "WsStart")
WsStop := DllCall("GetProcAddress", "uint", MBCDLL, "str", "WsStop")
WsGetState := DllCall("GetProcAddress", "uint", MBCDLL, "str", "WsGetState")
count := DllCall(NpfFindAllDevices)
loop %count% {
VarSetCapacity(deviceName, 64)
VarSetCapacity(deviceDesc, 256)
DllCall(NpfGetDeviceInfo, "uint", a_index, "str", deviceName, "str", deviceDesc)
msg = [%a_index%] %deviceDesc%
Guicontrol,5:,NPFList1,%msg%
Gui, 2:Add, Text, cred BackgroundTrans x80 y43 h20 , %deviceDesc%
}
if (!DllCall(NpfSetDevice, "str", deviceName))
msgbox,16,안내,NpfSetDevice 실패
count := DllCall(WsFindAllAddresses)
loop %count% {
VarSetCapacity(address, 16)
DllCall(WsGetAddressInfo, "uint", a_index, "str", address)
msg = [%a_index%] %address%
Guicontrol,5:,XXNFList1,%msg%
Gui, 2:Add, Text, cred BackgroundTrans x80 y63 h20 , %address%
}
if (!DllCall(WsSetAddress, "str", address))
msgbox,16,안내,WsSetAddress 실패
} else
{
msgbox,16,안내,DLL 로드 실패
exitapp
}
}
MBC_SignalMode(personal, employee, blockenter)
{
global MBCDLL, SignalGetMode, SignalSetMode
if (!MBCDLL)
MBC_InitTerm()
flags := 0
if (personal)
flags := flags | 0x1
else
flags := flags & ~0x1
if (employee)
flags := flags | 0x2
else
flags := flags & ~0x2
if (blockenter)
flags := flags | 0x4
else
flags := flags & ~0x4
if (MBCDLL)
DllCall(SignalSetMode, "uint", flags)
}
MBC_NPFOnOff()
{
global MBCDLL, NpfStart, NpfStop, NpfGetState, SignalSetMode
if (MBCDLL) {
if (!DllCall(NpfGetState)) {
if (!DllCall(NpfStart))
msgbox,16,안내,NpfStart 실패
} else
DllCall(NpfStop)
}
}
MBC_WSOnOff()
{
global MBCDLL, WsStart, WsStop, WsGetState, SignalSetMode
if (MBCDLL) {
if (!DllCall(WsGetState)) {
if (!DllCall(WsStart))
msgbox,16,안내,WsStart 실패
} else


DllCall(WsStop)
}
}


NPF

XXNFL 정보를가져와야하는데 가져오지를 못합니다 ㅜ.ㅜ 이부분만막하네요



List of Articles
분류 제목 글쓴이 최근변경 추천
자유 도움부탁드립니다 (이미지서칭후 소리) 뚜긍이 2018.03.25 0/0
자유 독학 4일째!!! 7 미지로 2018.12.20 0/0
자유 드디어 녹스에서 오핫키를 돌리는 법을 알아냈네요 3 cis105 2017.08.08 0/0
자유 드디어 비활성 클릭 성공;;; 5 보득 2015.06.13 0/0
자유 등수를 입력하여 해당 내용 불러오기 4 나를대적할자 2015.05.08 0/0
자유 디코에서 오핫 같이 공부해요~ ogib 2019.07.29 0/0
자유 딜콜 오류 힘들지말입 2016.05.12 0/0
자유 라이즈 오브 킹덤즈 자동 정찰 매크로 4 Vero 2019.10.21 0/-1
자유 라이즈 오브 킹덤즈 자동정찰 매크로를 제작하였습니다. 8 Vero 2019.10.24 0/0
자유 로스트아크 낚시매크로 팝니다 2 적토 2020.08.21 0/0
자유 롤에서 오토핫키 질문 30 그놀 2015.08.23 0/0
자유 리니지m 매크로 소스 공유합니다 28 무쏘오 2019.06.11 2/0
자유 리니지m 매크로만드신분 없나요? 1 maxsin 2017.07.15 0/0
자유 리스트박스 시간기록 함카리스마 2023.11.05 0/0
자유 마우스 클릭 좌표 질문입니다... 3 추천캐릭 2014.11.22 0/0
자유 마지막왕국 채광 매크로 daghos 2021.02.02 0/0
자유 매우 조잡스런 세나 쫄작 영웅교체 소스입니다 1 valum 2015.03.25 0/0
자유 매이플스토리 경매장 매크로 있습니다. 3 도도나무 2019.03.20 0/0
자유 매크로 만지시는분들 대단하시네요 1 CHERRY7 2017.01.23 0/0
자유 매크로 의뢰 드리고 싶습니다 2 fresx 2020.07.01 0/0
Board Pagination Prev 1 2345678910 ... 28 Next
/ 28

전체 최신 인기글

전체 주간 인기글