I accidentaly deleted the vuser_init function from the script.
Is there a way to put it back where it belongs...ie before Action1?
Yes u can do that.
1 Re-record the portion(u deleted) of the script.
2 There is an option in VuGen to revert any changes made by user after recording. That is Tools---> Regenrate Vuser Script.
Keep one thing in mind that u will loose any script enhancements in second case
Hope this would help