AutoHotkey Community

It is currently May 27th, 2012, 6:12 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: January 16th, 2010, 1:54 pm 
Offline

Joined: October 30th, 2008, 10:13 pm
Posts: 27
I'm having trouble with this too... I wonder if it works in vista?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2010, 8:23 pm 
Offline

Joined: June 7th, 2005, 12:18 pm
Posts: 10
Great, thanks!

Can anybody help, how to extend the script to run on locking of windows as well?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: bitcloud
PostPosted: April 16th, 2010, 5:21 pm 
Offline

Joined: April 16th, 2010, 5:16 pm
Posts: 1
I couldn't get it to work in Windows 7, and debugging it I figuered the SoundSet didn't work. I looked up the command and they say that SoundSet doesn't work for Vista and above.

However they provide two solutions:

1) Run the script in Xp compatability mode
2) Replace the SoundSet muter with a "keystroke" mute.

I generally like to avoid compatability modes, so I went with the keystroke approach.

To mute, therefore, replace all "SoundSet, 1..." lines with:

Send {Volume_Mute}

I don't want my computer to unmute on restart so I don't care to know how to unmute it automatically.

For more info:

http://www.autohotkey.com/docs/commands/SoundSet.htm


Cheers


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: bitcloud
PostPosted: April 30th, 2010, 12:13 pm 
Offline

Joined: April 30th, 2010, 12:09 pm
Posts: 1
lenz wrote:
....
Send {Volume_Mute}

I don't want my computer to unmute on restart so I don't care to know how to unmute it automatically.

For more info:

http://www.autohotkey.com/docs/commands/SoundSet.htm

Just use the command again and the volume will be unmuted.


TheStarGate


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 3rd, 2010, 2:16 am 
I want my computer to send some key presses when I resume or go into sleep mode. So I modeled a script after this one, but it's not functioning:
Quote:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

OnMessage(0x218, "WM_POWERBROADCAST")
return

onSuspend(wParam, lParam)
{
if (wParam = 7 OR wParam = 8)
Send #6
Return
}

I'm using AutoHotkey version 1.0.48.05 on Windows 7.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 3rd, 2010, 7:00 am 
Quote:
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

OnMessage(0x218, "WM_POWERBROADCAST")
return

onSuspend(wParam, lParam)
{
if (wParam = 7 OR wParam = 8)
Send #6
Return
}


Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

OnMessage(0x218, "onSuspend")
return

onSuspend(wParam, lParam)
{
if (wParam = 7 OR wParam = 8)
Send #6
Return
}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 7th, 2010, 8:37 pm 
And in WM_POWERBROADCAST there is the

PBT_POWERSETTINGCHANGE
identifier -> 32787 (0x8013)


but how to use it?


some info...
http://msdn.microsoft.com/en-us/library/ms703398.aspx


Report this post
Top
  
Reply with quote  
 Post subject: What language?
PostPosted: May 4th, 2011, 5:19 pm 
Is this a script or something I need to compile?

Compiler or interpreter name to use?

C, C++, C#, Java, Python, DOS .bat or .cmd?

sorry - there are so many choices

thanks
Linda


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 4th, 2011, 5:55 pm 
Offline

Joined: October 13th, 2009, 10:09 pm
Posts: 1389
Going to the main page of this domain and downloading AutoHotkey might help... ;)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, Exabot [Bot], JamixZol, Yahoo [Bot] and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group