jamesemerson Posted February 22, 2009 Share Posted February 22, 2009 Is there a way to send commands/actions/inputs to a window that is open (but is unseen in the background because another window is maximized on top of it), without actually pulling up that background window and making it the window on top of the screen? If so, could you please lead me in the right direction? I'd be very grateful! Thank you, James Link to comment Share on other sites More sharing options...
Bert Posted February 22, 2009 Share Posted February 22, 2009 Controlsend WinGetHandle The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
jamesemerson Posted February 22, 2009 Author Share Posted February 22, 2009 ControlsendWinGetHandleYour expertise is exceeded only by your brilliance. Exactly what I was looking for, thank you so much! Link to comment Share on other sites More sharing options...
jamesemerson Posted February 22, 2009 Author Share Posted February 22, 2009 ControlsendWinGetHandleActually, I'm trying to send arrow key commands to a flash player in the background, but when I run AutoIt Window Info, the class name, etc. for this is all blank!So I'm not sure what to enter for the class part of the ControlSend function. I tried using "" and "Edit1" and "Button" and nothing seems to work...Any ideas? Link to comment Share on other sites More sharing options...
jamesemerson Posted February 22, 2009 Author Share Posted February 22, 2009 ControlsendWinGetHandleHere's a screen shot...Normally, pressing the right arrow key forwards vocabulary words...But I can't seem to find the control for that text in this Flash Player window... Link to comment Share on other sites More sharing options...
Bert Posted February 23, 2009 Share Posted February 23, 2009 (edited) DO NOT PM ME OR ANY OTHER MVPS WHEN YOU HAVE A ISSUE. THANK YOU.This will be the third time I have told you to stop this. Stop pissing me off. Edited February 23, 2009 by Volly The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
jamesemerson Posted February 23, 2009 Author Share Posted February 23, 2009 DO NOT PM ME OR ANY OTHER MVPS WHEN YOU HAVE A ISSUE. THANK YOU.This will be the third time I have told you to stop this. Stop pissing me off.I'm very sorry for the hassle and confusion, Volly. I hope you will forgive me... Link to comment Share on other sites More sharing options...
jamesemerson Posted February 23, 2009 Author Share Posted February 23, 2009 Does anyone know if we are allowed to post screen shots that identify the problem? I did so, and at first the jpg seemed to be in the system just fine, but it seems to have died overnight and become a broken link. If we aren't supposed to post them, then lesson learned. I won't do it again. If posting screen shots is permitted, then I think I might repost the screen shot, if that is okay. That way, others can learn more about the problem for the benefit of future users who may run into the same wall. Link to comment Share on other sites More sharing options...
jvanegmond Posted February 23, 2009 Share Posted February 23, 2009 (edited) Posting screenshots is fine, great actually, as it helps us identify the problem. I think the place you used to host it died overnight. One suggestion for this, though. If you need to post a couple of screenshots, don't put them in tags, but put then in tags. Also, Flash windows do not have controls like regular windows do. Edited February 23, 2009 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
jamesemerson Posted February 23, 2009 Author Share Posted February 23, 2009 Posting screenshots is fine, great actually, as it helps us identify the problem. I think the place you used to host it died overnight. One suggestion for this, though. If you need to post a couple of screenshots, don't put them in tags, but put then in tags. Also, Flash windows do not have controls like regular windows do. Thanks for the tip about posting screenshots. Much appreciated, Manadar. The screen shot basically just showed that the Flash window was blanked out in terms of Control information, but you were helpful in letting me know that Flash windows behave differently than normal ones and don't have such Controls. So reposting the screen shot won't help much in this case. With that in mind, I'm assuming that I won't be able to use ControlSend for such a window, because I can't identify a Control. Does anyone else happen to have any good ideas about how I might be able to send a "{RIGHT}" (i.e., right arrow) text entry to a window, without maximizing it and making it the window on top, when it is a Flash window? I have no problem with regular Send using the function to send the input when the window on top. What I'm hoping for is a way to send the right arrow input to a Flash window that is running in the background, behind other windows. A tricky problem (for this newbie, anyway). Many thanks, James Link to comment Share on other sites More sharing options...
Bert Posted February 23, 2009 Share Posted February 23, 2009 James, you have been sent instructions earlier this morning about PMing multiple times to me after being asked more than once not to. I understand you eagerness to solve the issue. However, please follow the instructions that were sent to you. Thank you. -------------------------------- Try this for a solution - To solve your problem, create a GUI. Embed the flash object in it. Look for VollyViewer in my signature to see how to do this. Set the position of the GUI so that it is off the viewable screen. For example, set y for WindowMove to -3000 after making the GUI but BEFORE making it visible. Use MouseGetPos then MouseClick to click via x/y coordinates to click on the flash control but have the speed set to 0 so the mouse moves instantly then moves back to where it was. That way you can interact with it without causing too much of a problem. This will not allow you to interact with the control. It will however, allow you to interact with the window that the control is located in. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
jamesemerson Posted February 23, 2009 Author Share Posted February 23, 2009 Try this for a solution - To solve your problem, create a GUI. Embed the flash object in it. Look for VollyViewer in my signature to see how to do this. Set the position of the GUI so that it is off the viewable screen. For example, set y for WindowMove to -3000 after making the GUI but BEFORE making it visible. Use MouseGetPos then MouseClick to click via x/y coordinates to click on the flash control but have the speed set to 0 so the mouse moves instantly then moves back to where it was. That way you can interact with it without causing too much of a problem. This will not allow you to interact with the control. It will however, allow you to interact with the window that the control is located in.This sounds like a very elegant solution, Volly, and you've explained it in excellent detail. I haven't gotten into GUIs yet, but this gives me a good opportunity to get my feet wet. I should be able to take it from here. The advice, in all respects, is hugely appreciated. Thank you. 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