| View previous topic :: View next topic |
| Author |
Message |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Mar 01, 2016 11:37 am Post subject: Add Auto Assemble Script |
|
|
Is there a quick and easy way to add/create an auto assemble script to the cheat table? If not, I'd like to submit a request for one.
Similar to 'Add Address Manually', we could 'Add Script Manually', that would add a script entry to the table with [enable] and [disable] automatically added to it.
Thanks!
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Mar 01, 2016 5:32 pm Post subject: |
|
|
Hmm. Looks like it is another opportunity to create another Lua extension
_________________
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Mar 01, 2016 5:43 pm Post subject: |
|
|
If possible, that would be great!
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Mar 01, 2016 5:52 pm Post subject: |
|
|
1. install lua extension (look for it in sub-forum)
2. rightclick "Add Address Manually"
3. choose "Add Auto Assemble script"
_________________
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Mar 01, 2016 6:00 pm Post subject: |
|
|
Wow...so fast! Thanks!
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Mar 01, 2016 6:02 pm Post subject: |
|
|
If someone else wants to find the thread. It is called quicker "Add AutoAssemble script"
and file name is quickerAddAutoAssembleScript.lua
_________________
|
|
| Back to top |
|
 |
Csimbi I post too much
Reputation: 98
Joined: 14 Jul 2007 Posts: 3344
|
Posted: Fri Mar 04, 2016 2:13 pm Post subject: |
|
|
Nice.
Is there a way to set the break condition right away when setting a break and trace (using LUA)?
I am really tired of setting a breakpoint in the previous instruction, setting the break and trace, setting condition, turning off breakpoint set, running the process again.
Text in italic is a waste of time and some processes (especially those with multiple threads) don't like to be stopped.
Thanks
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun Mar 06, 2016 12:26 pm Post subject: |
|
|
| Csimbi wrote: | Nice.
Is there a way to set the break condition right away when setting a break and trace (using LUA)?
I am really tired of setting a breakpoint in the previous instruction, setting the break and trace, setting condition, turning off breakpoint set, running the process again.
Text in italic is a waste of time and some processes (especially those with multiple threads) don't like to be stopped.
Thanks |
I'm not sure I understood the procedure you wrote.
| Code: | function breakAndTraceWithBreakpointOnPrev()
local mi=getMemoryViewForm().Breakandtraceinstructions1
local origOnClick = mi.OnClick
mi.OnClick = function (sender)
local address=getMemoryViewForm().DisassemblerView.SelectedAddress
local prevOpcodeAddress = getPreviousOpcode(address)
debug_setBreakpoint(prevOpcodeAddress, 1, bptExecute, function () return 1 end)
local ticks = getTickCount()
local getTickCount = getTickCount
while (debug_isBroken()==false) and (ticks+5000>getTickCount()) do
sleep(50)
processMessages()
end
origOnClick(sender)
debug_removeBreakpoint(prevOpcodeAddress)
if debug_isBroken() then debug_continueFromBreakpoint(co_run) end
end
end
breakAndTraceWithBreakpointOnPrev() |
Its sets a breakpoint on previous opcode, waits max. 5 seconds for a debugger break, launches "break and trace" window, removes breakpoint, run process
_________________
|
|
| Back to top |
|
 |
Csimbi I post too much
Reputation: 98
Joined: 14 Jul 2007 Posts: 3344
|
Posted: Sun Mar 06, 2016 5:49 pm Post subject: |
|
|
| Neat, thanks - at which point do I set the break condition?
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Mon Mar 07, 2016 11:13 am Post subject: |
|
|
this one
_________________
|
|
| Back to top |
|
 |
Csimbi I post too much
Reputation: 98
Joined: 14 Jul 2007 Posts: 3344
|
Posted: Tue Mar 08, 2016 2:17 am Post subject: |
|
|
So it pops up? Before the break&trace is set? (have not tried yet, but can't see that in the code above)
I mean, your description does not mention it:
| Quote: | Its sets a breakpoint on previous opcode, waits max. 5 seconds for a debugger break, launches "break and trace" window, removes breakpoint, run process
|
|
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Mar 08, 2016 1:58 pm Post subject: |
|
|
| Csimbi wrote: | So it pops up? Before the break&trace is set? (have not tried yet, but can't see that in the code above)
I mean, your description does not mention it:
| Quote: | Its sets a breakpoint on previous opcode, waits max. 5 seconds for a debugger break, launches "break and trace" window, removes breakpoint, run process
|
|
Nope, it doesn't popup.
From your first post:
'breakpoint in the previous instruction, setting the break and trace, setting condition, turning off breakpoint set, running the process again"
I thought you were writing about "stop condition" in "break and trace" window.
Then I read this:
"Neat, thanks - at which point do I set the break condition?"
Wait a minute. "Break condition" or "stop condition"? This is why I attached an image and asked.
_________________
|
|
| Back to top |
|
 |
Csimbi I post too much
Reputation: 98
Joined: 14 Jul 2007 Posts: 3344
|
Posted: Tue Mar 08, 2016 4:15 pm Post subject: |
|
|
| Break condition.
|
|
| Back to top |
|
 |
|