.NET web browser management

I am trying to automate some things in a flash game running in a webbrowser control in my C # program. Using dllll3232 sendmessage, I was able to click on the coordinates on regular pages like Google, but it doesn’t work with flash content. How can i do this? Also, it cannot be detected in a flash game. I have a working one in autoit, but I would like to rewrite it in C # and make it minimized.

+3
source share
3 answers

Why not just call your Autoit / Autohotkey script from your C # program using the System.Diagnostics.Process class?

ProcessStartInfo psi = new ProcessStartInfo("your_script.ahk");
psi.CreateNoWindow = true;

Process procScript = Process.Start(psi);
procScript.WaitForExit();

CreateNoWindow = true, , , WaitForExit(), .

AutoIt AutoHotkey , . #/. NET, , , .

+3

SendMessage PostMessage . 3 , WM_MOUSEMOVE, WM_MOUSEDOWN, WM_MOUSEUP. WM_MOUSEMOVE , WM_MOUSEDOWN WM_MOUSEUP. WM_MOUSEDOWN WM_MOUSEUP . .

+1

Source: https://habr.com/ru/post/1707993/


All Articles