AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Super-Mysterious Command [HideAutoItWin] What does it do??

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
ahklerner



Joined: 26 Jun 2006
Posts: 1205
Location: USA

PostPosted: Fri Jul 11, 2008 8:43 pm    Post subject: Super-Mysterious Command [HideAutoItWin] What does it do?? Reply with quote

I found the following command in the api file included in the download. Does anyone know what it does? It is not documented by in the help file.
Code:
HideAutoItWin, On | Off

_________________
Back to top
View user's profile Send private message
Krogdor



Joined: 18 Apr 2008
Posts: 908
Location: The Interwebs

PostPosted: Fri Jul 11, 2008 9:01 pm    Post subject: Reply with quote

http://www.autohotkey.com/docs/commands.htm wrote:
HideAutoItWin, On|Off [Obsolete -- the following is equivalent: Menu, tray, NoIcon|Icon]


Idea
Back to top
View user's profile Send private message AIM Address
ahklerner



Joined: 26 Jun 2006
Posts: 1205
Location: USA

PostPosted: Sat Jul 12, 2008 6:25 am    Post subject: Reply with quote

but it does not hide the icon and does not give an error.
_________________
Back to top
View user's profile Send private message
Krogdor



Joined: 18 Apr 2008
Posts: 908
Location: The Interwebs

PostPosted: Sat Jul 12, 2008 7:07 am    Post subject: Reply with quote

Maybe when it became obsolete it was set to not do anything?
Anyway if it doesn't do what the documentation says it does, then I'm pretty sure its doing nothing at all...
I guess Chris is probably the only one who can really answer this.
Back to top
View user's profile Send private message AIM Address
Slanter



Joined: 28 May 2008
Posts: 264
Location: Minnesota, USA

PostPosted: Sat Jul 12, 2008 7:33 am    Post subject: Reply with quote

It looks like something left over from the original AutoIt code, though it isn't used in AU3 either and the AU2 online documentation is gone (though they do have AutoItWinSetTitle and AutoItWinGetTitle)
_________________
Unless otherwise stated, all code is untested

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Sat Jul 12, 2008 10:19 am    Post subject: Reply with quote

ahklerner wrote:
but it does not hide the icon and does not give an error.

...what version?...what OS?...

HideAutoItWin.ahk wrote:
Code:
F1::HideAutoItWin, On
F2::HideAutoItWin, Off

...AutoHotkey 1.0.46.03 (I know, old) on WinXP SP1...F1 = Hide (the tray icon), F2 = Show (the tray icon)...granted on Vista it might "do nothing"...but we don't "need Chris" to tell us, one good grep of the AutoHotkey Source would tell us...

AutoHotkey 1.0.46.05 Source (yes a different version than I mentioned above) wrote:
Code:
      case OLD_HIDEAUTOITWIN:
         // This isn't a perfect mapping because the word "on" or "off" might be contained
         // in a variable reference, in which case this conversion will be incorrect.
         // However, variable ref. is exceedingly rare.
         arg[1] = stricmp(arg[0], "On") ? "Icon" : "NoIcon";
         arg[0] = "Tray"; // Assign only after we're done using the old arg[0] value above.
         return AddLine(ACT_MENU, arg, 2, arg_map);

...ah there we go...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group