 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Krogdor
Joined: 18 Apr 2008 Posts: 860 Location: The Interwebs
|
Posted: Fri Apr 18, 2008 8:02 am Post subject: ControlSend Issues [Solved] |
|
|
I recently made a small, simple script to simply pause/play, skip, or go back in my iTunes even when it is minimized to system tray. It will work for some time, but when I leave it unused for a little while it stops working. I can fix the problem by restoring and reminimizing iTunes, but this defeats the purpose of the hotkeys, since it requires me to use more mouseclicks than if I just manually controlled it.
So, does anyone know why this might be happening? I have tried different send modes and setting longer key delays, but nothing seems to fix the problem.
| Code: | NumPadDown::
DetectHiddenWindows,On
ControlSend, ahk_parent, {space}, iTunes ahk_class iTunes
return
NumPadEnd::
DetectHiddenWindows,On
ControlSend, ahk_parent, ^{left}, iTunes ahk_class iTunes
return
NumPadPgDn::
DetectHiddenWindows,On
ControlSend, ahk_parent, ^{right}, iTunes ahk_class iTunes
return |
Last edited by Krogdor on Sun Apr 20, 2008 11:33 pm; edited 1 time in total |
|
| Back to top |
|
 |
A117 Guest
|
Posted: Fri Apr 18, 2008 8:36 am Post subject: i just learned this |
|
|
i donno why you write sth. on both sides of ahk_class
i just wrote my script as below
#c::ControlSend, , {Esc}, ahk_class MediaPlayerClassicW |
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 66
|
Posted: Fri Apr 18, 2008 8:38 am Post subject: |
|
|
Hy,
I did have the same problem in several scripts.
After searching the known bugs in autohotkey via the forum I found the solution from Chris:
Just use
before using Controlsend.
Greets,
aaffe |
|
| Back to top |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 860 Location: The Interwebs
|
Posted: Sat Apr 19, 2008 2:06 am Post subject: |
|
|
Unfortunately, adding the "SetControlDelay -1" doesn't seem to have made a difference... It still works for some time and then ignores my hotkeys until I restore and minimize it again. Thanks for trying, though.
Does anyone else have any other ideas as to what the problem might be?
EDIT:
Nvm, it actually seems to be working well for now. Thanks for the help! |
|
| Back to top |
|
 |
andz
Joined: 05 Oct 2007 Posts: 2
|
Posted: Wed Aug 06, 2008 5:11 pm Post subject: |
|
|
hi Krogdor.
do you have any solution for your problem?
or does it work now without changing anything?
i am trying to write a global hotkey script for last.fm with using ControlSend.
i got the same problem like you.
when last.fm client is in tray my script doesn't work.
edit:
i found a way to handle it. |
|
| 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
|