Log in

View Full Version : Skipping a license agreement form.


5aLIVE
September 30th, 2009, 09:00
I have an app that is coded in Delphi.

There is a menu item from the main menu that takes me to a particular form but not before displaying a license agreement form.

The license agreement form needs you to tick a check box to enable a button which is inactive. Once you click on the Proceed button you get to the form you actually want to use.

What I would like to do is have the main menu item jump straight to the desired form without having to click a check box and press the Proceed button every time.

Using DeDe I was able to identify each of theses events and their addresses.

My thinking was that that If I assemble a jump to the start address of Proceed button event code in place of the main menu item event code I would be able to achieve this.

Instead, it causes an access violation. The jump is definitely to the correct address.

Is my approach to problem the right one or is have I overlooked something?

Any suggestions on how you would tackle this problem and what the problem might be would be much appreciated.

Thanks for reading.
5aLIVE.

GoldStar611
September 30th, 2009, 18:44
Quote:
[Originally Posted by 5aLIVE;83173]What I would like to do is have the main menu item jump straight to the desired form without having to click a check box and press the Proceed button every time.
5aLIVE.


It isn't that easy to just jmp from one place to another, you have to clean up the stack or just bypass that call (and parameters all together). Instead of jumping try replacing the Call and assoicated Pushes. You may also have to change a conditional jump if that call returns if the user agrees or does not agree to call the main window of the program.

5aLIVE
October 1st, 2009, 13:01
Thank you for taking the time to reply to my posts.

I think if I am to make any headway with either of these problems it would be instructive to try and create a skeleton application which contains similar forms and resource objects to match that of the app I wish to modify. That way I'll gain a better understanding of how forms are created and how each of the different objects work together.

Running my skeleton app in a debugger with source code will give me a good insight into how the message processing loop works. I'm hoping that it will be possible to export the forms from my app into my skeleton program and edit it such that it only contains the objects and events of interest.

Okay, I now need to read up on some Delphi tutorials to get famaliarise myself with the IDE and the basics of building an app.

Regards,
5aLIVE.

ZeroPoint777
October 1st, 2009, 21:54
I will nop all codes and rewrite them