Jump to content
Tuts 4 You
Sign in to follow this  
Kurapica

Flock, plugin for x64dbg

Recommended Posts

Kurapica

The idea of this plugin is simple and was born out an agony I went through while using x64dbg with IDA simultaneously.

It solves the problem of stealing the window focus from x64dbg to IDA, each time you single-step in the debugger, the  sync

plugin in x64dbg will send the sync info to IDA to show the current location and this makes IDA get the focus, very annoying when

you are doing a quick single stepping !

This plugin simply restores the focus to the debugger, that's all.

 

Flock_32_64.rar

  • Like 1

Share this post


Link to post
mrexodia

Doesn't unchecking this option work?

H8i7HXz.png

Share this post


Link to post
Kurapica

Nop, I tried everything.

Share this post


Link to post
mrexodia

Alright, here is some more stable code for forcing another foreground window (this one supposedly sometimes holds CTRL):

//https://www.codeproject.com/Tips/76427/How-to-bring-window-to-top-with-SetForegroundWindo
static void SetForegroundWindowInternal(HWND hWnd)
{
    if(!hWnd || !IsWindow(hWnd))
        return;

    //to unlock SetForegroundWindow we need to imitate pressing [Alt] key
    bool bPressed = false;
    if((GetAsyncKeyState(VK_MENU) & 0x8000) == 0)
    {
        bPressed = true;
        keybd_event(VK_MENU, 0, KEYEVENTF_EXTENDEDKEY | 0, 0);
    }

    SetForegroundWindow(hWnd);

    if(bPressed)
        keybd_event(VK_MENU, 0, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0);
}

 

  • Like 1

Share this post


Link to post
Kurapica

very close to what I used in this silly plugin, imitating a CTRL click.

  • Like 2

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×
×
  • Create New...