Jump to content
Tuts 4 You

"Run to user code" not working?


MarkJoy

Recommended Posts

Hello there,

1. Is it me or the "Run to user code" not working?

It seems that I could not make x64dbg pause at user code. Is it a bug?

2. Could you comment out the "SetForegroundWindow" in cbStep()?

I have a plugin which is a dialogbox that has 2 button "Run" and "Pause". When it is in running mode, it continuously calls "eSingleStep", SetForegroundWindow in cbStep() is called and makes the main window form active. Since then I could not press the "Pause" button on my dialogbox because the main window is always active and the dialogbox is always inactive.

Thank you.

SetForeground.png

Link to comment

Hey, next time please open issues at http://issues.x64dbg.com

Now, run to user also never worked for me. An alternative solution is to call "TraceIntoConditional mod.party(cip)==0"

I could comment it out, but generally I like this behavior. Also it is called before the plugin callback for a reason, just call the same thing on your dialog for every step to solve it :D

Probably I will make an option at some point, multiple people have complained about this already.

Link to comment

Thank you. I will open issue next time.

Hopefully, you will make an option soon because calling SetForegroundWindow on dialog causes it active, but immediately it again switches to main window. It continues switching between dialog and mainwindow and I still could not click pause button.

Link to comment
11 hours ago, MarkJoy said:

Thank you. I will open issue next time.

Hopefully, you will make an option soon because calling SetForegroundWindow on dialog causes it active, but immediately it again switches to main window. It continues switching between dialog and mainwindow and I still could not click pause button.

This may help as a temporary solution to your problem in the meantime...

https://tuts4you.com/download.php?view.3551

Ted.

  • Like 1
Link to comment

Hehe, Olly 1 has similar issue - when running script that's using breakpoints/single steps in a loop (simple example - tracing some VM), olly keeps calling SetForegroundWindow. This gets bloody annoying if you want to do something else while the script is running.

Link to comment
16 hours ago, Teddy Rogers said:

This may help as a temporary solution to your problem in the meantime...

https://tuts4you.com/download.php?view.3551

Ted.

Thanks Ted. It's a good tool, unfortunately it's not working in my case. It's switching between mainwindow and my dialogbox even with superpin enable.

While waiting for mrexodia to add an option, I can compile a custom x64dbg that fits my use.

@kao: yeah, it's very annoying!! :))

Link to comment

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
×
×
  • Create New...