home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 April
/
PCWorld_2001-04_cd.bin
/
Software
/
Vyzkuste
/
autoit
/
AutoIt.exe
/
AutoIt.msi
/
Cabs.w1.cab
/
Snapshot.aut
< prev
next >
Wrap
Text File
|
1999-12-10
|
772b
|
37 lines
; Example Script
; ==============
;
; OS: Windows 9x
; Author: Jonathan Bennett (jbennett@hidden.demon.co.uk)
;
; This script will take a snapshot of the screen using PRINTSCREEN
; and then paste it into paintbrush
MsgBox, 4, AutoIt Example, This script will get a screen snapshot into paintbrush. Run?
IfMsgBox, NO, Goto, denied
Run, notepad.exe
WinWaitActive, Untitled - Notepad
Send, !{PRINTSCREEN}
WinClose, Untitled - Notepad
; Use pbrush.exe under Win9x, mspaint.exe under NT
IfEqual, OS, Windows_NT, Goto, WinNT
Run, pbrush.exe
Goto, Continue
WinNT:
Run, mspaint.exe
Continue:
WinWaitActive, untitled - Paint
Send, !e
Send, p
Sleep, 2000
Exit
denied:
Exit
[ADLIB]
Paint, The image in the clipboard is larger, Send, !y