Community Page
- HuddledMasses.org/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Thanks for the plugins Jaykul! I'm using them on my website which I just migrated from textpattern to wordpress and they are working great... There is just one little problem I am having... It...
- I was able to download the wmv-hd and the powerpoint ones. I gathered info from www.microsoftpdc.com but it seems some formats are not available yet.
- Were you able to get anything aside from wmv to work, Joel?
- Hey Jaykul, I've got some experience with this that I'm happy to share. I've used a Tivo (and hacked it to add a larger hard drive), a Comcast DVR, a Windows XP Media Center with an...
- Hey Joel, Ars Technica is also live tweeting the keynotes here: http://twitter.com/arspdc
Huddled Masses
Joel Bennett's development blog...
Well, I am going to put this all on CodePlex tomorrow, but I promised a few people that I’d throw it up here for them yesterday, so I figured it’s past time to post it … without further ado. The Window Automation Snapin and it’s source shoul
... Continue reading »
1 year ago
RUN,c:\temp\setup.exe
SLEEP,15
WINDOW,msiexec
KEYS,{ENTER}
SLEEP,2
KEYS,{UP}
KEYS,{ENTER}
SLEEP,2
KEYS,{ENTER}
SLEEP,2
KEYS,{ENTER}
SLEEP,2
KEYS,{ENTER}
SLEEP,2
KEYS,{TAB}
KEYS,{TAB}
KEYS,{TAB}
KEYS,mySqlPassword
KEYS,{TAB}
KEYS,{END}
KEYS,\SQL2005
KEYS,{ENTER}
SLEEP,2
KEYS,{ENTER}
SLEEP,2
KEYS,{ENTER}
SLEEP,2
KEYS,{ENTER}
SLEEP,2
KEYS,{ENTER}
SLEEP,2
KEYS,{ENTER}
SLEEP,2
WAITFORBUTTON,&Finish,10,{ENTER}
The WINDOW instruction is only specified at the beginning of the file so that when the script reads the KEYS command, it knows which window to which to send the keystrokes. On most of the screens, I just hit enter but you can probably see one where I enter a SQL password.
My script reads each line and executes the appropriate command using your DLL. I still have the RUN one to complete but everything else works. The WAITFORBUTTON instruction will cause my script to look for the Finish button and it not found, keep checking every 10 seconds and when found, hit Enter.
Again, when I get the RUN instruction implemented, I'll send you the PS1 file and a sample instruction file. My network admin guy drooled a lot when he saw what I had done and wants to automate all the boring installs/upgrades he has to do all the time.
Many thanks again!
George
1 year ago
1)for some strange reason "select-window *powershell*" doesn't return anything even though "select-window *notepad*" does
for the following problems, "$window = select-window *notepad*"
2)Both "get-windowposition $window" and "$window | get-windowposition" will not recognize $window as a parameter
This happens with remove-window, and send-keys
3) "set-windowposition -width 2" does nothing and "set-windowposition $window -maximize " gives and error
I can send the code I am trying with the errors if necessary
1 year ago
Select-Window doesn't seem to like selecting the console windows ... and I don't know why (that is to say, I'll have to crack the code open, so gimme a few days). They show up if you do @Select-Window | ? {$_.ProcessName -eq "powershell"}@ ...
Get-WindowPosition and Remove-Window are broken because I messed up their parameter sets -- they can't resolve which parameter set to use, because they have two sets which are basically identical. That was a typo on my part. Luckily, you can use the @Position@ attribute on the Window objects, and the CloseMainWindow() and CloseProcess() methods...
Send-Keys seems to work fine here ... either via the pipeline or as an argument:
$np = Select-Window notepad
Send-Keys $np "what?"
Select-Window notepad | Send-Keys "%{f4}n"
9 months ago
How can I install the windows automation snapin in my power shell environment. I am getting an error like
File C:\Documents and settings\test\Desktop\windowautomation\WindowAutomation\Install.ps1 cannot be loaded. The file C:\Documents and Settings\test\Desktop\windowautomation\WindowAutomation\Install.ps1 is not digitally signed. The script will not execute on the system. Please see "get-help about_signing" for more details..
At line:0 char:0
9 months ago
If you're using CTP2, you can use Add-Module instead of using the installer.
Also, you should use the version on "CodePlex":http://CodePlex.com/WASP because it's been updated from the one I posted. I've changed that in the article.
9 months ago
I am using CTP2 only can you please guide me how can I install
bacaz Installutil is not recognised as a cmdlet. It will be helpful for me how to install the GUI Automation Snapin from the scrach.
Do I need any other .exe to proceed the installation. The snapin which is not working out for me.
thanks in advance
9 months ago
If I do Add-module I am getting this error.
F:\windowautomation>
Add-Module .\WindowAutomation
Add-Module : The specified module '.\WindowAutomation' was not loaded because the module source file was not found in any package
directory,
At line:1 char:11
+ Add-Module <<<< .\WindowAutomation
9 months ago
Add-Module WindowsAutomation
Otherwise, you can load it by specifying the path to the actual .dll:
Add-Module .\WindowsAutomation.dll
8 months ago
My app that I'm trying to automate pops up a modal dialog when I click a key. However, I can't find any way to select that modal dialog - should this be possible?
Thanks,
seaJhawk
8 months ago