Search found 17 matches
- 17 Oct 2018, 14:59
- Forum: Scripts and Functions (v1)
- Topic: Church Bells Tower - auto bell chimer
- Replies: 66
- Views: 23342
Re: Church Bells Tower - auto bell chimer
@Marius: I mean that the code calculates the number of milliseconds to the next even 15 minutes. So if the app starts at 10:08:10, the number of msecs will be 410000. But at the end of theChimer the number of msecs to the next time will be closer to 15 * 60 * 1000 = 900000, the exact number dependin...
- 17 Oct 2018, 11:34
- Forum: Scripts and Functions (v1)
- Topic: Church Bells Tower - auto bell chimer
- Replies: 66
- Views: 23342
Re: Church Bells Tower - auto bell chimer
Very nice job! Just downloaded it and tested, but noticed that due to the timer firing every 15:th second, the bells toll slightly off time. May I suggest something like SetTimer theChimer, % ((15 - Mod(A_Min, 15)) * 60 - A_Sec) * 1000 - A_MSec The timer would then have to be reset at the end of the...
- 13 Dec 2017, 10:58
- Forum: Ask for Help (v1)
- Topic: Double Pressing Script Topic is solved
- Replies: 8
- Views: 3169
- 10 Sep 2017, 03:10
- Forum: Scripts and Functions (v1)
- Topic: Environment.ahk - Change User and System Environment Variables Permanently
- Replies: 12
- Views: 6999
Re: Environment.ahk - Change User and System Environment Variables Permanently
Thanks! I did notice a couple of misspellings, though - SystemEnviroment vs SystemEnvironment. I corrected my downloaded version; not sure of possible implications leaving them in. Maybe none at all?
- 04 Aug 2017, 09:57
- Forum: Scripts and Functions (v1)
- Topic: Environment.ahk - Change User and System Environment Variables Permanently
- Replies: 12
- Views: 6999
Re: Environment.ahk - Change User and System Environment Variables Permanently
Cool! But I would suggest a name change of all functions to Env_xxx, making them standard lib compliant. Then you can just drop the main script (renamed Env.ahk) in the \Lib folder.
- 30 Jan 2017, 12:53
- Forum: Scripts and Functions (v1)
- Topic: long press
- Replies: 6
- Views: 4160
Re: long press
How about
Code: Select all
keyWait, % key, T.240
; if (a_timeSinceThisHotkey < 240)
if !ErrorLevel
send % "{" key "}"
else
{
SoundPlay *48
trayTip, , long press
keyWait, % key
TrayTip
}
- 09 Oct 2016, 10:07
- Forum: Ask for Help (v1)
- Topic: Old script to hide unusued tray icons broken with Win10 update
- Replies: 7
- Views: 3058
Re: Old script to hide unusued tray icons broken with Win10 update
That doesn't work for me now either, but I'm pretty sure it did before the latest MScrewup ...
- 07 Oct 2016, 14:51
- Forum: Ask for Help (v1)
- Topic: Old script to hide unusued tray icons broken with Win10 update
- Replies: 7
- Views: 3058
Re: Old script to hide unusued tray icons broken with Win10 update
Alas, it is TrayIcon_GetInfo that doesn't see orphaned icons...
- 07 Oct 2016, 13:21
- Forum: Ask for Help (v1)
- Topic: Old script to hide unusued tray icons broken with Win10 update
- Replies: 7
- Views: 3058
Re: Old script to hide unusued tray icons broken with Win10 update
I have the same problem - I had Seans' script working, and it broke. So I tried your code, FanaticGuru, but according to SendMessage, the orphaned icon(s) just don't exist - SendMessage, 0x418, 0, 0, ToolbarWindow32%key%, ahk_class %sTray% ; TB_BUTTONCOUNT sets ErrorLevel to zero (no icons). Strange...
- 03 Jun 2016, 10:08
- Forum: Scripts and Functions (v1)
- Topic: #include -> Alternative
- Replies: 3
- Views: 1530
Re: #include -> Alternative
An even better way (imho) can be found here: http://www.autohotkey.com/community/vie ... =2&t=75381
- 18 Mar 2016, 11:40
- Forum: Scripts and Functions (v1)
- Topic: Standby Prevention at CPU load
- Replies: 3
- Views: 1628
Re: Standby Prevention at CPU load
Maybe I misunderstood you - I got the impression that the high CPU load raised the temperature too much, which in turn made the PC go to sleep.
If anyone knows a simpler way to limit the CPU speed I would really like to know about it!
If anyone knows a simpler way to limit the CPU speed I would really like to know about it!
- 14 Mar 2016, 06:25
- Forum: Scripts and Functions (v1)
- Topic: Standby Prevention at CPU load
- Replies: 3
- Views: 1628
Re: Standby Prevention at CPU load
Another approach would be to crank down CPU speed if the temperature rises too high - http://www.autohotkey.com/board/topic/1 ... on-script/
- 18 Jan 2016, 10:57
- Forum: Scripts and Functions (v1)
- Topic: Locking computer & unlocking with a Hotkey (not having to type password)
- Replies: 13
- Views: 6134
Re: Locking computer & unlocking with a Hotkey (not having to type password)
I think you missed the point: as long as the first keypress is correct, you don't have to type the password at all. And that's the beauty of it!
- 18 Jan 2016, 06:56
- Forum: Scripts and Functions (v1)
- Topic: Locking computer & unlocking with a Hotkey (not having to type password)
- Replies: 13
- Views: 6134
Re: Locking computer & unlocking with a Hotkey (not having to type password)
You could improve security quite a lot by preventing intruders from random guessing: ... 6:: 7:: 8:: 9::i=0 and then Capslock & u:: if i++ { String = InputBox String, Computer is locked!, Password:, HIDE, 250, 150,,,,60 If String <> CorrectPassWord ; or whatever you choose Return } ExitApp Any wrong...
- 23 Dec 2015, 13:59
- Forum: Scripts and Functions (v1)
- Topic: Internet Connection Checker
- Replies: 9
- Views: 6956
Re: Internet Connection Checker
Or
Or
Code: Select all
ConnectedTo(URL) {
RunWait, ping.exe %url% -n 1,, Hide UseErrorlevel
Return !ErrorLevel
}
Code: Select all
ConnectedToInternet(flag=0x40) {
Return DllCall("Wininet.dll\InternetGetConnectedState", "Str", flag,"Int",0)
}
- 16 Dec 2014, 12:57
- Forum: Scripts and Functions (v1)
- Topic: close active window with Hotkey
- Replies: 5
- Views: 21747
Re: close active window with Hotkey
Using Win-C is also a bit awkward... There is a more convenient way:
http://www.autohotkey.com/board/topic/8 ... modifiers/
http://www.autohotkey.com/board/topic/8 ... modifiers/
- 29 May 2014, 03:24
- Forum: Scripts and Functions (v1)
- Topic: Autolock - lock your laptop when not at home
- Replies: 4
- Views: 3016
Autolock - lock your laptop when not at home
If you are like me, you like to fire up your laptop, grab a cup of coffee, and then come back to a computer that is all ready and waiting for you. But that means you have to logon automatically, which is very handy, but not very secure. So the ideal solution would be enable autologon when at home, o...