Welcome! Log In Create A New Profile

Advanced

PSPad editor improvement with bvserial

Posted by Acuario 
PSPad editor improvement with bvserial
January 13, 2015 07:42AM
I do like the idea of being able to communicate between bvserial and PSPad, sending scripts etc. makes life so much easier but..
I got fed up having to switch between the two to run my recently uploaded code - there must be an easier way..
So I came up with:

Name your main function bvMain
Add the following to ByPic\edit\Script\VBScript\bypic.vbs file:

'Run bvMain when Shift+F5 pressed
sub runbvMain
dim sends
sends = "bvMain" & vbCrLf
Pipe(sends) ' instruction to bvserial
end Sub

Add the following line to the init sub
addMenuItem "&6. Run bvMain","BvSerial", "runbvMain", "Shift+F5"

Save the file and if you are doing the changes in PSPad then either close/reopen or select Scripts/Recompile scripts

Now when you press Shift F5 the function bvMain will be run - no need to switch windows any more.

Hope this helps someone.
Sorry, only registered users may post in this forum.

Click here to login