Jump to content

Recommended Posts

Posted

This is from gamemaker, this is the object control code, does any one know how to use this,

check out this post

we need help with the dllcall and the gui display

{
show_message("GM WebCAM DLL by VitalDragon#Press Space to Capture Frame");
init();
createCam(0,0,250,250); //createCam(x,y,width,height)
connect(30); //connect(FPS)
}

{
saveToDIB("test.bmp");
sprite_replace(sprite1,"test.bmp",0,0,0,0,0,0,0)
}

{
disconnect();
}

Thanks guys

Check out ConsultingJoe.com
Posted (edited)

I think the calls would go something like this... but I do not have a webcam...

$a = DLLCall("webcam.dll","hwnd","createCam","int",0,"int",0,"int",400,"int",400)
MsgBox(4096,"",$a[0])
$a = DLLCall("webcam.dll","str","connect","int",30)
MsgBox(4096,"",$a[0])
$a = DLLCall("webcam.dll","str","saveToDIB","str","test.bmp")
MsgBox(4096,"",$a[0])
$a = DLLCall("webcam.dll","str","disconnect")
MsgBox(4096,"",$a[0])
that didnt work, they didn;t return arrays. thanks for organizing it tho I will keep trying

Actually something did happen, I got this:

0x003C1000

NULL

NULL

NULL

I switched the last three dllcalls to int and I got:

0x003C1000

3936256

3936256

3936256

But no bmp output. Any idea?

Thanks man

Edited by zerocool60544
Check out ConsultingJoe.com

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...