매크로

자유
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
분류 제목 글쓴이 최근변경 추천
자유 이토랜트 포인트모집기... 새해복들많이 받으세요 걍자랑? 1 제발등업좀2 2017.01.04 0/0
자유 이클립스 만렙캐릭 ( 91~95 ) 계정 여러개팝니다. 1 지존매니아맨 2019.01.12 0/0
자유 이제는 자체 에디터나 리더기도 필요없겠네요 5 압살맨블로그 2023.12.26 0/0
자유 이제 조만간 opengl의 캡쳐 장벽도 깨지겠네요. 크루세이덩 2016.08.27 0/0
자유 이제 비활성 버전으로 매크로 제작 도전 5 죠케빈 2017.11.11 0/0
자유 이번 리니지m 매크로 단속에 대하여 11 죠케빈 2017.07.31 0/0
자유 이미지흰색 빨강으로 바꾸기 성공했네요 (슉슉이님감사) 제발등업좀2 2016.06.19 0/0
자유 이미지질문 1 PlusK 2017.11.30 0/0
자유 이미지서치후 postmessage 1 근홍 2016.05.08 0/0
자유 이미지서치의 인식률 값 관련 질문 2 Hangoon 2015.01.16 0/0
자유 이미지버튼 마우스HOVER 효과 2 우후훅 2015.07.03 0/0
자유 이미지 함수에서 헤맬때 참조해볼팁 1 닉네이밍 2015.09.08 0/0
자유 이미지 서치 오토핫키 의뢰합니다 ghdwns 2017.12.14 0/0
자유 이미지 서치 관련 베이스(?) 스크립트는 어디서 참조하... 5 oxydhd 2014.10.16 1/0
자유 이미지 문의 2 왕초보이에으 2018.01.23 0/0
자유 이거... 매크로 만드시는 분들인가요> 10 ae4708 2016.10.25 1/-1
자유 이 스크립트 문제점좀 봐주세요 5 로맨티스트 2015.07.10 0/0
자유 이 곳도 예전에는 실력자분들이 되게 많으셨는데.. bkvcqr 2023.02.24 0/0
자유 으흐~ 2렙 달고 도전 하는데욤 ㅎㅎ 중천~ 2015.11.07 0/0
자유 으아아아아아아 오토핫키 베스트글 보고싶어요!! 3 sica 2015.11.03 0/0
Board Pagination Prev 1 2345678910 ... 28 Next
/ 28

전체 최신 인기글

전체 주간 인기글