오토핫키 커뮤니티

자유
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
분류 제목 글쓴이 최근변경 추천
자유 이미지흰색 빨강으로 바꾸기 성공했네요 (슉슉이님감사) 제발등업좀2 2016.06.19 0/0
질문 Sleep 에 Edit창에 입력한 값을 적용하려고합니다. 5 우리강아지 2016.05.19 0/0
질문 adb 관련 소스좀 얻을수있을까요? 1 혼자서는 2016.05.18 0/0
질문 이미지를 흰색 검정으로만 재 구성할수있을가요? 18 제발등업좀2 2019.08.17 0/0
질문 이미지서치질문..ㅠㅠparse.. 2 혜띠뿌뿌 2016.05.16 0/0
질문 함수를 중복(동시)에 2~3개를 할 수 있을까요? 9 Rabbit 2016.05.17 0/0
질문 아주간단한 매크로하나 만들어볼려구 하는데요 4 토토가가 2016.06.10 0/0
질문 체크박스 질문합니다. 4 흑콘 2016.05.15 0/0
질문 오토핫키 초보 질문. 1 서승현 2016.05.14 0/0
질문 if 문 질문 올려봅니다, 4 수지가좋아 2016.05.14 0/0
질문 이미지 서치 질문합니다!! 9 셋쇼마루 2016.05.15 0/0
질문 녹스 질문점요 4 krip11 2016.05.21 0/0
질문 비활성 질문받아주실분 ㅠ 리슈니안 2016.05.12 0/0
질문 특정좌표안에 마우스이동 5 흑콘 2016.05.13 0/0
자유 딜콜 오류 힘들지말입 2016.05.12 0/0
질문 스크린 절대좌표로 클릭하는법ㅠㅠ 2 웅쓰1 2016.05.13 0/0
질문 어디가 문제인지 도움좀... 1 혼자서는 2016.05.12 0/0
질문 gdip_imagesearchWithHwnd 함수가 어떤 켬퓨터에서 작... 5 북붕 2016.05.15 0/0
자유 그냥 간단하게 여태 만든거 올려봅니다. 3 Vesper 2016.05.15 0/0
자유 비활성 이미지서치 소스 공유 해주실 분 계신가요.... 8 Rabbit 2016.06.10 0/0
Board Pagination Prev 1 ... 120121122123124125126127128 ... 209 Next
/ 209

전체 최신 인기글

전체 주간 인기글