AutoHotkey Community

It is currently May 23rd, 2012, 5:53 pm

All times are UTC [ DST ]


Search found 25 matches
Search these results:

Author Message

 Forum: Scripts   Topic: WinTraymin to trayicon

 Post subject: Does it work on Win7 x64?
Posted: April 21st, 2011, 2:42 am 

Replies: 72
Views: 11654


I'm on Win7 x64 and I want to traymin a window with functions from this script (dl'd from the first message in the thread). I get my window's ID with " WinGet, myAppID, ID, myApp ", then I call WinTrayMin(myAppID). The app gets minimized to the taskbar , not the systray. Is WimTraymin inco...

 Forum: Support   Topic: Manual launch vs. Task Scheduler

Posted: February 22nd, 2011, 3:31 am 

Replies: 2
Views: 243


Have the task starter start the script with a command line parameter and check in the script if it was started with one I should've been more clear: Task Scheduler runs a batch file (".bat"), not an AHK script. AHK just runs in the background and checks if a certain window exists or not. ...

 Forum: Support   Topic: Manual launch vs. Task Scheduler

Posted: February 22nd, 2011, 2:27 am 

Replies: 2
Views: 243


I want my AHK script to behave differently depending on whether the user has launched an app manually or if it's run by the Task Scheduler. My first thought was to have the Task Scheduler run a batch file which would both run the app and set an env. variable (say, "TASKSCHED=1"), then I'd ...

 Forum: Support   Topic: Submenu in the tray menu

Posted: September 4th, 2010, 11:51 am 

Replies: 8
Views: 333


Thanks, the wrapper's way better than separate labels.

 Forum: Support   Topic: Submenu in the tray menu

Posted: September 4th, 2010, 11:31 am 

Replies: 8
Views: 333


I thought of one more question. Why can't the action performed after a menu click also be a function, not just a a label (subroutine)? Imagine a situation where you have 10 submenu items, all of which peform a very similar task, the only difference being a single parameter. As I understand it, right...

 Forum: Support   Topic: Submenu in the tray menu

Posted: September 4th, 2010, 10:54 am 

Replies: 8
Views: 333


Thanks for helping me get a grasp on the terminology. Now I see that "submenu" involves 3 separate concepts: 1) the internal ID by which it is known to AHK, 2) the text visible to humans, 3) the subroutine executed when a menu item is clicked. (It doesn't help that in everyday English &quo...

 Forum: Support   Topic: Submenu in the tray menu

 Post subject: Submenu in the tray menu
Posted: September 4th, 2010, 8:21 am 

Replies: 8
Views: 333


I'm trying to create a submenu in the script's tray menu. I can't get the syntax to work. I get "Submenu doesn't exist." Menu, tray, add, MenuItem, VoidLabel Menu, tray, add, SubmenuItem, :MenuItem, TestLabel VoidLabel: return TestLabel: return Two related questions: 1) Can I create a menu...

 Forum: Scripts   Topic: Bluetooth headphones: reuse Next/Prev for FFW/Rewind

Posted: August 30th, 2010, 6:36 am 

Replies: 0
Views: 339


My Bluetooth headphones have Next/Prev/Pause buttons which can remotely control mp3 software (JRiver) on my PC. The Bluetooth software basically sends the relevant media key codes. I wanted to have a FFW/Rewind-type functionality often seen in physical mp3 players: if you hold down Next/Prev for a b...

 Forum: Scripts   Topic: Vista Audio Control Functions v2.1

Posted: July 18th, 2010, 3:46 am 

Replies: 150
Views: 50222


Thanks for the message codes. I put together a function that takes the name of the app, the desired vol. level, and sets the relevant volume slider. Identifying the slider by app name is a bit hacky. It relies on the hor. distance from the text label control. This may need tweaking for your DPI/font...

 Forum: Scripts   Topic: Vista Audio Control Functions v2.1

Posted: July 17th, 2010, 12:07 pm 

Replies: 150
Views: 50222


After spending several hours researching it, wrapping various COM interfaces and experimenting I'm able to enumerate audio sessions and determine which app owns them, but not control their volume. Thanks for looking into it. Seems like the only solution right now is to move the sliders in the Win m...

 Forum: Scripts   Topic: Vista Audio Control Functions v2.1

 Post subject: Per app volume level?
Posted: July 17th, 2010, 2:32 am 

Replies: 150
Views: 50222


Can this library be used to set app-specific volume levels visible in the Win7 audio mixer? My mp3/TV/video players produce uneven audio levels. When a particular player starts, I'd like to set the relevant application volume to, say, 50% of current master volume. I can do this manually in the mixer...

 Forum: Support   Topic: Clear repeat keystrokes from keyboard buffer

Posted: July 7th, 2010, 11:33 am 

Replies: 1
Views: 415


Never mind, I got it:
Quote:
Right::
loop {
SendInput {PgDn down}{PgDn up}
KeyWait, Right, T0.1
if !GetKeyState("Right", "P")
break
}
return

 Forum: Support   Topic: Clear repeat keystrokes from keyboard buffer

Posted: July 7th, 2010, 9:57 am 

Replies: 1
Views: 415


I have an image viewer in a single image mode. When I press and hold down PgDown, the viewer starts looping through all image files in the directory. Each image is displayed for a split second, about as much time as it takes to read it from disk. When I release the PgDown key, this loop stops instan...

 Forum: Support   Topic: Send keystroke to apps when started / WinWaitClose group

Posted: June 18th, 2010, 3:50 am 

Replies: 4
Views: 294


WinWaitClose is not an issue, the way I have it arranged. The loop is the last line of the auto section of my script, nothing else left thereafter. The loop effectively spawns a persistent thread. The code below auto works just fine. Anyway, thanks for the shell hook link. I'll see if I can use OS m...

 Forum: Support   Topic: Send keystroke to apps when started / WinWaitClose group

Posted: June 17th, 2010, 6:49 am 

Replies: 4
Views: 294


Thanks. Though it looks like WinTrigger basically checks all windows every 200ms to see whats open. I find it less "elegant" than WinWaitActive, assuming that WinWaitActive is event-driven, i.e. it acts on the OS message when a new window opens, without having to run a perpetual check. If ...
Sort by:  
Page 1 of 2 [ Search found 25 matches ]


All times are UTC [ DST ]


Powered by phpBB® Forum Software © phpBB Group