alexpgp: (Default)
[personal profile] alexpgp
Some work came in this morning, but not enough to keep me busy for very long. Galina and I contemplated going to Durango but decided against it; with no specific purpose in mind, and with gas getting more expensive, the trek begins to resemble an unnecessary expense.

We went downtown instead and made the usual rounds, looking for a caster that's gone missing on something that needs to be rolling around, with no luck. I picked up a copy of Marguerite Duras' Le square from the bookshelf at the Humane Society's shop.

* * *
I first mentioned using the runas program back in September 2009, where I described how to display two PowerPoint files in separate windows. The technique is applicable to pretty much any applications, but the only fly in the ointment is that it requires you to create a separate, password-protected user account on your machine, so that when the runas command line is invoked, you have to pause and enter the appropriate password.

In dealing with this morning's problem having to do with pressing the spacebar while the shift key was still depressed, I took a fresh look at the Autohotkey macro I had created to create a second PowerPoint window and then dug into the Autohotkey documentation. With a little tweaking, the macro now pauses until the Windows CMD window opens with a prompt for the password, and then enters the password and hits the Enter key.

So, for example, if your phantom user is 'gertrude' and her password is 'stein', the macro—assigned to the "Windows+p" key combination—might look like this:
#p::
Run runas /user:gertrude "c:\[...path-to...]\powerpnt.exe"
WinWaitActive, C:\Windows\system32\runas.exe, , 2
Send stein{Enter}
return
I inadvertently stumbled into quite a cache of useful code at the utility's web site, but there are only so many hours in the day.

And some of them have to be devoted to marketing. ;^)

Cheers...

Profile

alexpgp: (Default)
alexpgp

January 2018

S M T W T F S
  1 2 3456
7 8910111213
14 15 16 17181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 28th, 2026 09:29 pm
Powered by Dreamwidth Studios