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 

Incrementally switch between windows
Goto page Previous  1, 2, 3 ... 8, 9, 10, 11  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
schlemihl1277



Joined: 09 Jul 2005
Posts: 10

PostPosted: Mon Jul 11, 2005 11:31 pm    Post subject: cannot launch these scripts Reply with quote

Hi Community,

Sorry, but I cannot launch these scripts on my WinXP-HomeEdition. What could be the reason? German Windows Version? Or my Pre-Installed HotKey-Manager "HotKeyBind" (http://hotkeybind.sourceforge.net/)? I don't know. Do you?

Thank you for a suggestion.

schlemihl1277
Back to top
View user's profile Send private message
keyboardfreak



Joined: 09 Oct 2004
Posts: 126
Location: Budapest, Hungary

PostPosted: Tue Jul 12, 2005 7:18 pm    Post subject: Reply with quote

Well, can you be a bit more specific than simply saying you "cannot launch" the script?

Is there an error when the script is launched?
Does the dialog appear, but it's empty?
Have you tried running the script with HotKeyBind disabled?
Do you run the script from a separate AHK file or did you insert into a common file with other scripts? ezuk had problems with this.
Back to top
View user's profile Send private message
schlemihl1277



Joined: 09 Jul 2005
Posts: 10

PostPosted: Wed Jul 13, 2005 1:30 am    Post subject: cannot launch these scripts Reply with quote

Hi keyboardfreak,
Quote:
Is there an error when the script is launched?

No error-Message. Ahk-Picture appears in system-tray.
Quote:
Does the dialog appear, but it's empty?

No dialog appears.
Quote:
Have you tried running the script with HotKeyBind disabled?

Yes, but phenomenon remains the same.
Quote:
Do you run the script from a separate AHK file or did you insert into a common file with other scripts?

I run a separate ahk-file.

Thank you for your efforts.
best regards,
schlemihl1277
Back to top
View user's profile Send private message
keyboardfreak



Joined: 09 Oct 2004
Posts: 126
Location: Budapest, Hungary

PostPosted: Wed Jul 13, 2005 5:46 am    Post subject: Re: cannot launch these scripts Reply with quote

schlemihl1277 wrote:
No dialog appears.


By default the script is activated with the CapsLock key. Did you press it? Have you tried choosing a different activation key?
Back to top
View user's profile Send private message
schlemihl1277



Joined: 09 Jul 2005
Posts: 10

PostPosted: Wed Jul 13, 2005 12:56 pm    Post subject: No dialog appeared. Reply with quote

Hi keyboardfreak,

Quote:
By default the script is activated with the CapsLock key.

Thank you for your hint. That was the problem. The reason for this error is that holding ahk-scripts in working memory is not my philosophy, because I need about ten different ahk-scripts for my task. And I got used to launch them by HotKeyBind (also taking working memory resources).

The application "Incrementally switch between windows" is very nice. But I will probably continue to use my (less perfect and less beautiful) "fast and concise Window-Switcher(-Activator, -Manager)" (http://www.autohotkey.com/forum/viewtopic.php?t=4388) because I might be some milliseconds faster in my work flow with it. Smile

Best regards.

schlemihl1277
Back to top
View user's profile Send private message
Phoenix



Joined: 23 Sep 2005
Posts: 39

PostPosted: Fri Sep 23, 2005 8:27 pm    Post subject: Reply with quote

I absolute love this script i tried to construct a script like this for my self and then I found out that my idea had already been realized. There are however some functions I would like to add.

I have already made some modifications to it myself. The most usefull is probably to end tasks by selecting them and pressing delete. This is a very effective way to clean up windows if you like me often have a bunch of them open Smile

One thing that my lack knowledge in AHK stops me from doing is replacing the listbox control with the new listview. It would be really nifty to see the icons of the open tasks on the left side of them and that is what I can understand only possible by using the listview control.
Back to top
View user's profile Send private message
n00kie



Joined: 16 Apr 2006
Posts: 6

PostPosted: Tue Apr 18, 2006 5:55 pm    Post subject: I think something's wrong Reply with quote

Is it normal for the dialog to disappear when I try to use the Down key ?
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Apr 19, 2006 8:46 am    Post subject: Reply with quote

Nope. You should be able to select an item with up/down and enter.
Back to top
n00kie



Joined: 16 Apr 2006
Posts: 6

PostPosted: Wed Apr 19, 2006 10:15 pm    Post subject: Reply with quote

thanks for sharing Laughing Very Happy
I asked that because I really am not able to press the down key without the dialog vanishing. I didn't modify anything in the script and I have no idea why it would behave like that. Any ideas ? Rolling Eyes
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Apr 20, 2006 8:29 am    Post subject: Reply with quote

Well, according to the documentation the script works with Autohotkey version 1.0.25+. It's a fairly old version and I also use a version around that.

I can't try it right know, but my guess is Chris broke something with backward compatibilty in newer AH versions and that's why it doesn't work.
Back to top
n00kie



Joined: 16 Apr 2006
Posts: 6

PostPosted: Thu Apr 20, 2006 7:17 pm    Post subject: Reply with quote

So, I guess keyboardfreak would be the best suited to put his finger on it...
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Apr 20, 2006 8:05 pm    Post subject: Reply with quote

I tried it with the newest AH and it was broken for me too.

If you change this line

Gui, Add, ListBox, vindex gListBoxClick x6 y11 w300 h250 AltSubmit

to this (remove gListBoxClick)

Gui, Add, ListBox, vindex x6 y11 w300 h250 AltSubmit

then it works, although you won't be able to use the mouse to select a window, only the keyboard. (It's faster with the keyboard anyway).

Apparently there was a change in AutoHotkey and the script cannot distinguish between down arrow and single click anymore in the ListBoxClick procedure, since now both considered a "normal" gui event.
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Apr 20, 2006 10:46 pm    Post subject: Reply with quote

Yes, this was a change/fix in v1.0.38.04. To work around it, replace:
Code:
if A_GuiControlEvent = Normal
with:
Code:
if (A_GuiControlEvent = "Normal"
   and !GetKeyState("Down", "P") and !GetKeyState("Up", "P"))
Sorry for the inconvenience.

I also updated the script at the top of this topic (hopefully keyboardfreak won't mind).
Back to top
View user's profile Send private message Send e-mail
n00kie



Joined: 16 Apr 2006
Posts: 6

PostPosted: Tue Apr 25, 2006 8:33 pm    Post subject: Reply with quote

Thank you!
You guys are great.
Back to top
View user's profile Send private message
JonathanAquino
Guest





PostPosted: Thu Jul 20, 2006 4:05 am    Post subject: Reply with quote

I was finding that when I held down Down then released, it would go to whatever list item I had released the key on.

I commented out the following line and it fixed the problem:
send, {enter}
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... 8, 9, 10, 11  Next
Page 9 of 11

 
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