Announcement

Collapse
No announcement yet.

Mouse click in minimized window

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • midhat992
    replied
    I am sorry if i just posted a question that seems like it needs a half an hour answer but let me clear this up. I know a thing or two about dlls also i know how to get a handle of the window i know how to do everything except how to simulate left button click on a window using it's handle.

    I searched the forum upside down as always and could not find anything more than this

    sNull = "";
    sWindowName = string.format("\"%s\"", "OPAOPA");

    va_args = sNull..","..sWindowName;

    sRet = DLL.CallFunction("User32.dll", "FindWindowA", va_args, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);

    so i added the SendMessage later in the script but notthing happens. I saw that a lot of people struggle with the Dll.CallFunction.

    So at the end the script looked like this:


    sNull = "";
    sWindowName = string.format("\"%s\"", "OPAOPA");

    va_args = sNull..","..sWindowName;

    sRet = DLL.CallFunction("User32.dll", "FindWindowA", va_args, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);

    SendMessage(sRet,BM_CLICK,100,50);

    -- DOES NOT WORK..

    It get's the handle of the window but won't send any clicks.

    Leave a comment:


  • midhat992
    replied
    I now se that it can be done with dll call with user32.dll but can't quite figure out what parameters to use. Anyone fammiliar with dll functions? Thanks.

    Leave a comment:


  • midhat992
    started a topic Mouse click in minimized window

    Mouse click in minimized window

    Ok, so here is the long story short. I am developing a automatization program for private purpouse, to control different applications while they are minimized by clicking on buttons inside them (while they being minimized). I searched the net and found that Autokey can do this, is there any plugin or any possibilities to do this inside Autoplay? I want to make script something like this

    loop
    (
    x= 100
    y= 50
    application1 == (gethandleblabla)
    if event == 1 then
    mclick(application1,x,y)
    end
    )

    I know this maybe not be so much usable script but i guess you know what is it that i want to do. ps: i know how to do "click on" but i need "click on" somewhere inside the window while it is minimized.
Working...
X