jimk Posted August 9, 2007 Share Posted August 9, 2007 Hi, I'm writing my first script and I was doing pretty good until now. Basically I want to send commands to a window only when the computer is locked. I can send the commands easy enough when the computer is not locked: CODEWinActivate("[REGEXPTITLE:.*IBM\sLotus\sNotes]") WinWaitActive("[REGEXPTITLE:.*IBM\sLotus\sNotes]", "", 3) Send("!fM" & $myStatus) I have to assume its not working because it can't activate the window when the screen is locked. So I tried sending the commands without activating the window, using several different combinations of controlsend and controlsendplus. Like: CODE$handle = WinGetHandle("[REGEXPTITLE:.*IBM\sLotus\sNotes]") ControlSend($handle, "", "", "!fMv") However, no matter what I've tried, the controlsends only successfully sends the command when the window is already active. Almost as though I'm not addressing the window correctly. I'd really appreciate some help with my ultimate goal of sending command to a window while locked. But if someone knows what I'm doing wrong with the controlsend, that would help me at least see if it will work. Thanks! Link to comment Share on other sites More sharing options...
Bert Posted August 9, 2007 Share Posted August 9, 2007 umm, dumb question, but why do need to send to it while it is locked? Is it to keep you logged in? Did you use the AU3Info tool? It should ID the window for you. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
jimk Posted August 10, 2007 Author Share Posted August 10, 2007 Not a dumb question, a dumb answer though... I want my instant messenger client to remain active when my computer is locked. The info tool doesn't find a control ID for the menu bar (a common issue from what I hear). I've found controlsend doesn't necessarily need a control id, but it does have some issues. Which is why I tried controlsendplus, which I've heard can sometimes help. But it has the same effect as controlsend. I've also tried, I forget what it's called already, the menu interaction ability of autoit. But the program I'm trying to interact with doesn't seem to be compatible. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now