Cursor.Position, SetCursorPos, mouse_event 를 이용해서 마우스를 컨트롤하는 샘플코드이다. 원하는 위치로 이동할 수도 있고, 마우스 클릭도 조절할 수 있다. using System; using System.Drawing; using System.Runtime.InteropServices; using System.Threading; using System.Windows.Forms; namespace MouseSample { class Program { static void Main(string[] args) { Point myPoint = new Point(); myPoint.X = 10; myPoint.Y = 10; Cursor.Position = myPoint; Thre..
메모장이 실행되기를 기다렸다가, 메모장에 문장을 입력하는 샘플코드이다. Thread를 이용한 것이다. 이것은 AutoIt, AutoHotKey 같은 Task Automation 프로그램 대용으로 활용할 수 있다. using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Threading; using System.Windows.Forms; namespace ProcessTest { class Program { static void Main(string[] args) { ThreadStart myThreadStart = new ThreadStart(DoWork); Thread myThread = new ..
메모장에 Hello World 문장을 입력하는 샘플코드이다. using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Threading; using System.Windows.Forms; namespace ProcessTest { class Program { static void Main(string[] args) { Process[] myProcesses = Process.GetProcessesByName("notepad"); foreach (Process item in myProcesses) { SetForegroundWindow(item.MainWindowHandle); Thread.Sleep(..
- Total
- Today
- Yesterday
- AdSense감추기
- DotNetMagic
- AxWebBrowser
- ScreenHunter
- Regular Expressions
- 애드센스숨기기
- iTextSharp
- autohotkey
- Sample Code
- READYSTATE_COMPLETE
- windows
- Phalanger
- AdSense숨기기
- c#
- jre
- registry
- .net framework
- Rollback Rx
- iText
- 유틸리티
- 애드센스감추기
- download.com
- Service pack
- Microsoft
- Automation
- java
- tagREADYSTATE
- WinAutomation
- 스크린캡쳐
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |