| View previous topic :: View next topic |
| Author |
Message |
ahklerner
Joined: 26 Jun 2006 Posts: 1205 Location: USA
|
Posted: Fri Jul 11, 2008 8:43 pm Post subject: Super-Mysterious Command [HideAutoItWin] What does it do?? |
|
|
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 |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 908 Location: The Interwebs
|
Posted: Fri Jul 11, 2008 9:01 pm Post subject: |
|
|
| http://www.autohotkey.com/docs/commands.htm wrote: | | HideAutoItWin, On|Off [Obsolete -- the following is equivalent: Menu, tray, NoIcon|Icon] |
 |
|
| Back to top |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1205 Location: USA
|
Posted: Sat Jul 12, 2008 6:25 am Post subject: |
|
|
but it does not hide the icon and does not give an error. _________________
 |
|
| Back to top |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 908 Location: The Interwebs
|
Posted: Sat Jul 12, 2008 7:07 am Post subject: |
|
|
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 |
|
 |
Slanter
Joined: 28 May 2008 Posts: 264 Location: Minnesota, USA
|
Posted: Sat Jul 12, 2008 7:33 am Post subject: |
|
|
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 |
|
 |
Guest
|
Posted: Sat Jul 12, 2008 10:19 am Post subject: |
|
|
| ahklerner wrote: | | but it does not hide the icon and does not give an error. |
...what version?...what OS?...
| 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 |
|
 |
|