vaibhavs Posted June 15, 2007 Share Posted June 15, 2007 The sizes of the $ etcSorry to sound dumb, but I did not fully understand.May be a small example of the lines requiring changes, will help me a lot.ThxVai Link to comment Share on other sites More sharing options...
James Posted June 15, 2007 Share Posted June 15, 2007 That's OK, I was wrong anyway.You need to change this:$cap = DllCall($avi, "int", "capCreateCaptureWindow", "str", "cap", "int", BitOR($WS_CHILD,$WS_VISIBLE), "int", 15, "int", 15, "int", 320, "int", 240, "hwnd", $Main, "int", 1) Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
vaibhavs Posted June 15, 2007 Share Posted June 15, 2007 $cap = DllCall($avi, "int", "capCreateCaptureWindow", "str", "cap", "int", BitOR($WS_CHILD,$WS_VISIBLE), "int", 15, "int", 15, "int", 160, "int", 120, "hwnd", $Main, "int", 1) I tried this. But this only changes the size of the PREVIEW image. The saved BMP is still 320x240. Please advice further. Thank you. Vai Link to comment Share on other sites More sharing options...
James Posted June 15, 2007 Share Posted June 15, 2007 I'm not sure. From reading: Func SnapShot() DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_GRAB_FRAME_NOSTOP, "int", 0, "int", 0) DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_FILE_SAVEDIBA, "int", 0, "str", $snapfile) EndFunc I guess the sizes are taken from $cap. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
dnsi Posted June 15, 2007 Share Posted June 15, 2007 Wasn't This posted a year ago? My Programs:Flip-Flop File Encryption SysyemMULTIPLAYER-SOCKETSERVERHide An Archive In A Picture Link to comment Share on other sites More sharing options...
BrettF Posted June 16, 2007 Share Posted June 16, 2007 Wasn't This posted a year ago? Yea... Who but who cares?? I've soooo gtg buy a webcam now... and then make an eyetoy thing... maybe use white gloves.... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
slipperylobster Posted June 16, 2007 Share Posted June 16, 2007 hmmm....can this record my yahoo webcam.....? Just so I know what the kids are up 2? Or is that off limits? Link to comment Share on other sites More sharing options...
WhiteCrow Posted September 20, 2007 Share Posted September 20, 2007 How can you make a webcamshot, when the webcam is in use ? Tried many things but it always seems to give a popup with the required source, and yield a 0 bytes file in return. Thanks in advance. Link to comment Share on other sites More sharing options...
OldCoder Posted November 28, 2007 Share Posted November 28, 2007 Hi,I'm new, so be gentle. I have been coming to this forum and using AutoIt for some time now and must say that I am quite impressed with both.Now, with the back-slapping out of the way, I'd like to ask a question. The WebCam script posted here is really quite good and has opened some avenues for me. However, I am not a C++ programmer and am a bit lost in the whole workings of it. I am using a TV card instead of a cam with this script and I'd like to take the script and be able to change the actual resolution of the output, (to say 640 x 480 or 1024 x 768). Not change the scale, (which one could do on this line: $cap = DllCall($avi, "int", "capCreateCaptureWindow", "str", "cap", "int", BitOR($WS_CHILD,$WS_VISIBLE), "int", 15, "int", 15, "int", 320, "int", 240, "hwnd", $Main, "int", 1) )but the actual resolution.Also, I'd like to be able to get/set the channel and get/set capture device info. Any help anyone could give me would be greatly appreciated. I'd also like to point out that the recording side of this script didn't work with my TV card. I fixed this by changing the last line of the StopRecording() function from:DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_FILE_SAVEDIBA, "int", 0, "str", $moviefile)to:DllCall($user, "int", "SendMessage", "hWnd", $cap[0], "int", $WM_CAP_FILE_SAVEASA, "int", 0, "str", $moviefile)if this is at all helpful to anyone.Thanks in advance. (Should this have been posted in the General Support part of this forum or under this thread)? Hope to hear from anyone soon. "Intelligence is the ability to adapt to change." - Stephen Hawking "...not the ability to exploit others." - OldCoder Link to comment Share on other sites More sharing options...
OldCoder Posted November 28, 2007 Share Posted November 28, 2007 Had an error, this is why this appears twice. Sorry. "Intelligence is the ability to adapt to change." - Stephen Hawking "...not the ability to exploit others." - OldCoder Link to comment Share on other sites More sharing options...
Yorn Posted November 29, 2007 Share Posted November 29, 2007 Since this example was created well over a year ago, you might be out of luck as far as hearing from the original author goes. You could try looking at the documentation of those API calls and see what turns up, however. Link to comment Share on other sites More sharing options...
OldCoder Posted November 29, 2007 Share Posted November 29, 2007 Since this example was created well over a year ago, you might be out of luck as far as hearing from the original author goes. You could try looking at the documentation of those API calls and see what turns up, however.Yeah, I searched the web, found alot of info out there, and have saved it and tried working with it. But, all of it is written in either C++ or VB and I just can't seem to translate from either to AutoIt. I suppose I could try to learn C++ or VB/VB.NET, but the ease of AutoIt is why I chose it in the first place.My biggest problem is getting DLLCalls to work. Some of the code is so complicated, (for my little brain), that I just can't seem to make it work in AutoIt. "Intelligence is the ability to adapt to change." - Stephen Hawking "...not the ability to exploit others." - OldCoder Link to comment Share on other sites More sharing options...
Sk8eru Posted January 10, 2008 Share Posted January 10, 2008 can somebody make the script without guicreate("camera") .. only click and broadcast Link to comment Share on other sites More sharing options...
BrettF Posted January 10, 2008 Share Posted January 10, 2008 @OldCoder- Maybe try starting a General Support topic, showing some of the VB or something. @Sk8eru, just remove the GUI stuff and do it yourself. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
jvanegmond Posted January 11, 2008 Share Posted January 11, 2008 can somebody make the script without guicreate("camera") .. only click and broadcast Check my other reply in the other topic. Fool. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Lenny Posted January 19, 2008 Share Posted January 19, 2008 Hey! How can I remove the Gui of this Script? =) (Educational Purposes) Thank you for answering! And: Sorry for my bad english! =P Lenny Link to comment Share on other sites More sharing options...
Yorn Posted March 18, 2008 Share Posted March 18, 2008 I think you could just remove the GUI show command and change the variables to what you want. Are you seriously asking for help with something so simple? It sounds like you need to make a couple of simple AutoIt programs or run through some tutorials first. I'd suggest doing that first then coming back to this software. It sounds like you're not using this for educational purposes as well, despite what you say. If you were really trying to learn, you'd realize quite quickly you can't just "dismiss" a GUI. Link to comment Share on other sites More sharing options...
ighost Posted March 31, 2008 Share Posted March 31, 2008 hi all, this really a cool script and a good idea to check who touch your pc. 1 question if i would like to have the file name different how do i do that? i know need to add &$num& to the file name. how do i loop it ? Link to comment Share on other sites More sharing options...
ighost Posted April 2, 2008 Share Posted April 2, 2008 hi, anyone can help me ? Link to comment Share on other sites More sharing options...
myspacee Posted April 14, 2008 Share Posted April 14, 2008 (edited) hello to all, anyone think that is possible to merge this cool code with Aimbot pixelsearch codeto guide mouse cursor only with one finger, or in alternative give orderto pc with gestures....Imagine a gride that rapresent desktop, maybe sub-square can give command whena color enter in it. I watch too tv i know, but idea is pretty, or not ?Can pixelsearch can find more than 1 point?i made several experiments with camera, webcam and infrared LED. Try, is funny!m.15 min later...i try simple code to recognize my tv remote control led, no matter distance,or inclination, or light conditions, autoit recognize it as FFFFFFF color. Edited April 14, 2008 by myspacee Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now