久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='1wrBc'></tfoot>

    1. <legend id='1wrBc'><style id='1wrBc'><dir id='1wrBc'><q id='1wrBc'></q></dir></style></legend>
      <i id='1wrBc'><tr id='1wrBc'><dt id='1wrBc'><q id='1wrBc'><span id='1wrBc'><b id='1wrBc'><form id='1wrBc'><ins id='1wrBc'></ins><ul id='1wrBc'></ul><sub id='1wrBc'></sub></form><legend id='1wrBc'></legend><bdo id='1wrBc'><pre id='1wrBc'><center id='1wrBc'></center></pre></bdo></b><th id='1wrBc'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='1wrBc'><tfoot id='1wrBc'></tfoot><dl id='1wrBc'><fieldset id='1wrBc'></fieldset></dl></div>
      • <bdo id='1wrBc'></bdo><ul id='1wrBc'></ul>

      <small id='1wrBc'></small><noframes id='1wrBc'>

      1. 用代碼模擬窗口拖放?

        Simulate windows drag and drop with code?(用代碼模擬窗口拖放?)

        <small id='zkU1m'></small><noframes id='zkU1m'>

      2. <legend id='zkU1m'><style id='zkU1m'><dir id='zkU1m'><q id='zkU1m'></q></dir></style></legend>

        1. <i id='zkU1m'><tr id='zkU1m'><dt id='zkU1m'><q id='zkU1m'><span id='zkU1m'><b id='zkU1m'><form id='zkU1m'><ins id='zkU1m'></ins><ul id='zkU1m'></ul><sub id='zkU1m'></sub></form><legend id='zkU1m'></legend><bdo id='zkU1m'><pre id='zkU1m'><center id='zkU1m'></center></pre></bdo></b><th id='zkU1m'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='zkU1m'><tfoot id='zkU1m'></tfoot><dl id='zkU1m'><fieldset id='zkU1m'></fieldset></dl></div>

                <tfoot id='zkU1m'></tfoot>
                  <tbody id='zkU1m'></tbody>
                  <bdo id='zkU1m'></bdo><ul id='zkU1m'></ul>
                  本文介紹了用代碼模擬窗口拖放?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我想我過去可能問過類似的問題,但我仍然卡住了......

                  I think I may have asked a similar question in the past, but I am still stuck...

                  作為自動化流程的一部分,我必須將媒體文件的特定子集導(dǎo)入"到封閉源代碼的第三方應(yīng)用程序(Dartfish,以防萬一).情況如下:

                  As part of an automated process, I must "import" a specific subset of media files into a closed-source third-party application (Dartfish, incase it matters). Here is the situation:

                  • 媒體(視頻)文件都在一個文件夾中(有 1000 多個,不幸的是,重組不是一種選擇).
                  • 在我正在編寫的腳本的任何給定迭代中,只有 13 個特定文件必須導(dǎo)入到應(yīng)用程序中.
                  • 應(yīng)用中沒有必須接收文件的導(dǎo)入功能.
                  • 這個相同的應(yīng)用確實允許您將文件拖放到特定窗格中,這允許您從本質(zhì)上導(dǎo)入它們.
                  • The media (video) files are all in one folder (there are 1000s of them, and reorganization is not an option unfortunately).
                  • On any given iteration of the script I am writing, only 13 specific files must be imported into the application.
                  • There is no import function in the app that must receive the files.
                  • This same app does allow you to drap and drop files into a specific pane, and this allows you to essentially import them.

                  我目前使用的解決方法非常不穩(wěn)定和丑陋,并且使用正則表達式查詢的復(fù)雜過程來隔離 Xplorer2 中的文件,然后使用 AutoIT 選擇它們,最后將它們拖到應(yīng)用程序中.

                  The current workaround I am using is very unstable and ugly, and uses a complex procedure of regex queries to isolate the files in Xplorer2, and then uses AutoIT to select them, and then finally drag them into the application.

                  建議的解決方案:

                  我需要一種在任何給定時間將我需要的特定視頻文件子集拖放到此應(yīng)用程序中的方法,最好不要自動單擊和光標(biāo)移動(此設(shè)置中有太多故障點).

                  I need a way to drag and drop the specific subset of video files I need at any given time into this application, preferably without automating clicks and cursor movement (there are way too many points of failure in this setup).

                  我本質(zhì)上只是將文件名列表傳遞給應(yīng)用程序(通過將它們拖到那里),所以我認(rèn)為必須有一種方法可以純粹在代碼中自動進行這種拖放 - 可能使用 C/C#/C++ 和窗戶API?如果解決方案可以以某種方式移植到 Python,則可以加分……但不是必需的.

                  I am essentially just passing a list of filenames to the application (by dragging them there), so I figure there has got to be a way of automating this drag and drop purely in code - perhaps using C/C#/C++ and the windows API? Bonus points if the solution can be ported to Python somehow... but not necessary.

                  如果有人能指出我正確的方向(編程語言無關(guān)緊要;我會學(xué)習(xí)我需要知道的任何東西),最好給我一個基本大綱或示例,說明我如何完成這樣的任務(wù), 我真的很感激!這已經(jīng)讓我發(fā)瘋一年多了!

                  If anyone can point me in the right direction with this (programming language doesn't matter; I'll learn whatever I need to know), and preferably give me a basic outline or example of how I can accomplish such a task, I would really appreciate it! This has been driving me nuts for over a year now!

                  推薦答案

                  1) 注入目標(biāo)進程

                  2) 獲取目標(biāo)窗口的IDropTarget

                  2) Get IDropTarget of target window

                  function GetDropTargetFromWnd(AWnd: HWND): IDropTarget;
                  var Unknow: IUnknown;
                  begin
                    Unknow := IUnknown(GetProp(AWnd, PChar(GlobalFindAtom('OleDropTargetInterface'))));
                    if Assigned(Unknow) then
                      Unknow.QueryInterface(IDropTarget, Result)
                  end;
                  

                  3) 使用您的文件創(chuàng)建 IDataObject

                  3) Create IDataObject with your files

                  4) 調(diào)用 IDropTarget.DragEnter

                  4) Call IDropTarget.DragEnter

                  5) 調(diào)用 IDropTarget.Drop

                  5) Call IDropTarget.Drop

                  更新算法:

                  1) 使用 RegisterWindowMessage 注冊您的唯一消息

                  1) Register your unique message with RegisterWindowMessage

                  2) 使用 WH_CALLWNDPROC 類型的 SetWindowsHookEx 安裝全局掛鉤(需要額外的 dll)

                  2) Install global hook with SetWindowsHookEx with WH_CALLWNDPROC type (additional dll is required)

                  3) 創(chuàng)建 13 個名稱的固定文件

                  3) Create fixed file with 13 names

                  4) 將步驟 1 中注冊的唯一消息發(fā)送到目標(biāo)窗口

                  4) Send unique message registered in steip 1 to target window

                  5) 你的鉤子會被加載到目標(biāo)進程中

                  5) You hook will be loaded into target process

                  6) 內(nèi)部鉤子程序檢查消息

                  6) Inside hook procedure check message

                  7) 如果消息是您的唯一消息

                  7) If message is your unique message

                  7.1) 獲取目標(biāo)窗口的IDropTarget

                  7.1) Get IDropTarget of target window

                  7.2) 從固定文件加載名稱

                  7.2) Load names from fixed file

                  7.3) 使用您的文件創(chuàng)建 IDataObject

                  7.3) Create IDataObject with your files

                  7.4) 調(diào)用 IDropTarget.DragEnter

                  7.4) Call IDropTarget.DragEnter

                  7.5) 調(diào)用 IDropTarget.Drop

                  7.5) Call IDropTarget.Drop

                  8) 如果所有文件尚未處理,則轉(zhuǎn)到 3

                  8) If all files don’t processed yet then go to 3

                  9) 卸載全局鉤子

                  更新 2

                  您也可以嘗試從掛鉤 dll 向目標(biāo)窗口發(fā)送 WM_DROPFILES 消息.

                  Also you can try send WM_DROPFILES message to target window from you hook dll.

                  這篇關(guān)于用代碼模擬窗口拖放?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標(biāo)簽的 XML)
                  Parsing tables, cells with Html agility in C#(在 C# 中使用 Html 敏捷性解析表格、單元格)
                  delete element from xml using LINQ(使用 LINQ 從 xml 中刪除元素)
                  Parse malformed XML(解析格式錯誤的 XML)
                      <bdo id='e7j14'></bdo><ul id='e7j14'></ul>

                      <small id='e7j14'></small><noframes id='e7j14'>

                        <tbody id='e7j14'></tbody>

                            <tfoot id='e7j14'></tfoot>
                          1. <legend id='e7j14'><style id='e7j14'><dir id='e7j14'><q id='e7j14'></q></dir></style></legend>

                            <i id='e7j14'><tr id='e7j14'><dt id='e7j14'><q id='e7j14'><span id='e7j14'><b id='e7j14'><form id='e7j14'><ins id='e7j14'></ins><ul id='e7j14'></ul><sub id='e7j14'></sub></form><legend id='e7j14'></legend><bdo id='e7j14'><pre id='e7j14'><center id='e7j14'></center></pre></bdo></b><th id='e7j14'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='e7j14'><tfoot id='e7j14'></tfoot><dl id='e7j14'><fieldset id='e7j14'></fieldset></dl></div>
                            主站蜘蛛池模板: 99久久精品国产一区二区三区 | 日韩一区二区三区在线播放 | 欧美精品www | 精品黑人一区二区三区国语馆 | 精品国产99久久久久久宅男i | 性大毛片视频 | 天天插天天操 | 亚洲高清视频在线观看 | 观看av| 精品一区二区三 | www.日日日| 久视频在线| 中文国产字幕 | 成年人免费观看 | 午夜国产在线观看 | 色综合天天综合网国产成人网 | 亚洲欧美成人 | 少妇精品视频 | 9.1成人免费看片 | 日本伊人久久 | 中文字幕黄色 | 中文字幕日韩欧美 | 黄色一级视频在线观看 | 亚洲精品视频免费 | 欧美韩日| 亚洲人成免费 | 亚洲视频国产 | 中文字幕免费在线看线人动作大片 | 黄色一极片 | 蜜桃综合网| 中文字幕一区二区三区视频 | 日韩理论片 | 国产日韩欧美在线 | 蜜桃成人av | 久久机热这里只有精品 | 中文在线字幕免费观看 | 自拍偷拍一区二区三区 | 91青青草 | 久久88| 久久精品一区二区国产 | 成人福利视频在线观看 |