VicTT Posted October 15, 2005 Share Posted October 15, 2005 Decided it's more visually pleasing to actually see the entire process unfold..All in "AutoIt native commands" .. Global $root="E:\Screensaves\" Func ScExit() Exit EndFunc Func PrintScreen() Send("{PRINTSCREEN}") Run("C:\Windows\System32\mspaint.exe") WinWaitActive("untitled - Paint") Send("^v") Send("!f") Send("s") Send($root&@HOUR&" "&@MIN&" "&@SEC&".jpg") Send("{TAB}{DOWN 2}{ENTER}{TAB}{ENTER}") Send("!{F4}") EndFunc HotKeySet("^!{F5}","PrintScreen") HotKeySet("^!{F12}","ScExit") while 1 wend It can be easily modified to suit anyone's needs.. Quote Together we might liveDivided we must fall Link to comment Share on other sites More sharing options...
peethebee Posted October 16, 2005 Share Posted October 16, 2005 Hi! This is of course of possiblity, but in most cases, a dll solution is the better way (search for it in the forums). But for learning from it, it is vey usefull. Thanks for sharing it, peethebee vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Link to comment Share on other sites More sharing options...
w0uter Posted October 16, 2005 Share Posted October 16, 2005 (edited) no offence but your code ... well ... sucks. you didnt even use a sleep in-between your loop. Edited October 16, 2005 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Michel Claveau Posted October 17, 2005 Share Posted October 17, 2005 (edited) Hi ! The idea is interesting. I took again the principle, in the code below. Note: needs MS-Word, AutoIt-Beta, and the file (document) "cecrans.doc" in C: \ expandcollapse popupFunc ScExit() VW() Exit EndFunc Func PScreen() Send("!{PRINTSCREEN}") $w.Visible=True sleep(250) WinActivate("cecran2.doc") sleep(100) Send("{RIGHT}{DOWN}{ENTER}") Send("^v") Send("{RIGHT}{DOWN}{ENTER}{ENTER}") $w.Visible=False EndFunc Func VW() $w.Visible=True sleep(100) EndFunc $w=ObjCreate("Word.Application") sleep(1000) $w.Visible=False $w.Documents.Open("C:\cecrans.doc") sleep(250) $w.Activedocument.SaveAs("C:\cecran2.doc") sleep(100) HotKeySet("^!{F5}","PScreen") HotKeySet("^!{F12}","ScExit") HotKeySet("^!{F11}","VW") while 1 sleep(50) wend Usage : - Alt-Ctrl-F5 for capture-screen - Alt-Ctrl-F11 for see the result, in Word - Alt-Ctrl-F12 for exit Target : capture multiple screen in MS-Word.cecrans.doc Edited October 17, 2005 by Michel Claveau 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