| View previous topic :: View next topic |
| Author |
Message |
Titan
Joined: 11 Aug 2004 Posts: 5026 Location: imaginationland
|
Posted: Wed Apr 27, 2005 1:39 am Post subject: InfoSpy - Window and Control Info (like AutoIt Window Spy) |
|
|
InfoSpy (formerly known as AHKInfo) is my own version of AutoIt Window Spy. It has a ToolTip version - one which stays at a fixed position on the screen and one that follows the mouse, along with a gui version with full information like WinSpy. It also has timed logging and hotkey-based logging.
The main feature is probabily the fact that it has no lag-time and works really fast.
Download
Last edited by Titan on Mon Oct 31, 2005 2:27 am; edited 6 times in total |
|
| Back to top |
|
 |
TeknoMusicMan
Joined: 14 Apr 2005 Posts: 188 Location: Wisconsin, USA
|
Posted: Wed Apr 27, 2005 3:25 pm Post subject: |
|
|
I like it. Great job....but
For the window info could you have it display and log more then just the ahk_id info. I use ahk_class alot. also could you have it display and log the text of the control your over.
Another thing that would be nice is a config setting that like log = Normal or All
Normal would log like it is currently doing and log all would log everything displaying in the Gui
Again Great job  _________________
"Make it idiot-proof, and someone will make a better idiot." |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5026 Location: imaginationland
|
Posted: Wed Apr 27, 2005 4:39 pm Post subject: |
|
|
Thanks for the feedback. Changing the log_Mode value to 'Long' will log full text as displayed in the gui.
Btw. isn't ahk_class the same as ahk_id ? _________________
RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
TeknoMusicMan
Joined: 14 Apr 2005 Posts: 188 Location: Wisconsin, USA
|
Posted: Wed Apr 27, 2005 5:03 pm Post subject: |
|
|
No i don't think so because the ahk_id is for a specific window, and ahk_class can be any window that falls into that class.
ex:
ahk_class notepad, could activate any notepad window open if multiple
ahk_id for that notepad window is for that specific window
the reason i like ahk_class is because if i write a script for program i want it to work on all of the windows not just a specific one. _________________
"Make it idiot-proof, and someone will make a better idiot." |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5026 Location: imaginationland
|
Posted: Wed Apr 27, 2005 5:27 pm Post subject: |
|
|
Ok thanks, I've replaced ahk_id with ahk_class (id still shows in gui on a new line). _________________
RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Wed Apr 27, 2005 8:49 pm Post subject: |
|
|
| Very nice! Thanks for posting it. |
|
| Back to top |
|
 |
Jon
Joined: 28 Apr 2004 Posts: 373
|
Posted: Thu Apr 28, 2005 1:13 am Post subject: |
|
|
Hi Titan, It looks good. I have found several problems though.
When you hover of the GUI the memory usages rises sharply (to around 400mb) and then you get a max memory error. The CPU usage was on 50% on my system although it would probably be around 100% on most PC's. You probably want to add something that will disable the GUI when the user hovers over it.
It would be useful to have a menu option to hide/show the tooltip or GUI.
menu, tray, nostandard
menu, tray, add, Toggle Display, ViewModeSwitch
menu, tray, default, Toggle Display
menu, tray, add, Exit, Exit
Also I can't access the tray icons when the GUI is show so you probably want to take the tray bar into account when positioning th GUI.
WinGetPos, , , , trayHeight, ahk_class Shell_TrayWnd
guis_x := A_ScreenWidth - gopt_UIWidth
guis_y := A_ScreenHeight - gopt_UIHeight - trayHeight
Gui, Show, x%guis_x% y%guis_y% w%gopt_UIWidth% h%gopt_UIHeight%, AHKInfo
Being able to dray the GUI would be useful as well. Have a look at chris's script here-
http://www.autohotkey.com/forum/viewtopic.php?t=1223
You could even make the tooltip dragable
see: http://www.autohotkey.com/forum/viewtopic.php?t=820
Good work so far though
edit:
I didn't check but is there a way to freeze the GUI display so you can copy the text from it? |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5026 Location: imaginationland
|
Posted: Thu Apr 28, 2005 1:21 am Post subject: |
|
|
| Jon wrote: | edit:
I didn't check but is there a way to freeze the GUI display so you can copy the text from it? | Pressing Pause (or the one you define - hk_Pause variable at the top) freezes the tooltip/gui. I'll have a look at the other things thanks. _________________
RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
Jon
Joined: 28 Apr 2004 Posts: 373
|
Posted: Thu Apr 28, 2005 1:24 am Post subject: |
|
|
| Quote: | | Pressing Pause freezes the tooltip/gui |
Oh I see, It took me a while to find the pause key . thanks |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5026 Location: imaginationland
|
Posted: Thu Apr 28, 2005 1:56 am Post subject: |
|
|
| Jon wrote: | | When you hover of the GUI the memory usages rises sharply (to around 400mb) and then you get a max memory error. | I noticed it took upto 26mb on my machine too! I changed it now so when you over over it, it freezes like WindowSpy.
I also added the variables in the config section right at the top of the script (in viewing subsection): vm_TTPos and vm_GUIPos where you can put the coordinates of the respective layout-type. Leaving them blank uses default positions - mouse-follow for ToolTip and near the tray menu for the Gui.
I'll add the menu too thanks  _________________
RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
|