 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Gosugenji
Joined: 07 May 2008 Posts: 13 Location: In your Internets
|
Posted: Sun May 11, 2008 11:47 pm Post subject: Need help with GUI WinHide sort of program. |
|
|
What im trying to achieve is a ahk program that when you +!Lbutton:: an app it will store it in a var%num%=ahk_class %class%. then it builds a gui with for a in 1-%num% it will show all the current windows that have been hidden. Click gui %class% to restore..
so far..
| Code: |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#InstallKeybdHook ; Install Keyboard Hook
#UseHook ON ; Turn Hook On
;#notrayicon
#Persistent
#SingleInstance FORCE
DetectHiddenText, on
StringCaseSense On
;SetTimer, Poofer, 100
num=0
^+Lbutton::
num:=num+1
MsgBox %num%
;Gui, Show, h250 w250, NoActivate, Title of Window
return
+Lbutton::
MouseGetPos, , , id, control
WinGetClass, class, ahk_id %id%
ToolTip, %class%
SetTimer, RemoveToolTip, 3000
return
^+Rbutton::
if (num > 0)
{
num:=num-1
}
MsgBox %num%
return
RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return
;Poofer:
;SetTimer, Poofer, off
MouseGetPos, , , id, control
WinGetClass, class, ahk_id %id%
ToolTip, %control%`n%class% `n%id%
;SetTimer, Poofer, on
;return
|
|
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 753 Location: London, UK
|
Posted: Mon May 12, 2008 1:09 am Post subject: |
|
|
Ok so whats the actual problem, what doesnt work, what are you stuck on. Asking for help generally involves asking a question which you seemed to have forgotten to do. _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
Gosugenji
Joined: 07 May 2008 Posts: 13 Location: In your Internets
|
Posted: Mon May 12, 2008 1:43 am Post subject: |
|
|
I'm looking for some guidance on how to go about doing this, I've got somewhat of a base code here, but i need suggestions.
What should i use to display the data, text, list?
How do i refresh the data on the gui? |
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 753 Location: London, UK
|
Posted: Mon May 12, 2008 2:05 am Post subject: |
|
|
I hate to be a pain but.
| Gosugenji wrote: | | What should i use to display the data, text, list? |
Entirely up to you, Buttons, Listview, Treeview, menu. Whichever one you feels best suits your purpose.
| Quote: | | How do i refresh the data on the gui? |
That depends on what option you choose to question 1.
It dounds like you are building a kind of minimize to tray application. It may be worth taking a look at http://www.autohotkey.com/forum/viewtopic.php?t=4418 which is something that should give you some ideas. I am not sure if it has a gui or not. But at least its some good pointers.
Personally, I think maybe a listview would best suit your purpose and then you would use the various listview commands to refresh the gui. First step is to create the gui and get it looking how you want. _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
Gosugenji
Joined: 07 May 2008 Posts: 13 Location: In your Internets
|
Posted: Mon May 12, 2008 8:01 am Post subject: |
|
|
Thank YOU!
I'll definitely take apart that program, and looking at the command list, list view seems to be my best option for the gui implementation. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|