MarkJoy Posted September 7, 2016 Share Posted September 7, 2016 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. Link to comment
mrexodia Posted September 8, 2016 Share Posted September 8, 2016 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 Probably I will make an option at some point, multiple people have complained about this already. Link to comment
MarkJoy Posted September 8, 2016 Author Share Posted September 8, 2016 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
Teddy Rogers Posted September 9, 2016 Share Posted September 9, 2016 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. 1 Link to comment
kao Posted September 9, 2016 Share Posted September 9, 2016 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
MarkJoy Posted September 10, 2016 Author Share Posted September 10, 2016 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
mrexodia Posted September 10, 2016 Share Posted September 10, 2016 https://github.com/x64dbg/x64dbg/commit/ddd229302fd78f05e6671e7f233c3166e671b29c Notice that since you already know how to compile x64dbg it would have been easy enough for you to open a pull request. We are looking for contributers, see http://contribute.x64dbg.com Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now