2014-12-17
와.. 비활성 해결했습니다.
조언주신 핸콕님 정말 감사드립니다. 정말정말 감사드려요 한단계 앞으로 전진할 발판을 만들어 주셔서 감사합니다.
API의 SendMessage와 PostMessage를 이용해 해당 윈도우창(프로세스)에 마우스 이벤트를 메세지로 날릴수있습니다.
각 메서드의 내용은
[DllImport("user32.dll")]
public static extern int PostMessage(int hwnd, int wMsg, int wParam, uint lParam);
[DllImport("user32.dll")]
public static extern int SendMessage(int hwnd, int wMsg, int wParam, uint lParam);
입니다.
Wparam에 x IParam에 y를 넣는지알고 겁나해봤는데 안되서 포기했었습니다.
사용법은
PostMessage(mHwnd, (int)PostMessageParam.WM_LBUTTonDOWN, (int)PostMessageParam2.MK_LBUTTON, IParam);
Thread.Sleep(200);
PostMessage(mHwnd, (int)PostMessageParam.WM_LBUTTonUP, (int)PostMessageParam2.MK_LBUTTON, IParam);
입니다. 여기서 IParm에 좌표를 넣어야합니다.
그좌표를 만드는 방법은
uint lParam = MakeLparam(x, y);
private uint MakeLparam(int x, int y)
{
??????????? uint val = Convert.ToUInt32( (x * 0x10000) | (y & 0xFFFF));
??????????? return val;
}
이건 따온거구요
private uint MakePos(int x, int y)
{
??????????? string binx = Common.HexToBin16(Common.Int32ToHex(x)).Substring(0,16);
??????????? string biny = Common.HexToBin16(Common.Int32ToHex(y)).Substring(0,16);
??????????? string val = biny + binx;
??????????? uint IParam = Convert.ToUInt32(val, 2);
}
이건 제가 만들었습니다.
x 좌표와 y좌표를 섞어서 상위 16비트에 x를 하위 16비트에 y를 넣어서 합쳐서 넘겨주더라고요
이러니 안되었지.. ㅠㅠ
이내용은
http://blog.naver.com/nunteng1/114854587
여기에서 보고 했습니다.. 휴휴
여튼 매크로 개발자님들 이거보시면 도움되실거에요~
참고로 WM Parameter모아논거도 올려놓을게요
public enum PostMessageParam2
??????? {
??????????? GWL_WNDPROC = (-4),
??????????? GWL_HINSTANCE = (-6),
??????????? GWL_HWNDPARENT = (-8),
??????????? GWL_STYLE = (-16),
??????????? GWL_EXSTYLE = (-20),
??????????? GWL_USERDATA = (-21),
??????????? GWL_ID = (-12),
??????????? GCL_MENUNAME = (-8),
??????????? GCL_HBRBACKGROUND = (-10),
??????????? GCL_HCURSOR = (-12),
??????????? GCL_HICON = (-14),
??????????? GCL_HMODULE = (-16),
??????????? GCL_CBWNDEXTRA = (-18),
??????????? GCL_CBCLSEXTRA = (-20),
??????????? GCL_WNDPROC = (-24),
??????????? GCL_STYLE = (-26),
??????????? GCW_ATOM = (-32),
??????????? GCL_HICONSM = (-34),
??????????? WM_NULL = 0x00000,
??????????? WM_CREATE = 0x00001,
??????????? WM_DESTROY = 0x00002,
??????????? WM_MOVE = 0x00003,
??????????? WM_SIZE = 0x00005,
??????????? WM_ACTIVATE = 0x00006,
??????????? WA_INACTIVE = 0,
??????????? WA_ACTIVE = 1,
??????????? WA_CLICKACTIVE = 2,
??????????? WM_SETFOCUS = 0x00007,
??????????? WM_KILLFOCUS = 0x00008,
??????????? WM_ENABLE = 0x0000A,
??????????? WM_SETREDRAW = 0x0000B,
??????????? WM_SETTEXT = 0x0000C,
??????????? WM_GETTEXT = 0x0000D,
??????????? WM_GETTEXTLENGTH = 0x0000E,
??????????? WM_PAINT = 0x0000F,
??????????? WM_CLOSE = 0x000010,
??????????? WM_QUERYENDSESSION = 0x000011,
??????????? WM_QUIT = 0x000012,
??????????? WM_QUERYOPEN = 0x000013,
??????????? WM_ERASEBKGND = 0x000014,
??????????? WM_SYSCOLORCHANGE = 0x000015,
??????????? WM_ENDSESSION = 0x000016,
??????????? WM_SHOWWINDOW = 0x000018,
??????????? WM_WININICHANGE = 0x00001A,
??????????? WM_SETTINGCHANGE = WM_WININICHANGE,
??????????? WM_DEVMODECHANGE = 0x00001B,
??????????? WM_ACTIVATEAPP = 0x00001C,
??????????? WM_FONTCHANGE = 0x00001D,
??????????? WM_TIMECHANGE = 0x00001E,
??????????? WM_CANCELMODE = 0x00001F,
??????????? WM_SETCURSOR = 0x000020,
??????????? WM_MOUSEACTIVATE = 0x000021,
??????????? WM_CHILDACTIVATE = 0x000022,
??????????? WM_QUEUESYNC = 0x000023,
??????????? WM_GETMINMAXINFO = 0x000024,
??????????? WM_PAINTICON = 0x000026,
??????????? WM_ICONERASEBKGND = 0x000027,
??????????? WM_NEXTDLGCTL = 0x000028,
??????????? WM_SPOOLERSTATUS = 0x00002A,
??????????? WM_DRAWITEM = 0x00002B,
??????????? WM_MEASUREITEM = 0x00002C,
??????????? WM_DELETEITEM = 0x00002D,
??????????? WM_VKEYTOITEM = 0x00002E,
??????????? WM_CHARTOITEM = 0x00002F,
??????????? WM_SETFONT = 0x000030,
??????????? WM_GETFONT = 0x000031,
??????????? WM_SETHOTKEY = 0x000032,
??????????? WM_GETHOTKEY = 0x000033,
??????????? WM_QUERYDRAGICON = 0x000037,
??????????? WM_COMPAREITEM = 0x000039,
??????????? WM_GETOBJECT = 0x00003D,
??????????? WM_COMPACTING = 0x000041,
??????????? WM_WINDOWPOSCHANGING = 0x000046,
??????????? WM_WINDOWPOSCHANGED = 0x000047,
??????????? WM_POWER = 0x000048,
??????????? PWR_OK = 1,
??????????? PWR_FAIL = (-1),
??????????? PWR_SUSPENDREQUEST = 1,
??????????? PWR_SUSPENDRESUME = 2,
??????????? PWR_CRITICALRESUME = 3,
??????????? WM_COPYDATA = 0x00004A,
??????????? WM_CANCELJOURNAL = 0x00004B,
??????????? WM_NOTIFY = 0x00004E,
??????????? WM_INPUTLANGCHANGEREQUEST = 0x000050,
??????????? WM_INPUTLANGCHANGE = 0x000051,
??????????? WM_TCARD = 0x000052,
??????????? WM_HELP = 0x000053,
??????????? WM_USERCHANGED = 0x000054,
??????????? WM_NOTIFYFORMAT = 0x000055,
??????????? NFR_ANSI = 1,
??????????? NFR_UNICODE = 2,
??????????? NF_QUERY = 3,
??????????? NF_REQUERY = 4,
??????????? WM_CONTEXTMENU = 0x00007B,
??????????? WM_STYLECHANGING = 0x00007C,
??????????? WM_STYLECHANGED = 0x00007D,
??????????? WM_DISPLAYCHANGE = 0x00007E,
??????????? WM_GETICON = 0x00007F,
??????????? WM_SETICON = 0x000080,
??????????? WM_NCCREATE = 0x000081,
??????????? WM_NCDESTROY = 0x000082,
??????????? WM_NCCALCSIZE = 0x000083,
??????????? WM_NCHITTEST = 0x000084,
??????????? WM_NCPAINT = 0x000085,
??????????? WM_NCACTIVATE = 0x000086,
??????????? WM_GETDLGCODE = 0x000087,
??????????? WM_SYNCPAINT = 0x000088,
??????????? WM_NCMOUSEMOVE = 0x0000A0,
??????????? WM_NCLBUTTONDOWN = 0x0000A1,
??????????? WM_NCLBUTTONUP = 0x0000A2,
??????????? WM_NCLBUTTONDBLCLK = 0x0000A3,
??????????? WM_NCRBUTTONDOWN = 0x0000A4,
??????????? WM_NCRBUTTONUP = 0x0000A5,
??????????? WM_NCRBUTTONDBLCLK = 0x0000A6,
??????????? WM_NCMBUTTONDOWN = 0x0000A7,
??????????? WM_NCMBUTTONUP = 0x0000A8,
??????????? WM_NCMBUTTONDBLCLK = 0x0000A9,
??????????? WM_KEYFIRST = 0x0000100,
??????????? WM_KEYDOWN = 0x0000100,
??????????? WM_KEYUP = 0x0000101,
??????????? WM_CHAR = 0x0000102,
??????????? WM_DEADCHAR = 0x0000103,
??????????? WM_SYSKEYDOWN = 0x0000104,
??????????? WM_SYSKEYUP = 0x0000105,
??????????? WM_SYSCHAR = 0x0000106,
??????????? WM_SYSDEADCHAR = 0x0000107,
??????????? WM_KEYLAST = 0x0000108,
??????????? WM_IME_STARTCOMPOSITION = 0x000010D,
??????????? WM_IME_ENDCOMPOSITION = 0x000010E,
??????????? WM_IME_COMPOSITION = 0x000010F,
??????????? WM_IME_KEYLAST = 0x000010F,
??????????? WM_INITDIALOG = 0x0000110,
??????????? WM_COMMAND = 0x0000111,
??????????? WM_SYSCOMMAND = 0x0000112,
??????????? WM_TIMER = 0x0000113,
??????????? WM_HSCROLL = 0x0000114,
??????????? WM_VSCROLL = 0x0000115,
??????????? WM_INITMENU = 0x0000116,
??????????? WM_INITMENUPOPUP = 0x0000117,
??????????? WM_MENUSELECT = 0x000011F,
??????????? WM_MENUCHAR = 0x0000120,
??????????? WM_ENTERIDLE = 0x0000121,
??????????? WM_MENURBUTTONUP = 0x0000122,
??????????? WM_MENUDRAG = 0x0000123,
??????????? WM_MENUGETOBJECT = 0x0000124,
??????????? WM_UNINITMENUPOPUP = 0x0000125,
??????????? WM_MENUCOMMAND = 0x0000126,
??????????? WM_CTLCOLORMSGBOX = 0x0000132,
??????????? WM_CTLCOLOREDIT = 0x0000133,
??????????? WM_CTLCOLORLISTBOX = 0x0000134,
??????????? WM_CTLCOLORBTN = 0x0000135,
??????????? WM_CTLCOLORDLG = 0x0000136,
??????????? WM_CTLCOLORSCROLLBAR = 0x0000137,
??????????? WM_CTLCOLORSTATIC = 0x0000138,
??????????? WM_MOUSEFIRST = 0x0000200,
??????????? WM_MOUSEMOVE = 0x0000200,
??????????? WM_LBUTTONDOWN = 0x0000201,
??????????? WM_LBUTTONUP = 0x0000202,
??????????? WM_LBUTTONDBLCLK = 0x0000203,
??????????? WM_RBUTTONDOWN = 0x0000204,
??????????? WM_RBUTTONUP = 0x0000205,
??????????? WM_RBUTTONDBLCLK = 0x0000206,
??????????? WM_MBUTTONDOWN = 0x0000207,
??????????? WM_MBUTTONUP = 0x0000208,
??????????? WM_MBUTTONDBLCLK = 0x0000209,
??????????? WM_MOUSEWHEEL = 0x000020A,
??????????? WM_MOUSELAST = 0x000020A,
??????????? WM_PARENTNOTIFY = 0x0000210,
??????????? WM_ENTERMENULOOP = 0x0000211,
??????????? WM_EXITMENULOOP = 0x0000212,
??????????? WM_NEXTMENU = 0x0000213,
??????????? WM_SIZING = 0x0000214,
??????????? WM_CAPTURECHANGED = 0x0000215,
??????????? WM_MOVING = 0x0000216,
??????????? PBT_APMQUERYSUSPEND = 0x00000,
??????????? PBT_APMQUERYSTANDBY = 0x00001,
??????????? PBT_APMQUERYSUSPENDFAILED = 0x00002,
??????????? PBT_APMQUERYSTANDBYFAILED = 0x00003,
??????????? PBT_APMSUSPEND = 0x00004,
??????????? PBT_APMSTANDBY = 0x00005,
??????????? PBT_APMRESUMECRITICAL = 0x00006,
??????????? PBT_APMRESUMESUSPEND = 0x00007,
??????????? PBT_APMRESUMESTANDBY = 0x00008,
??????????? PBTF_APMRESUMEFROMFAILURE = 0x00001,
??????????? PBT_APMBATTERYLOW = 0x00009,
??????????? PBT_APMPOWERSTATUSCHANGE = 0x0000A,
??????????? PBT_APMOEMEVENT = 0x0000B,
??????????? PBT_APMRESUMEAUTOMATIC = 0x000012,
??????????? WM_DEVICECHANGE = 0x0000219,
??????????? WM_MDICREATE = 0x0000220,
??????????? WM_MDIDESTROY = 0x0000221,
??????????? WM_MDIACTIVATE = 0x0000222,
??????????? WM_MDIRESTORE = 0x0000223,
??????????? WM_MDINEXT = 0x0000224,
??????????? WM_MDIMAXIMIZE = 0x0000225,
??????????? WM_MDITILE = 0x0000226,
??????????? WM_MDICASCADE = 0x0000227,
??????????? WM_MDIICONARRANGE = 0x0000228,
??????????? WM_MDIGETACTIVE = 0x0000229,
??????????? WM_MDISETMENU = 0x0000230,
??????????? WM_ENTERSIZEMOVE = 0x0000231,
??????????? WM_EXITSIZEMOVE = 0x0000232,
??????????? WM_DROPFILES = 0x0000233,
??????????? WM_MDIREFRESHMENU = 0x0000234,
??????????? WM_IME_SETCONTEXT = 0x0000281,
??????????? WM_IME_NOTIFY = 0x0000282,
??????????? WM_IME_CONTROL = 0x0000283,
??????????? WM_IME_COMPOSITIONFULL = 0x0000284,
??????????? WM_IME_SELECT = 0x0000285,
??????????? WM_IME_CHAR = 0x0000286,
??????????? WM_IME_REQUEST = 0x0000288,
??????????? WM_IME_KEYDOWN = 0x0000290,
??????????? WM_IME_KEYUP = 0x0000291,
??????????? WM_MOUSEHOVER = 0x00002A1,
??????????? WM_MOUSELEAVE = 0x00002A3,
??????????? WM_CUT = 0x0000300,
??????????? WM_COPY = 0x0000301,
??????????? WM_PASTE = 0x0000302,
??????????? WM_CLEAR = 0x0000303,
??????????? WM_UNDO = 0x0000304,
??????????? WM_RENDERFORMAT = 0x0000305,
??????????? WM_RENDERALLFORMATS = 0x0000306,
??????????? WM_DESTROYCLIPBOARD = 0x0000307,
??????????? WM_DRAWCLIPBOARD = 0x0000308,
??????????? WM_PAINTCLIPBOARD = 0x0000309,
??????????? WM_VSCROLLCLIPBOARD = 0x000030A,
??????????? WM_SIZECLIPBOARD = 0x000030B,
??????????? WM_ASKCBFORMATNAME = 0x000030C,
??????????? WM_CHANGECBCHAIN = 0x000030D,
??????????? WM_HSCROLLCLIPBOARD = 0x000030E,
??????????? WM_QUERYNEWPALETTE = 0x000030F,
??????????? WM_PALETTEISCHANGING = 0x0000310,
??????????? WM_PALETTECHANGED = 0x0000311,
??????????? WM_HOTKEY = 0x0000312,
??????????? WM_PRINT = 0x0000317,
??????????? WM_PRINTCLIENT = 0x0000318,
??????????? WM_HANDHELDFIRST = 0x0000358,
??????????? WM_HANDHELDLAST = 0x000035F,
??????????? WM_AFXFIRST = 0x0000360,
??????????? WM_AFXLAST = 0x000037F,
??????????? WM_PENWINFIRST = 0x0000380,
??????????? WM_PENWINLAST = 0x000038F,
??????????? WM_APP = 0x00008000,
??????????? WM_USER = 0x0000400,
??????????? WMSZ_LEFT = 1,
??????????? WMSZ_RIGHT = 2,
??????????? WMSZ_TOP = 3,
??????????? WMSZ_TOPLEFT = 4,
??????????? WMSZ_TOPRIGHT = 5,
??????????? WMSZ_BOTTOM = 6,
??????????? WMSZ_BOTTOMLEFT = 7,
??????????? WMSZ_BOTTOMRIGHT = 8,
??????????? HTERROR = (-2),
??????????? HTTRANSPARENT = (-1),
??????????? HTNOWHERE = 0,
??????????? HTCLIENT = 1,
??????????? HTCAPTION = 2,
??????????? HTSYSMENU = 3,
??????????? HTGROWBOX = 4,
??????????? HTSIZE = HTGROWBOX,
??????????? HTMENU = 5,
??????????? HTHSCROLL = 6,
??????????? HTVSCROLL = 7,
??????????? HTMINBUTTON = 8,
??????????? HTMAXBUTTON = 9,
??????????? HTLEFT = 10,
??????????? HTRIGHT = 11,
??????????? HTTOP = 12,
??????????? HTTOPLEFT = 13,
??????????? HTTOPRIGHT = 14,
??????????? HTBOTTOM = 15,
??????????? HTBOTTOMLEFT = 16,
??????????? HTBOTTOMRIGHT = 17,
??????????? HTBORDER = 18,
??????????? HTREDUCE = HTMINBUTTON,
??????????? HTZOOM = HTMAXBUTTON,
??????????? HTSIZEFIRST = HTLEFT,
??????????? HTSIZELAST = HTBOTTOMRIGHT,
??????????? HTOBJECT = 19,
??????????? HTCLOSE = 20,
??????????? HTHELP = 21,
??????????? SMTO_NORMAL = 0x00000,
??????????? SMTO_BLOCK = 0x00001,
??????????? SMTO_ABORTIFHUNG = 0x00002,
??????????? SMTO_NOTIMEOUTIFNOTHUNG = 0x00008,
??????????? MA_ACTIVATE = 1,
??????????? MA_ACTIVATEANDEAT = 2,
??????????? MA_NOACTIVATE = 3,
??????????? MA_NOACTIVATEANDEAT = 4,
??????????? ICON_SMALL = 0,
??????????? ICON_BIG = 1,
??????????? SIZE_RESTORED = 0,
??????????? SIZE_MINIMIZED = 1,
??????????? SIZE_MAXIMIZED = 2,
??????????? SIZE_MAXSHOW = 3,
??????????? SIZE_MAXHIDE = 4,
??????????? SIZENORMAL = SIZE_RESTORED,
??????????? SIZEICONIC = SIZE_MINIMIZED,
??????????? SIZEFULLSCREEN = SIZE_MAXIMIZED,
??????????? SIZEZOOMSHOW = SIZE_MAXSHOW,
??????????? SIZEZOOMHIDE = SIZE_MAXHIDE,
??????????? WVR_ALIGNTOP = 0x000010,
??????????? WVR_ALIGNLEFT = 0x000020,
??????????? WVR_ALIGNBOTTOM = 0x000040,
??????????? WVR_ALIGNRIGHT = 0x000080,
??????????? WVR_HREDRAW = 0x0000100,
??????????? WVR_VREDRAW = 0x0000200,
??????????? WVR_VALIDRECTS = 0x0000400,
??????????? MK_LBUTTON = 0x00001,
??????????? MK_RBUTTON = 0x00002,
??????????? MK_SHIFT = 0x00004,
??????????? MK_CONTROL = 0x00008,
??????????? MK_MBUTTON = 0x000010,
??????????? TME_HOVER = 0x00001,
??????????? TME_LEAVE = 0x00002,
??????????? TME_QUERY = 0x000040000000,
??????????? WS_OVERLAPPED = 0x00000,
??????????? WS_CHILD = 0x000040000000,
??????????? WS_MINIMIZE = 0x000020000000,
??????????? WS_VISIBLE = 0x000010000000,
??????????? WS_DISABLED = 0x00008000000,
??????????? WS_CLIPSIBLINGS = 0x00004000000,
??????????? WS_CLIPCHILDREN = 0x00002000000,
??????????? WS_MAXIMIZE = 0x00001000000,
??????????? WS_BORDER = 0x0000800000,
??????????? WS_DLGFRAME = 0x0000400000,
??????????? WS_VSCROLL = 0x0000200000,
??????????? WS_HSCROLL = 0x0000100000,
??????????? WS_SYSMENU = 0x000080000,
??????????? WS_THICKFRAME = 0x000040000,
??????????? WS_GROUP = 0x000020000,
??????????? WS_TABSTOP = 0x000010000,
??????????? WS_MINIMIZEBOX = 0x000020000,
??????????? WS_MAXIMIZEBOX = 0x000010000,
??????????? WS_TILED = WS_OVERLAPPED,
??????????? WS_ICONIC = WS_MINIMIZE,
??????????? WS_SIZEBOX = WS_THICKFRAME,
??????????? WS_CHILDWINDOW = (WS_CHILD),
??????????? WS_EX_DLGMODALFRAME = 0x00001,
??????????? WS_EX_NOPARENTNOTIFY = 0x00004,
??????????? WS_EX_TOPMOST = 0x00008,
??????????? WS_EX_ACCEPTFILES = 0x000010,
??????????? WS_EX_TRANSPARENT = 0x000020,
??????????? WS_EX_MDICHILD = 0x000040,
??????????? WS_EX_TOOLWINDOW = 0x000080,
??????????? WS_EX_WINDOWEDGE = 0x0000100,
??????????? WS_EX_CLIENTEDGE = 0x0000200,
??????????? WS_EX_CONTEXTHELP = 0x0000400,
??????????? WS_EX_RIGHT = 0x00001000,
??????????? WS_EX_LEFT = 0x00000,
??????????? WS_EX_RTLREADING = 0x00002000,
??????????? WS_EX_LTRREADING = 0x00000,
??????????? WS_EX_LEFTSCROLLBAR = 0x00004000,
??????????? WS_EX_RIGHTSCROLLBAR = 0x00000,
??????????? WS_EX_CONTROLPARENT = 0x000010000,
??????????? WS_EX_STATICEDGE = 0x000020000,
??????????? WS_EX_APPWINDOW = 0x000040000,
??????????? SB_HORZ = 0,
??????????? SB_VERT = 1,
??????????? SB_CTL = 2,
??????????? SB_BOTH = 3,
??????????? SB_LINEUP = 0,
??????????? SB_LINELEFT = 0,
??????????? SB_LINEDOWN = 1,
??????????? SB_LINERIGHT = 1,
??????????? SB_PAGEUP = 2,
??????????? SB_PAGELEFT = 2,
??????????? SB_PAGEDOWN = 3,
??????????? SB_PAGERIGHT = 3,
??????????? SB_THUMBPOSITION = 4,
??????????? SB_THUMBTRACK = 5,
??????????? SB_TOP = 6,
??????????? SB_LEFT = 6,
??????????? SB_BOTTOM = 7,
??????????? SB_RIGHT = 7,
??????????? SB_ENDSCROLL = 8,
??????????? SW_HIDE = 0,
??????????? SW_SHOWNORMAL = 1,
??????????? SW_NORMAL = 1,
??????????? SW_SHOWMINIMIZED = 2,
??????????? SW_SHOWMAXIMIZED = 3,
??????????? SW_MAXIMIZE = 3,
??????????? SW_SHOWNOACTIVATE = 4,
??????????? SW_SHOW = 5,
??????????? SW_MINIMIZE = 6,
??????????? SW_SHOWMINNOACTIVE = 7,
??????????? SW_SHOWNA = 8,
??????????? SW_RESTORE = 9,
??????????? SW_SHOWDEFAULT = 10,
??????????? SW_FORCEMINIMIZE = 11,
??????????? SW_MAX = 11,
??????????? HIDE_WINDOW = 0,
??????????? SHOW_OPENWINDOW = 1,
??????????? SHOW_ICONWINDOW = 2,
??????????? SHOW_FULLSCREEN = 3,
??????????? SHOW_OPENNOACTIVATE = 4,
??????????? SW_PARENTCLOSING = 1,
??????????? SW_OTHERZOOM = 2,
??????????? SW_PARENTOPENING = 3,
??????????? SW_OTHERUNZOOM = 4,
??????????? AW_HOR_POSITIVE = 0x00001,
??????????? AW_HOR_NEGATIVE = 0x00002,
??????????? AW_VER_POSITIVE = 0x00004,
??????????? AW_VER_NEGATIVE = 0x00008,
??????????? AW_CENTER = 0x000010,
??????????? AW_HIDE = 0x000010000,
??????????? AW_ACTIVATE = 0x000020000,
??????????? AW_SLIDE = 0x000040000,
??????????? AW_BLEND = 0x000080000,
??????????? KF_EXTENDED = 0x0000100,
??????????? KF_DLGMODE = 0x0000800,
??????????? KF_MENUMODE = 0x00001000,
??????????? KF_ALTDOWN = 0x00002000,
??????????? KF_REPEAT = 0x00004000,
??????????? KF_UP = 0x00008000,
??????????? VK_LBUTTON = 0x00001,
??????????? VK_RBUTTON = 0x00002,
??????????? VK_CANCEL = 0x00003,
??????????? VK_BACK = 0x00008,
??????????? VK_TAB = 0x00009,
??????????? VK_CLEAR = 0x0000C,
??????????? VK_RETURN = 0x0000D,
??????????? VK_SHIFT = 0x000010,
??????????? VK_CONTROL = 0x000011,
??????????? VK_MENU = 0x000012,
??????????? VK_PAUSE = 0x000013,
??????????? VK_CAPITAL = 0x000014,
??????????? VK_KANA = 0x000015,
??????????? VK_HANGUL = 0x000015,
??????????? VK_JUNJA = 0x000017,
??????????? VK_FINAL = 0x000018,
??????????? VK_HANJA = 0x000019,
??????????? VK_KANJI = 0x000019,
??????????? VK_ESCAPE = 0x00001B,
??????????? VK_CONVERT = 0x00001C,
??????????? VK_NONCONVERT = 0x00001D,
??????????? VK_ACCEPT = 0x00001E,
??????????? VK_MODECHANGE = 0x00001F,
??????????? VK_SPACE = 0x000020,
??????????? VK_PRIOR = 0x000021,
??????????? VK_NEXT = 0x000022,
??????????? VK_END = 0x000023,
??????????? VK_HOME = 0x000024,
??????????? VK_LEFT = 0x000025,
??????????? VK_UP = 0x000026,
??????????? VK_RIGHT = 0x000027,
??????????? VK_DOWN = 0x000028,
??????????? VK_SELECT = 0x000029,
??????????? VK_PRINT = 0x00002A,
??????????? VK_EXECUTE = 0x00002B,
??????????? VK_SNAPSHOT = 0x00002C,
??????????? VK_INSERT = 0x00002D,
??????????? VK_DELETE = 0x00002E,
??????????? VK_HELP = 0x00002F,
??????????? VK_LWIN = 0x00005B,
??????????? VK_RWIN = 0x00005C,
??????????? VK_APPS = 0x00005D,
??????????? VK_NUMPAD0 = 0x000060,
??????????? VK_NUMPAD1 = 0x000061,
??????????? VK_NUMPAD2 = 0x000062,
??????????? VK_NUMPAD3 = 0x000063,
??????????? VK_NUMPAD4 = 0x000064,
??????????? VK_NUMPAD5 = 0x000065,
??????????? VK_NUMPAD6 = 0x000066,
??????????? VK_NUMPAD7 = 0x000067,
??????????? VK_NUMPAD8 = 0x000068,
??????????? VK_NUMPAD9 = 0x000069,
??????????? VK_MULTIPLY = 0x00006A,
??????????? VK_ADD = 0x00006B,
??????????? VK_SEPARATOR = 0x00006C,
??????????? VK_SUBTRACT = 0x00006D,
??????????? VK_DECIMAL = 0x00006E,
??????????? VK_DIVIDE = 0x00006F,
??????????? VK_F1 = 0x000070,
??????????? VK_F2 = 0x000071,
??????????? VK_F3 = 0x000072,
??????????? VK_F4 = 0x000073,
??????????? VK_F5 = 0x000074,
??????????? VK_F6 = 0x000075,
??????????? VK_F7 = 0x000076,
??????????? VK_F8 = 0x000077,
??????????? VK_F9 = 0x000078,
??????????? VK_F10 = 0x000079,
??????????? VK_F11 = 0x00007A,
??????????? VK_F12 = 0x00007B,
??????????? VK_F13 = 0x00007C,
??????????? VK_F14 = 0x00007D,
??????????? VK_F15 = 0x00007E,
??????????? VK_F16 = 0x00007F,
??????????? VK_F17 = 0x000080,
??????????? VK_F18 = 0x000081,
??????????? VK_F19 = 0x000082,
??????????? VK_F20 = 0x000083,
??????????? VK_F21 = 0x000084,
??????????? VK_F22 = 0x000085,
??????????? VK_F23 = 0x000086,
??????????? VK_F24 = 0x000087,
??????????? VK_NUMLOCK = 0x000090,
??????????? VK_SCROLL = 0x000091,
??????????? VK_LSHIFT = 0x0000A0,
??????????? VK_RSHIFT = 0x0000A1,
??????????? VK_LCONTROL = 0x0000A2,
??????????? VK_RCONTROL = 0x0000A3,
??????????? VK_LMENU = 0x0000A4,
??????????? VK_RMENU = 0x0000A5,
??????????? VK_PROCESSKEY = 0x0000E5,
??????????? VK_ATTN = 0x0000F6,
??????????? VK_CRSEL = 0x0000F7,
??????????? VK_EXSEL = 0x0000F8,
??????????? VK_EREOF = 0x0000F9,
??????????? VK_PLAY = 0x0000FA,
??????????? VK_ZOOM = 0x0000FB,
??????????? VK_NONAME = 0x0000FC,
??????????? VK_PA1 = 0x0000FD,
??????????? VK_OEM_CLEAR = 0x0000FE,
??????? }
-------------------------------------------------------------------------------------------------------------
안녕하세요 디벨로퍼입니다.
제가 주력으로 사용하는 언어는 C#입니다
매크로 올라오는것들을 보면 비활성으로 마우스를 조작하여 비활성 매크로를 만들어서 올리시는분들 많으신데요
정말 궁금합니다. 어떻게 비활성으로 하시는지..
API를 사용하여 PostMessage나 SendMessage를 사용하시는지 아니면
다른 어떤것을 사용하시는지..
하신 방법에대해 조언을 얻고자 문의 남겨요.
개발자님들이 자기기술에대해 공유를 잘 안하시는데 어느한분이라도 좀 알려주신다면 정말 감사드리겠습니다.
본글에 댓글로써 여러사람과 공유할수 있게 선처 부탁드립니다. 감사합니다.
dll 만들어서 배포해주시면 더욱더 감사드리구욤..