Achilles Posted December 29, 2006 Share Posted December 29, 2006 (edited) This is a camera I made and it save you the trouble of cropping. ;Thanks to LazyCat for the .dll #include <GUIConstants.au3> $gui = GuiCreate('Camera', 400, 400, '', '', Bitand($WS_THICKFRAME, $WS_SIZEBOX)) WinSetTrans('Camera', '', 140) $capture = GUICtrlCreateButton ("Capture Screen (within the 'camera' window)", 20, 340,250,30) GUICtrlSetResizing ($capture,$GUI_DOCKBOTTOM+$GUI_DOCKSIZE+$GUI_DOCKHCENTER) $exit = GUICtrlCreateButton ("Exit", 290, 340, 90, 30) GUICtrlSetResizing ($exit,$GUI_DOCKBOTTOM+$GUI_DOCKSIZE+$GUI_DOCKHCENTER) GuiSetState() While 1 $msg = GuiGetMsg() If $msg = $GUI_EVENT_CLOSE or $msg = $exit then Exit If $msg = $capture then $pos = WinGetPos('Camera') $time = @Hour & "-" & @MIN & "-" & @SEC DllCall("captdll.dll", "int", "CaptureRegion", "Str", "Picture" & $time & ".bmp", "int", $pos[0]+ 2 , "int", $pos[1] + 22, "int", $pos[2] - 2, "int", $pos[3] - 21, "int", -1) Endif Wend Let me know what you thinkcaptdll.dll Edited December 30, 2006 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Snarg Posted December 30, 2006 Share Posted December 30, 2006 Lazycat created it. Here is the link. A little reading goes a long way. Post count means nothing. Link to comment Share on other sites More sharing options...
NELyon Posted December 30, 2006 Share Posted December 30, 2006 Cool. I was thinking of making something like this. Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 30, 2006 Share Posted December 30, 2006 Where is the picture output as? Link to comment Share on other sites More sharing options...
Achilles Posted December 30, 2006 Author Share Posted December 30, 2006 (edited) Where is the picture output as?It goes to the ScriptDir...RE to D-Generation X: ThanksRE to Snarg: Ok, thanks I'll mention him in the script Edited December 30, 2006 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
James Posted December 30, 2006 Share Posted December 30, 2006 Cool thats simple.. D-Generation X what happened to ur pic thing? Suck it? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
theguy0000 Posted December 30, 2006 Share Posted December 30, 2006 thats one way to do it....or you could just alt+printscreen The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Achilles Posted December 30, 2006 Author Share Posted December 30, 2006 thats one way to do it....or you could just alt+printscreen That would be the simpler... but that just saves it to the clipboard, not as an actual file.... My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
James Posted December 30, 2006 Share Posted December 30, 2006 Use Paint then XD Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Achilles Posted December 30, 2006 Author Share Posted December 30, 2006 Use Paint then XDThat would require unnecessary work, and that's always a negative! This saves you the trouble of opening paint and saving your picture.... My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
dandymcgee Posted December 31, 2006 Share Posted December 31, 2006 (edited) Yeah and you can only have on thing on the clipboard at a time, this would allow very fast picture taking/saving. Great work! EDIT: couldn't figure out why it wasn't working... hmmm maybe I should've downloaded the .dll... lol Edited December 31, 2006 by dandymcgee - Dan [Website] Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 31, 2006 Share Posted December 31, 2006 you should make it completely transparent and make it set itself to the size of the currently active window and then when you press a hotkey itll save it to your desktop or wherever Link to comment Share on other sites More sharing options...
Achilles Posted December 31, 2006 Author Share Posted December 31, 2006 you should make it completely transparent and make it set itself to the size of the currently active window and then when you press a hotkey itll save it to your desktop or whereverWell, the point of the program isn't really to just take a picture of a window, it's more for easier cropping or taking pictures of internet. But I think I'll try 'cause it could be useful too... I'll post the code if I get it working. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 31, 2006 Share Posted December 31, 2006 Helpful hint , WinGetClientSize, WinGetPos, and GuiSetCoord Link to comment Share on other sites More sharing options...
James Posted December 31, 2006 Share Posted December 31, 2006 Well then you could make it open paint and press ^V Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Achilles Posted December 31, 2006 Author Share Posted December 31, 2006 (edited) Well then you could make it open paint and press ^VThat's one of the whole points of the program... It saves you from having to open paint and pasting and saving... Helpful hint , WinGetClientSize, WinGetPos, and GuiSetCoordThanks, those look helpful... Edited December 31, 2006 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
James Posted December 31, 2006 Share Posted December 31, 2006 Ahh right. So then thats why they said make it save the file automatically via the program. Sorry I mis-read. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ 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