![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | PowerPad Here is an app I posted for the psh community. PowerPad is a quick way to get multi-line edit from the cmd line when you just want to edit a function, script, or block quick and run it and return to console. http://powerlocker.com Hope it finds a spot in your toolbox. -- William Stacey [C# MVP] |
| | #2 (permalink) |
| Guest | RE: PowerPad Looks like this could be useful Is there any thought to combining the community products into a single snapin rather than having multiple snapins to download and install -- Richard Siddaway Please note that all scripts are supplied "as is" and with no warranty Blog: http://richardsiddaway.spaces.live.com/ PowerShell User Group: http://www.get-psuguk.org.uk "William Stacey [C# MVP]" wrote: > Here is an app I posted for the psh community. PowerPad is a quick way to > get multi-line edit from the cmd line when you just want to edit a function, > script, or block quick and run it and return to console. > http://powerlocker.com > > Hope it finds a spot in your toolbox. > > -- > William Stacey [C# MVP] > > > > |
| | #3 (permalink) |
| Guest | RE: PowerPad Nice work! I think this little tool will be quite useful for me as I'm not a fan of those big and slow script editors that take ages to start up. I like it! Two questions: - can I customize the toolbar to add my own buttons for scripts? - F5 seems to run everything in the window, is there a hotkey that only runs the code in the current line? -- greetings dreeschkind "William Stacey [C# MVP]" wrote: > Here is an app I posted for the psh community. PowerPad is a quick way to > get multi-line edit from the cmd line when you just want to edit a function, > script, or block quick and run it and return to console. > http://powerlocker.com > > Hope it finds a spot in your toolbox. > > -- > William Stacey [C# MVP] > > > > |
| | #4 (permalink) |
| Guest | RE: PowerPad Uh, I got another question: Is it possible to print the prompt somewhere in the PowerPad window or in the PowerShell window? I don't like to have it in the window title of the powershell window and can see it using PowerPad at the moment. -- greetings dreeschkind "William Stacey [C# MVP]" wrote: > Here is an app I posted for the psh community. PowerPad is a quick way to > get multi-line edit from the cmd line when you just want to edit a function, > script, or block quick and run it and return to console. > http://powerlocker.com > > Hope it finds a spot in your toolbox. > > -- > William Stacey [C# MVP] > > > > |
| | #5 (permalink) |
| Guest | RE: PowerPad highligh the line you want toi execute and press F5 or execute -- Richard Siddaway Please note that all scripts are supplied "as is" and with no warranty Blog: http://richardsiddaway.spaces.live.com/ PowerShell User Group: http://www.get-psuguk.org.uk "dreeschkind" wrote: > Nice work! I think this little tool will be quite useful for me as I'm not a > fan of those big and slow script editors that take ages to start up. > I like it! > > Two questions: > - can I customize the toolbar to add my own buttons for scripts? > - F5 seems to run everything in the window, is there a hotkey that only runs > the code in the current line? > > -- > greetings > dreeschkind > > "William Stacey [C# MVP]" wrote: > > > Here is an app I posted for the psh community. PowerPad is a quick way to > > get multi-line edit from the cmd line when you just want to edit a function, > > script, or block quick and run it and return to console. > > http://powerlocker.com > > > > Hope it finds a spot in your toolbox. > > > > -- > > William Stacey [C# MVP] > > > > > > > > |
| | #6 (permalink) |
| Guest | Re: PowerPad Thanks. RichS answered the F5 question. Have to do by selection as if nothing was highlighted it could not know if F5 means run the whole script or just the current line. I guess I could add another key (i.e. F6) to run current line regarless of what is selected or not. I plan on adding snippet support so you can save your favorite snippets and have em available quickly. I don't want to get into a treeview, but keep it simple. Maybe just a list down the right side or something. Love the feedback. -- William Stacey [C# MVP] PowerLocker, PowerPad www.powerlocker.com "dreeschkind" <dreeschkind@discussions.microsoft.com> wrote in message news:F5EA91E0-0339-457A-AE33-34BFA25901F5@microsoft.com... | Nice work! I think this little tool will be quite useful for me as I'm not a | fan of those big and slow script editors that take ages to start up. | I like it! | | Two questions: | - can I customize the toolbar to add my own buttons for scripts? | - F5 seems to run everything in the window, is there a hotkey that only runs | the code in the current line? | | -- | greetings | dreeschkind | | "William Stacey [C# MVP]" wrote: | | > Here is an app I posted for the psh community. PowerPad is a quick way to | > get multi-line edit from the cmd line when you just want to edit a function, | > script, or block quick and run it and return to console. | > http://powerlocker.com | > | > Hope it finds a spot in your toolbox. | > | > -- | > William Stacey [C# MVP] | > | > | > | > |
| | #7 (permalink) |
| Guest | Re: PowerPad Don't follow completely. The prompt does not appear in psh console, because as far as it is concerned, we are still running a cmd that has not returned yet. IMO, it is also a visual indication that you can't just start typing in the psh window because you have a PowerPad window open. Could add a fony prompt before we start, but not sure this adds anything. Any other opinions on this? -- William Stacey [C# MVP] PowerLocker, PowerPad www.powerlocker.com "dreeschkind" <dreeschkind@discussions.microsoft.com> wrote in message news:3E4DB103-88A2-4646-A899-BDD059DAB999@microsoft.com... | Uh, I got another question: | | Is it possible to print the prompt somewhere in the PowerPad window or in | the PowerShell window? I don't like to have it in the window title of the | powershell window and can see it using PowerPad at the moment. | | -- | greetings | dreeschkind | | | "William Stacey [C# MVP]" wrote: | | > Here is an app I posted for the psh community. PowerPad is a quick way to | > get multi-line edit from the cmd line when you just want to edit a function, | > script, or block quick and run it and return to console. | > http://powerlocker.com | > | > Hope it finds a spot in your toolbox. | > | > -- | > William Stacey [C# MVP] | > | > | > | > |
| | #8 (permalink) |
| Guest | Re: PowerPad "William Stacey [C# MVP]" wrote: > Don't follow completely. Sorry, spelling mistake. My last post should read "... and I can NOT see the prompt using PowerPad right now." > The prompt does not appear in psh console, because > as far as it is concerned, we are still running a cmd that has not returned > yet. Ok I see, but when I type for example 'cd c:\windows' and hit F5, I don't know if the current location really has changed because I can't see my prompt anymore when using PowerPad. Hm, I'm not quite sure... Whould it be possible to automatically run the prompt function after you run the code by hitting F5 / F6 ? I think that should print the prompt in the main window. > IMO, it is also a visual indication that you can't just start typing > in the psh window because you have a PowerPad window open. Could add a fony > prompt before we start, but not sure this adds anything. No need for a fake prompt ;-) , but maybe something like an additional textbox at the top or bottom of PowerPad that only takes one line and runs the code when hitting Enter. Just like the real powershell prompt, but with clipboard (ctrl-v) support! Then I could switch between the single line (command mode) and the multi-line textbox (scripting) using Tab. Does this make any sense to anyone else than me? Also Snippet support as a treeview is a good idea as long as it doesn't make PowerPad too slow. Right now it performs very well on my old notebook! Btw.: Did I mention that I like the idea of a snippet PsDRIVE (which might be linked to the PowerShell community via internet)?! Maybe someone has the time to implement this, unfortunately I'm too busy for this right now. ![]() -- greetings dreeschkind > -- > William Stacey [C# MVP] > PowerLocker, PowerPad > www.powerlocker.com > > > > "dreeschkind" <dreeschkind@discussions.microsoft.com> wrote in message > news:3E4DB103-88A2-4646-A899-BDD059DAB999@microsoft.com... > | Uh, I got another question: > | > | Is it possible to print the prompt somewhere in the PowerPad window or in > | the PowerShell window? I don't like to have it in the window title of the > | powershell window and can see it using PowerPad at the moment. > | > | -- > | greetings > | dreeschkind > | > | > | "William Stacey [C# MVP]" wrote: > | > | > Here is an app I posted for the psh community. PowerPad is a quick way > to > | > get multi-line edit from the cmd line when you just want to edit a > function, > | > script, or block quick and run it and return to console. > | > http://powerlocker.com > | > > | > Hope it finds a spot in your toolbox. > | > > | > -- > | > William Stacey [C# MVP] > | > > | > > | > > | > > > > |
| | #9 (permalink) |
| Guest | Re: PowerPad I like those ideas in general. I will see what I can come up with. -- William Stacey [C# MVP] PowerLocker, PowerPad www.powerlocker.com "dreeschkind" <dreeschkind@discussions.microsoft.com> wrote in message news:4161190C-7FA4-47BC-9E02-6F69AC329E60@microsoft.com... | "William Stacey [C# MVP]" wrote: | | > Don't follow completely. | | Sorry, spelling mistake. My last post should read "... and I can NOT see the | prompt using PowerPad right now." | | > The prompt does not appear in psh console, because | > as far as it is concerned, we are still running a cmd that has not returned | > yet. | | Ok I see, but when I type for example 'cd c:\windows' and hit F5, I don't | know if the current location really has changed because I can't see my prompt | anymore when using PowerPad. Hm, I'm not quite sure... Whould it be possible | to automatically run the prompt function after you run the code by hitting F5 | / F6 ? I think that should print the prompt in the main window. | | > IMO, it is also a visual indication that you can't just start typing | > in the psh window because you have a PowerPad window open. Could add a fony | > prompt before we start, but not sure this adds anything. | | No need for a fake prompt ;-) , but maybe something like an additional | textbox at the top or bottom of PowerPad that only takes one line and runs | the code when hitting Enter. Just like the real powershell prompt, but with | clipboard (ctrl-v) support! Then I could switch between the single line | (command mode) and the multi-line textbox (scripting) using Tab. | Does this make any sense to anyone else than me? | | | Also Snippet support as a treeview is a good idea as long as it doesn't make | PowerPad too slow. Right now it performs very well on my old notebook! | | Btw.: Did I mention that I like the idea of a snippet PsDRIVE (which might | be linked to the PowerShell community via internet)?! Maybe someone has the | time to implement this, unfortunately I'm too busy for this right now. ![]() | | -- | greetings | dreeschkind | | > -- | > William Stacey [C# MVP] | > PowerLocker, PowerPad | > www.powerlocker.com | > | > | > | > "dreeschkind" <dreeschkind@discussions.microsoft.com> wrote in message | > news:3E4DB103-88A2-4646-A899-BDD059DAB999@microsoft.com... | > | Uh, I got another question: | > | | > | Is it possible to print the prompt somewhere in the PowerPad window or in | > | the PowerShell window? I don't like to have it in the window title of the | > | powershell window and can see it using PowerPad at the moment. | > | | > | -- | > | greetings | > | dreeschkind | > | | > | | > | "William Stacey [C# MVP]" wrote: | > | | > | > Here is an app I posted for the psh community. PowerPad is a quick way | > to | > | > get multi-line edit from the cmd line when you just want to edit a | > function, | > | > script, or block quick and run it and return to console. | > | > http://powerlocker.com | > | > | > | > Hope it finds a spot in your toolbox. | > | > | > | > -- | > | > William Stacey [C# MVP] | > | > | > | > | > | > | > | > | > | > | > |
| | #10 (permalink) |
| Guest | Re: PowerPad "William Stacey [C# MVP]" <william.stacey@gmail.com> wrote in message news:e37IDImoHHA.5032@TK2MSFTNGP02.phx.gbl... > Here is an app I posted for the psh community. PowerPad is a quick way to > get multi-line edit from the cmd line when you just want to edit a > function, > script, or block quick and run it and return to console. > http://powerlocker.com > > Hope it finds a spot in your toolbox. Hi William, Thanks for sharing this tool, very nice indeed! As a quick remark: the readme notes refer to installutil.exe for the installation of the snap-in without mentioning where the tool is located in Windows. The problem is that it is located in a directory which is not part of the default path, so most users will see it as a non recognised program. You may want to indicate that the tool can be found in the .NET framework installation directory, e.g. the directory below for .NET v2: C:\Windows\Microsoft.NET\Framework\v2.0.50727\ Also, by default a PowerShell session running in Vista will not have write access to any directory under Program Files. As a result, running installutil.exe will fail when attempting to write its log and state files in the PowerPad directory. You may want to add a note that users running Vista will have to open an elevated session to install the tool. Jacques |
| |
| |