Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue May 06, 2008 6:38 am   

[2.23] CMUD steals focus weirdness...
 
Not sure if this is on my side, or something CMUD is doing. In any case, I'll be browsing a website, then CMUD will steal my focus. This happens quite often, enough to be really annoying. I'm not quite sure how or if it's even possible to reproduce this, so I guess my question is this: Does anyone else have this issue?

By the way, I do not have the "Bring to front window with activity" checkbox checked under Window options, so I don't think that's causing it...

Charneus
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Tue May 06, 2008 6:51 am   
 
I have noticed that if I leave the help window open, it randomly steals the focus, both within CMUD and if I am browsing.
_________________
Athlon 64 3200+
Win XP Pro x64
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue May 06, 2008 7:03 am   
 
Is it happening when a trigger fires? You might want to keep the Script Debugger window open to see what happens in CMUD right before it steals the focus. I haven't seen this myself though, so I'm not sure what it could be.
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Tue May 06, 2008 11:38 am   
 
Actually, I just remembered something odd. One time it happened, I had just typed 'help' somewhere. It might have been the thread I made on the help files for #event and expression trigs, since I did type the word into that thread. I remember it because literally as I typed the 'p' in help, it appeared. Can't replicate that so it was probably coincidence Confused
_________________
Athlon 64 3200+
Win XP Pro x64
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue May 06, 2008 4:00 pm   
 
Well, this is how my system is currently set up:

1. I use Icon Corral to allow CMUD to minimize to the system tray (by the way, I think this would be a great feature to add!)
2. I use a Firefox extension that allows it to minimize to the system tray.
3. I have CMUD Help open, and I use Icon Corral to minimize that to the system tray.

I threw the firefox info in there because, well, I'm usually in firefox when CMUD "steals" the focus. And it's not so much that it steals the focus, as the window is not active. In fact, after the CMUD window appears, I'm still able to type whatever I was typing, and it'd show up in the browser. Since starting this post, CMUD has stolen focus three times. Below is the last thing in the script debugger all three times.
Code:
i +-------------------------------------------------------------------------+<LF><CR>
|                  <ESC>[1;31mCharneus <ESC>[0;37m                                           <ESC>[0;37m   |<LF><CR>
+--------------------------+-------------------+--------------------------+<LF><CR>
| <ESC>[0;36mStrength     :<ESC>[1;37m [ 50/30 ] <ESC>[0;37m| <ESC>[0;36mRace : <ESC>[1;37mShadow     <ESC>[0;37m| <ESC>[0;36mPractices    :<ESC>[1;37m [    19 ] <ESC>[0;37m|<LF><CR>
| <ESC>[0;36mIntelligence :<ESC>[1;37m [ 46/30 ] <ESC>[0;37m| <ESC>[0;36mClass: <ESC>[1;37mMage       <ESC>[0;37m| <ESC>[0;36mTrains       :<ESC>[1;37m [    73 ] <ESC>[0;37m|<LF><CR>
| <ESC>[0;36mWisdom       :<ESC>[1;37m [ 60/30 ] <ESC>[0;37m| <ESC>[0;36mSub  : <ESC>[1;37mEvoker     <ESC>[0;37m| <ESC>[0;36mTrivia       :<ESC>[1;37m [     1 ] <ESC>[0;37m|<LF><CR>
| <ESC>[0;36mDexterity    :<ESC>[1;37m [ 51/30 ] <ESC>[0;37m| <ESC>[0;36mSex  : <ESC>[1;37mMale       <ESC>[0;37m| <ESC>[0;36mQuest points :<ESC>[1;37m [  1525 ] <ESC>[0;37m|<LF><CR>
| <ESC>[0;36mConstitution :<ESC>[1;37m [ 41/25 ] <ESC>[0;37m| <ESC>[0;36mLevel: <ESC>[1;37m23         <ESC>[0;37m| <ESC>[0;36mQuest time   :<ESC>[1;37m [    22 ] <ESC>[0;37m|<LF><CR>
| <ESC>[0;36mLuck         :<ESC>[1;37m [ 42/25 ] <ESC>[0;37m| <ESC>[0;36m         <ESC>[0;37m         |                          <ESC>[0;37m|<LF><CR>
+------------------------+-+-------------------+--------------------------+<LF><CR>
| <ESC>[0;32mHit    :<ESC>[1;37m [  760/760  ]<ESC>[0;37m | <ESC>[0;32mHitroll  :<ESC>[1;37m [  108 ] <ESC>[0;37m| <ESC>[0;32mWeight : <ESC>[1;37m  162 of 523    <ESC>[0;37m|<LF><CR>
| <ESC>[0;32mMana   :<ESC>[1;37m [  660/660  ] <ESC>[0;37m| <ESC>[0;32mDamroll  :<ESC>[1;37m [   80 ] <ESC>[0;37m| <ESC>[0;32mItems  : <ESC>[1;37m  121 of 162    <ESC>[0;37m|<LF><CR>
| <ESC>[0;32mMoves  :<ESC>[1;37m [ 1242/1242 ] <ESC>[0;37m| <ESC>[0;32mWimpy    :<ESC>[1;37m [   10 ]<ESC>[0;37m | <ESC>[0;32mAlign  : <ESC>[1;37m2500           <ESC>[0;37m |<LF><CR>
| <ESC>[0;32mGold   : <ESC>[1;37m[    706490 ] <ESC>[0;37m| <ESC>[0;32mSaves    : <ESC>[1;37m[    7 ] <ESC>[0;37m| <ESC>[0;32mStatus : <ESC>[1;37mStanding        <ESC>[0;37m|<LF><CR>
| <ESC>[0;32mTo Lvl : <ESC>[1;37m[      3227 ] <ESC>[0;37m| <ESC>[0;32mAge      : <ESC>[1;37m[   30 ]<ESC>[0;37m | <ESC>[0;32mHunger : <ESC>[0;37m99  Full        |<LF><CR>
| <ESC>[0;32m       :<ESC>[1;37m               <ESC>[0;37m| <ESC>[0;32mHours    :<ESC>[1;37m [ 5798 ]<ESC>[0;37m | <ESC>[0;32mThirst : <ESC>[0;37m99  Full        |<LF><CR>
+------------------------+---------------------+--------------------------+<LF><CR>
| <ESC>[1;37mResistances:<ESC>[0;37m                                                            |<LF><CR>
| <ESC>[0;36mPierce: <ESC>[1;37m 168<ESC>[0;37m (Well Armored      ) <ESC>[0;36m[<ESC>[1;37m<ESC>[0;31m######<ESC>[0;33m######<ESC>[0;37m##<ESC>[0;37m----------------------<ESC>[0;36m]<ESC>[0;37m|<LF><CR>
| <ESC>[0;36mBash  : <ESC>[1;37m 159<ESC>[0;37m (Well Armored      ) <ESC>[0;36m[<ESC>[1;37m<ESC>[0;31m######<ESC>[0;33m######<ESC>[0;37m#<ESC>[0;37m-----------------------<ESC>[0;36m]<ESC>[0;37m|<LF><CR>
| <ESC>[0;36mSlash : <ESC>[1;37m 124 <ESC>[0;37m(Armored           ) <ESC>[0;36m[<ESC>[1;37m<ESC>[0;31m######<ESC>[0;33m####<ESC>[0;37m--------------------------<ESC>[0;36m]<ESC>[0;37m|<LF><CR>
+-------------------------------------------------------------------------+<LF><CR>
 Type 'aff' for affects, 'attr' for stats only and 'whois' for other info.<LF><CR>
 Type 'resists' for detailed resistance stats.<LF><CR><LF><CR>
[hp: 100% mp: 100% tnl: 3227 gold: 706490 room: <ESC>[1;34mC<ESC>[0;33ma<ESC>[1;31ms<ESC>[0;32ma <ESC>[1;35md<ESC>[1;37me <ESC>[0;34mF<ESC>[1;33mi<ESC>[0;31me<ESC>[1;32ms<ESC>[0;35mt<ESC>[1;34ma<ESC>[0;37m align: 2500 qtime: 22]<LF><CR>
<ESC>[0;37m
i <LF><CR>
<ESC>[1;32m(Friend)<ESC>[0;36m: <ESC>[1;36mThis line has been removed due to censorship reasons.<ESC>[0;37m<LF><CR><LF><CR>


Code:
i +-------------------------------------------------------------------------+<LF><CR>
|                  <ESC>[1;31mCharneus <ESC>[0;37m                                           <ESC>[0;37m   |<LF><CR>
+--------------------------+-------------------+--------------------------+<LF><CR>
| <ESC>[0;36mStrength     :<ESC>[1;37m [ 50/30 ] <ESC>[0;37m| <ESC>[0;36mRace : <ESC>[1;37mShadow     <ESC>[0;37m| <ESC>[0;36mPractices    :<ESC>[1;37m [    19 ] <ESC>[0;37m|<LF><CR>
| <ESC>[0;36mIntelligence :<ESC>[1;37m [ 46/30 ] <ESC>[0;37m| <ESC>[0;36mClass: <ESC>[1;37mMage       <ESC>[0;37m| <ESC>[0;36mTrains       :<ESC>[1;37m [    73 ] <ESC>[0;37m|<LF><CR>
| <ESC>[0;36mWisdom       :<ESC>[1;37m [ 60/30 ] <ESC>[0;37m| <ESC>[0;36mSub  : <ESC>[1;37mEvoker     <ESC>[0;37m| <ESC>[0;36mTrivia       :<ESC>[1;37m [     1 ] <ESC>[0;37m|<LF><CR>
| <ESC>[0;36mDexterity    :<ESC>[1;37m [ 51/30 ] <ESC>[0;37m| <ESC>[0;36mSex  : <ESC>[1;37mMale       <ESC>[0;37m| <ESC>[0;36mQuest points :<ESC>[1;37m [  1525 ] <ESC>[0;37m|<LF><CR>
| <ESC>[0;36mConstitution :<ESC>[1;37m [ 41/25 ] <ESC>[0;37m| <ESC>[0;36mLevel: <ESC>[1;37m23         <ESC>[0;37m| <ESC>[0;36mQuest time   :<ESC>[1;37m [    22 ] <ESC>[0;37m|<LF><CR>
| <ESC>[0;36mLuck         :<ESC>[1;37m [ 42/25 ] <ESC>[0;37m| <ESC>[0;36m         <ESC>[0;37m         |                          <ESC>[0;37m|<LF><CR>
+------------------------+-+-------------------+--------------------------+<LF><CR>
| <ESC>[0;32mHit    :<ESC>[1;37m [  760/760  ]<ESC>[0;37m | <ESC>[0;32mHitroll  :<ESC>[1;37m [  108 ] <ESC>[0;37m| <ESC>[0;32mWeight : <ESC>[1;37m  162 of 523    <ESC>[0;37m|<LF><CR>
| <ESC>[0;32mMana   :<ESC>[1;37m [  660/660  ] <ESC>[0;37m| <ESC>[0;32mDamroll  :<ESC>[1;37m [   80 ] <ESC>[0;37m| <ESC>[0;32mItems  : <ESC>[1;37m  121 of 162    <ESC>[0;37m|<LF><CR>
| <ESC>[0;32mMoves  :<ESC>[1;37m [ 1242/1242 ] <ESC>[0;37m| <ESC>[0;32mWimpy    :<ESC>[1;37m [   10 ]<ESC>[0;37m | <ESC>[0;32mAlign  : <ESC>[1;37m2500           <ESC>[0;37m |<LF><CR>
| <ESC>[0;32mGold   : <ESC>[1;37m[    706490 ] <ESC>[0;37m| <ESC>[0;32mSaves    : <ESC>[1;37m[    7 ] <ESC>[0;37m| <ESC>[0;32mStatus : <ESC>[1;37mStanding        <ESC>[0;37m|<LF><CR>
| <ESC>[0;32mTo Lvl : <ESC>[1;37m[      3227 ] <ESC>[0;37m| <ESC>[0;32mAge      : <ESC>[1;37m[   30 ]<ESC>[0;37m | <ESC>[0;32mHunger : <ESC>[0;37m99  Full        |<LF><CR>
| <ESC>[0;32m       :<ESC>[1;37m               <ESC>[0;37m| <ESC>[0;32mHours    :<ESC>[1;37m [ 5798 ]<ESC>[0;37m | <ESC>[0;32mThirst : <ESC>[0;37m99  Full        |<LF><CR>
+------------------------+---------------------+--------------------------+<LF><CR>
| <ESC>[1;37mResistances:<ESC>[0;37m                                                            |<LF><CR>
| <ESC>[0;36mPierce: <ESC>[1;37m 168<ESC>[0;37m (Well Armored      ) <ESC>[0;36m[<ESC>[1;37m<ESC>[0;31m######<ESC>[0;33m######<ESC>[0;37m##<ESC>[0;37m----------------------<ESC>[0;36m]<ESC>[0;37m|<LF><CR>
| <ESC>[0;36mBash  : <ESC>[1;37m 159<ESC>[0;37m (Well Armored      ) <ESC>[0;36m[<ESC>[1;37m<ESC>[0;31m######<ESC>[0;33m######<ESC>[0;37m#<ESC>[0;37m-----------------------<ESC>[0;36m]<ESC>[0;37m|<LF><CR>
| <ESC>[0;36mSlash : <ESC>[1;37m 124 <ESC>[0;37m(Armored           ) <ESC>[0;36m[<ESC>[1;37m<ESC>[0;31m######<ESC>[0;33m####<ESC>[0;37m--------------------------<ESC>[0;36m]<ESC>[0;37m|<LF><CR>
+-------------------------------------------------------------------------+<LF><CR>
 Type 'aff' for affects, 'attr' for stats only and 'whois' for other info.<LF><CR>
 Type 'resists' for detailed resistance stats.<LF><CR><LF><CR>
[hp: 100% mp: 100% tnl: 3227 gold: 706490 room: <ESC>[1;34mC<ESC>[0;33ma<ESC>[1;31ms<ESC>[0;32ma <ESC>[1;35md<ESC>[1;37me <ESC>[0;34mF<ESC>[1;33mi<ESC>[0;31me<ESC>[1;32ms<ESC>[0;35mt<ESC>[1;34ma<ESC>[0;37m align: 2500 qtime: 22]<LF><CR>
<ESC>[0;37m
i <LF><CR>
<ESC>[1;32m(Friend)<ESC>[0;36m: <ESC>[1;36mThis line has been removed due to censorship reasons.<ESC>[0;37m<LF><CR><LF><CR>


Code:
i You now possess magical powers of avoidance.<LF><CR><LF><CR>
[hp: 100% mp: 96% tnl: 3227 gold: 706490 room: <ESC>[1;34mC<ESC>[0;33ma<ESC>[1;31ms<ESC>[0;32ma <ESC>[1;35md<ESC>[1;37me <ESC>[0;34mF<ESC>[1;33mi<ESC>[0;31me<ESC>[1;32ms<ESC>[0;35mt<ESC>[1;34ma<ESC>[0;37m align: 2500 qtime: 11]<LF><CR>
<ESC>[0;37m
i <LF><CR>
--><ESC>[1;37m TICK <ESC>[0;37m<--<LF><CR><LF><CR>
i <ESC>[1;32m(Friend) XXX<ESC>[0;36m:<ESC>[1;36m 'blah blah blah blah'<ESC>[0;37m<LF><CR><LF><CR>
i --><ESC>[1;37m TICK <ESC>[0;37m<--<LF><CR><LF><CR>


The only thing I can see in common with any of them is the
Code:
<ESC>[0;37m
after the line feeds... Again, hope this helps.

Charneus
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue May 06, 2008 6:32 pm   
 
You need to turn on ALL of the messages in the Script Debugger for this to help. It looks like you are just showing the "i" messages in the debugger, which doesn't help me see if you had a trigger or script running at the same time that caused this.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue May 06, 2008 6:44 pm   
 
So you are saying CMud comes to the front, and redraws but does not actually receive focus. The focus is still on your Firefox window but CMud is in front of it. Could you post a screen shot of your entire screen when things are in this state? Just shink it down to 50% orginal size, since the main thing I am think is important is the actual focus indicators, which are color dependent.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Tue May 06, 2008 7:30 pm   
 
I've had the same thing when the help files are open, and this is with a blank session.
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue May 06, 2008 7:52 pm   
 
PLEASE PLEASE PLEASE people...give me the exact and specific step-by-step method to reproduce this. I am in the last day of bug fixing for this version and without a procedure, I can't waste hours trying to mess around with it myself. Like I have said many times, the easier that you make it, the quicker I can fix it. If you can reproduce it with the help file in a blank session, then give me the details so that I can try it here. I can't read your minds, and if it was easy to reproduce, then it would be fixed already.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue May 06, 2008 8:11 pm   
 
This is the output Zugg asked for:
Code:

a
i --><ESC>[1;37m TICK <ESC>[0;37m<--<LF><CR><LF><CR>
a --> TICK <--
h <ESC>[37m--><ESC>[1m TICK <ESC>[0m<--<ESC>[0m
a
i <ESC>[1;32m(Friend) XXX<ESC>[0;36m:<ESC>[1;36m 'xxxxx'<ESC>[0;37m<LF><CR><LF><CR>
a (Friend) XXX: 'xxxxx'
f   Pattern: ^\(Friend\).*$
c   exec : Pattern "^\(Friend\).*$" : #cap captures
a (Friend) XXX: 'xxxxx'
a


Code:
a (Friend) XXX: 'xxxxx'
f   Pattern: ^\(Friend\).*$
c   exec : Pattern "^\(Friend\).*$" : #cap captures
a (Friend) XXX: 'xxxxx'
a
i <ESC>[1;32mXXX answers 'xxxxx'<ESC>[0;37m<LF><CR><LF><CR>
a XXX answers 'xxxxx'
a
i <ESC>[0;36mYou are no longer blurred.<ESC>[0;37m<LF><CR>
<ESC>[0;36mYour magical armor wears away.<ESC>[0;37m<LF><CR><LF><CR>
a You are no longer blurred.
f   Pattern: ^({@{spells_wearoff_db}})$ : (%1="You are no longer blurred.")
c   exec : Pattern "^({@{spells_wearoff_db}})$" : #SUB {@cyan("Spell...
i c 'blur'<CR><LF>
g Spell wore off! Blur


Code:
a
i --><ESC>[1;37m TICK <ESC>[0;37m<--<LF><CR><LF><CR>
a --> TICK <--
h <ESC>[37m--><ESC>[1m TICK <ESC>[0m<--<ESC>[0m
i <ESC>[1;36mXXX gossips 'xxxxx'<ESC>[0;37m<LF><CR><LF><CR>
a
a XXX gossips 'xxxxx'


Note:
The line
Code:
g Spell wore off! Blur

is just & # 27 ; in both instances (before and after the ansi codes.

In all three instances, these were the last lines received when CMUD stole the screen. Vijilante put it best, it redraws itself and paints itself on top of all other applications. I'll get a screenshot when it happens next time...

Charneus
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue May 06, 2008 8:31 pm   
 
Here is the screenshot Vijilante wanted:



As for step-by-step procedure, I don't believe that's gonna be entirely possible. It just... happens. That's why I'm providing as MUCH information as I can regarding this. I did state what CMUD programs I had open. As a recap:

1. I have CMUD Help open. Using Icon Corral, it minimizes to System Tray.
2. I have CMUD open, and I have the database and package editor in it's own window, meaning that it has it's own taskbar icon, which, when minimized, uses Icon Corral to go to the system tray.
3. I also have a firefox extension that minimizes that to the system tray.

That's about all I know that could be affecting it. Hopefully any and all of this will help. I realize that you want to get this fixed, but for me, it's been practically random, and I do wish that it was only me that was getting this, because then you wouldn't have to worry about it being a bug in CMUD. :P

Charneus
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue May 06, 2008 8:43 pm   
 
OK, well I can't test anything with "Icon Corral", so I'll need to know from someone else if this happens to them without "Icon Corral".

In your Debugger dumps, can you check to see if the problem always happens after the #CAPTURE command. Your first two dumps show a "#CAP captures" command, but not in your 3rd output, but it's not necessarily the last line that causes it. The way Windows processes messages, it might be responding to something a bit earlier in your debugger window. Use the TimeStamps in the debugger to determine what lines all occured within a short time of the last message and see if there is a #capture there. Anything that happened less than a couple of seconds from when you notice the focus change might be causing it.

On the Help Window, try clicking on the icon in the upper-left corner of the help window and turn off the "Stay on Top" option to see if that helps. Windows has lots of problems with Stay on Top windows, and maybe that is causing some problem with Icon Corral too.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue May 06, 2008 9:23 pm   
 
Hrm, the screen definitely shows no focus indicators. This means it didn't have a WM_ACTIVATE_APP or WM_*FOCUS. The same display behavior can be generated by a WM_SHOW when an application is buried. I am guessing that CMud doesn't know it is hidden in some fashion and is issuing the WM_SHOW internally to itself.

The only thing I know of that would do this is the preference to bring a window with activity to the front. Based on the behavior that does the right set of messages. I can only guess as to how Zugg handled it, but checking that CMud is focused would be required to do it right.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue May 06, 2008 10:23 pm   
 
Vijilante might have found this one. I have a routine called "BringToFront" and it wasn't checking to see if the Application was currently Active or not. This was definitely happening if the "Bring to Front" preference was set for a window, but might have been called in other cases too. So hopefully it is fixed in 2.24.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net