Search found 49 matches

by daviesg6
Tue Apr 22, 2014 2:45 pm
Forum: Windows PowerShell
Topic: Script works fine in Powershell/ISE but not in PrimalForms.
Replies: 18
Views: 6613

Re: Script works fine in Powershell/ISE but not in PrimalFor

My apologies, the one script that is not working is actually lines 61 and 62, the code is {$resultsbox.Text=Get-QADObject bellevue.edu/$UserEntryTextBox.Text -SecurityMask Dacl | Get-QADPermission -UseExtendedMatch -Inherited -SchemaDefault -Property ('name') | Out-String $ResultsBox.Focus()} When r...
by daviesg6
Tue Apr 22, 2014 1:17 pm
Forum: Windows PowerShell
Topic: Script works fine in Powershell/ISE but not in PrimalForms.
Replies: 18
Views: 6613

Script works fine in Powershell/ISE but not in PrimalForms.

So, I have a script I created to make a repetitive task easier for my manager. He needs to run reports on who has permissions on specific OUs, so I created a neat little menu based ps1 that let him do this. He has asked if this can be made into a GUI after seeing the forms I created for other tasks....
by daviesg6
Thu Apr 17, 2014 9:57 am
Forum: Windows PowerShell
Topic: Use keypress to trigger script
Replies: 2
Views: 1212

Re: Use keypress to trigger script

There can only be one default action per form. The enter key is assigned to the defined default. You can handle all keys and detect the enter key and have it do anything you want but it has to be hand coded. Thanks, kind of figured that was the case but wanted confirmation. I'll leave it so the use...
by daviesg6
Thu Apr 17, 2014 9:28 am
Forum: Windows PowerShell
Topic: Use keypress to trigger script
Replies: 2
Views: 1212

Use keypress to trigger script

I have created a form with multiple PowerShell scripts available to the user (primarily searches for AD objects). Each of these has the option to run and display on screen or export to file via buttons. I would like to improve this by allowing users the option to hit a key (enter for example) to run...
by daviesg6
Thu Feb 06, 2014 9:53 am
Forum: Windows PowerShell
Topic: Can you add a cls function to clear a text box
Replies: 3
Views: 2148

Re: Can you add a cls function to clear a text box

I had already looked at that, it's very useful but doesn't give any pointers to the specific function I want to add here. What I want is not a mission critical requirement but a nice to have option so users can clear what is displayed before performing another search so it is easier for them to read...
by daviesg6
Thu Feb 06, 2014 9:48 am
Forum: Windows PowerShell
Topic: Scroll bars in text box - how do you get them to work?
Replies: 5
Views: 4923

Re: Scroll bars in text box - how do you get them to work?

my apologies, I had not noticed the scroll bars option in the box config. Enabling this gave me the required option.
by daviesg6
Thu Feb 06, 2014 9:21 am
Forum: Windows PowerShell
Topic: Can you add a cls function to clear a text box
Replies: 3
Views: 2148

Can you add a cls function to clear a text box

I would like to add a button to a form that clears the contents of a text box, a bit like using cls to clear the clutter from a powershell window. Does anyone know how to code this? The form was created using primalforms, in the form search results are piped to the text box which is read only to the...
by daviesg6
Tue Feb 04, 2014 2:20 pm
Forum: Windows PowerShell
Topic: Scroll bars in text box - how do you get them to work?
Replies: 5
Views: 4923

Re: Scroll bars in text box - how do you get them to work?

I do not see the scroll bar, if I click the bottom right corner of the results window it moves down a line, but there is no bar.

I also cannot open the demo, it says it was created in a different version of primalforms
by daviesg6
Tue Feb 04, 2014 1:57 pm
Forum: Windows PowerShell
Topic: Scroll bars in text box - how do you get them to work?
Replies: 5
Views: 4923

Scroll bars in text box - how do you get them to work?

hi, I have a need to add vertical scroll bars to a text box (read only box used to display search results). Because of the use of this box I cannot set it to a specific size and be sure it will display everything hence the scroll bars. I have added this to the form, but it does nothing and I can't w...
by daviesg6
Tue Feb 04, 2014 11:06 am
Forum: Windows PowerShell
Topic: Get-adobject doesn't work using GUI
Replies: 17
Views: 10492

Re: Get-adobject doesn't work using GUI

Thank you!

I changed $input to $object, and it worked! thank you very much for pointing me in the direction of this, I wasn't aware it was a reserved variable.