TsunamiZ Posted February 26, 2007 Report Share Posted February 26, 2007 Is there a way to display text box without it stealing window focus? How about display text box minimized? Quote Link to comment Share on other sites More sharing options...
Cory Posted February 26, 2007 Report Share Posted February 26, 2007 Sure. Get the title of the active window, display a text box and leave open, then reactivate the window you started from. Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted February 27, 2007 Author Report Share Posted February 27, 2007 but i dont see a function to 'get the title of the active window' Quote Link to comment Share on other sites More sharing options...
Cory Posted February 27, 2007 Report Share Posted February 27, 2007 Variable Set String from Topmost Window Title. Â <TVAR2:01:06:> Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted February 27, 2007 Author Report Share Posted February 27, 2007 but where do i put the code? Quote Link to comment Share on other sites More sharing options...
Cory Posted February 27, 2007 Report Share Posted February 27, 2007 You will save the window title to a text variable and then open your window. Now activate the window by title saved in that variable.  Variable Set String %T1% from Window Title Text Box Display: Open window Activate Window: "%T1%" Delay 10 Seconds Text Box Close: Open window  <TVAR2:01:06:><TBOX4:T:3:00LeftCenter000278000200:000:Open window%T1%><ACTIVATE2:%T1%><DELAY:10><TBCLOSE:Open window>  Here's a mcaro to demonstrate. All it does is grab the title, open a text box and activate teh original window. Then it waits 10 seconds and closes that text box. Quote Link to comment Share on other sites More sharing options...
Cory Posted February 27, 2007 Report Share Posted February 27, 2007 Wait a minute, are you asking what you do with the 'code' text that I put in my message? Just copy and paste it into ME script editor. Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted February 27, 2007 Author Report Share Posted February 27, 2007 so there is no ME command for this? i have to use the special code you made? Â does this prevent the window from losing focus in the first place? or does it just switch back and forth between windows? Quote Link to comment Share on other sites More sharing options...
Cory Posted February 27, 2007 Report Share Posted February 27, 2007 Hold on, these are ME commands. They just don't look like it becasue I pasted them in raw format so you can copy and paste tehm into your macro. Â OK, here's what you do. Start a new blank macro in the scriping editor. highlight what's in the code section below. Now copy it to your clipboard. Now go back to your scripting editor and paste it in. It should now look like normal ME script commands. Â <TVAR2:01:06:><TBOX4:T:3:00LeftCenter000278000200:000:Open window%T1%><ACTIVATE2:%T1%><DELAY:10><TBCLOSE:Open window> Â You see what looks like normal instructions is actually this gobblygook. Check iit out, open any script of yours and go to the direct editor. See? Gobblygook! Â Does this help? If not I can upload you an MXE. Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted February 28, 2007 Author Report Share Posted February 28, 2007 ok i see. but from the looks of it, it will switch back and forth between windows. so if i run a fullscreen program like a video player or game, this switching of window focus will still be a problem--it will interupt. Â i think ME should have an option in the open text box to start it minimized or something. Quote Link to comment Share on other sites More sharing options...
Cory Posted February 28, 2007 Report Share Posted February 28, 2007 That doesn't make sense. The whole point of a text box is to display information. What's the point of displaying it if you're, uhhhh..... not going to display it. But even with my sample I wrote you if the screen was maximized it would still go back to your full screen applicaiton. Well good luck with that. Â Snattlerake, snattlerake Where there's two there's one You mean what I know Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted February 28, 2007 Author Report Share Posted February 28, 2007 well displaying text box doesnt have to focus the text box to be of benefit. for a simple text message, such as one for a reminder, just having simple text box pop up with a short word on the taskbar will work. so in this case, it's preferrable for the text box to not interupt user activity and steal focus from another program. Â for example, you have a scheduled text box to remind you of a tv show at 8pm. meanwhile, your writing an email or playing a game. and when that text box shows up, you don't want it to steal focus from your currect task--not even temporarily, as it will interupt your keystrokes, etc. Quote Link to comment Share on other sites More sharing options...
Cory Posted February 28, 2007 Report Share Posted February 28, 2007 Yeah I could see that. But you were saying your application was full screen so the text box wouldn't be the way to go. For reminders and such I use Outlook. Â Here's an idea for ya. Instead of using a text box create a text file with a name like "Lost is on at 8pm.TXT" and launch it minimuized. Since the name is in the title bar you would see it in the taskbar and it won't jump up in front of you. Â One of my macros frequently jumps up in front of the user. To avoid having them get interupted in the middle of typing where they could hit an 'enter' accidentally in the popup box I first play a ringtone as an annunciator and give thema second or two before popping up the dialog box. Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted February 28, 2007 Author Report Share Posted February 28, 2007 but creating a text file means managing extra files and it becomes tedious for simple things like a reminder. Â so there is no way to prevent a text box macro from stealing focus? Quote Link to comment Share on other sites More sharing options...
Cory Posted February 28, 2007 Report Share Posted February 28, 2007 I don't think so. That's why using Outlook makes life a lot easier. <g> Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted February 28, 2007 Author Report Share Posted February 28, 2007 i dont use outlook, and for something like this having a start minimized or unfocussed text box would make it a lot easier for what i want to do in this case...so im just going ahead and request it. thanks for your help though. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.