Search found 49 matches

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

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: PowerShell
Topic: Script works fine in Powershell/ISE but not in PrimalForms.
Replies: 18
Views: 10301

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: PowerShell
Topic: Use keypress to trigger script
Replies: 2
Views: 1926

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: PowerShell
Topic: Use keypress to trigger script
Replies: 2
Views: 1926

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 8:53 am
Forum: PowerShell
Topic: Can you add a cls function to clear a text box
Replies: 3
Views: 3207

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 8:48 am
Forum: PowerShell
Topic: Scroll bars in text box - how do you get them to work?
Replies: 5
Views: 7808

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 8:21 am
Forum: PowerShell
Topic: Can you add a cls function to clear a text box
Replies: 3
Views: 3207

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 1:20 pm
Forum: PowerShell
Topic: Scroll bars in text box - how do you get them to work?
Replies: 5
Views: 7808

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 12:57 pm
Forum: PowerShell
Topic: Scroll bars in text box - how do you get them to work?
Replies: 5
Views: 7808

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 10:06 am
Forum: PowerShell
Topic: Get-adobject doesn't work using GUI
Replies: 17
Views: 14112

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.