Search found 15 matches
- 25 Jan 2024, 07:08
- Forum: Ask for Help (v2)
- Topic: Script to hibernate PC runs straight away at wake
- Replies: 1
- Views: 156
Script to hibernate PC runs straight away at wake
I have the following script which works fairly well - ----------------------------------------------------------------------------------------------------- #Requires AutoHotkey v2.0 InstallKeybdHook InstallMouseHook ProcessSetPriority 'B' SetTimer sleepy, 1800000 sleepy() { If A_TimeIdlePhysical >= ...
- 11 Nov 2023, 09:09
- Forum: Ask for Help (v2)
- Topic: Wanting to close program after inactivity
- Replies: 9
- Views: 764
Re: Wanting to close program after inactivity
Hi, a script with an active timer is always persistent. So, line 3 Persistent could be omitted. If OBS is hidden in the system tray then you have to use ProcessExist / ProcessClose instead of WinExist / WinClose . Would look like so: If PID := ProcessExist("obs64.exe") ProcessClose PID Works great,...
- 08 Nov 2023, 16:19
- Forum: Ask for Help (v2)
- Topic: Wanting to close program after inactivity
- Replies: 9
- Views: 764
Re: Wanting to close program after inactivity
There are a number of things preventing your script from working. 1) It is not persistent, therefore it will only run once when your launch it, which means that idle time will NEVER have exceeded 60 seconds. You must make the script persistent and use a timer that will check the idle time at regula...
- 08 Nov 2023, 14:42
- Forum: Ask for Help (v2)
- Topic: Wanting to close program after inactivity
- Replies: 9
- Views: 764
- 08 Nov 2023, 14:21
- Forum: Ask for Help (v2)
- Topic: Wanting to close program after inactivity
- Replies: 9
- Views: 764
Re: Wanting to close program after inactivity
You could check A_TimeIdle periodically using a timer and then WinClose to close your app. Russ So something like this? - -------------------------------------------- #Requires AutoHotkey v2.0 if A_TimeIdle > 60000 MsgBox "Last activity was 1 minute ago" if WinExist("obs64.exe") WinClose ; Use the ...
- 08 Nov 2023, 11:43
- Forum: Ask for Help (v2)
- Topic: Wanting to close program after inactivity
- Replies: 9
- Views: 764
Wanting to close program after inactivity
If there is no keyboard and mouse movement in Windows for a set amount of time, then i want to close OBS, anyone know of a script that does this?
- 26 Aug 2023, 12:31
- Forum: Ask for Help (v2)
- Topic: Need a script that puts PC to sleep automatically Topic is solved
- Replies: 2
- Views: 205
Re: Need a script that puts PC to sleep automatically Topic is solved
#Requires AutoHotkey v2.0 InstallKeybdHook InstallMouseHook ProcessSetPriority 'B' SetTimer sleepy, 30000 sleepy() { If A_TimeIdlePhysical >= 30000 DllCall('PowrProf\SetSuspendState', 'Int', 0, 'Int', 0, 'Int', 0) ; Sleep computer } Decrease the timer period (i.e., increase frequency) if you want s...
- 26 Aug 2023, 11:53
- Forum: Ask for Help (v2)
- Topic: Need a script that puts PC to sleep automatically Topic is solved
- Replies: 2
- Views: 205
Need a script that puts PC to sleep automatically Topic is solved
I have had problems getting my PC to sleep automatically, so now i'm deciding to try AHK instead, i simply want it to sleep after a set amount of time when there is no keyboard and mouse movement, anyone know of a script that does this?
- 19 Mar 2018, 15:57
- Forum: Gaming Help (v1)
- Topic: Need help with this script
- Replies: 0
- Views: 2030
Need help with this script
I have the following script - AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. ;#Include CvJI/CvJoyInterface.ahk ; Credit to EC. #Include CvJI/CvGenInterface.ahk ; A Mod...
- 24 Feb 2018, 15:37
- Forum: Ask for Help (v1)
- Topic: I need a macro for a combination key
- Replies: 1
- Views: 594
I need a macro for a combination key
I want to press ctrl + w and get a double tap of w.
The same will apply for a,s,d. So -
Ctrl + w = ww
Ctrl + a = aa
Ctrl + s = ss
Ctrl = d - dd
The same will apply for a,s,d. So -
Ctrl + w = ww
Ctrl + a = aa
Ctrl + s = ss
Ctrl = d - dd
- 14 Dec 2017, 14:04
- Forum: Gaming Scripts (v1)
- Topic: Mouse to keyboard / virtual joystick
- Replies: 43
- Views: 39356
Re: Mouse to keyboard / virtual joystick
Have to agree with the above post, this has finally sorted out the mouse movement issue i had. Someone took this and modified it to work with different programs (https://github.com/CemuUser8/mouse2joys ... U/releases), works like a charm! thanks again.
- 13 Dec 2017, 17:35
- Forum: Gaming Scripts (v1)
- Topic: Universal Control Remapper (UCR) - v0.1.22 28th Oct 2018
- Replies: 1014
- Views: 831540
Re: Universal Control Remapper (UCR) - v0.1.17 21st Aug 2017
I am also interested in emulating the DS4, have been hovering around the other forums and reading about ViGEm too, will be interested in the test release, just want to say you did a great job with UCR as it was so helpful.
- 12 Apr 2017, 18:28
- Forum: Gaming Scripts (v1)
- Topic: Mouse to keyboard / virtual joystick
- Replies: 43
- Views: 39356
Re: Mouse to keyboard / virtual joystick
Been trying to run the mouse delta script for the past hour but for some strange reason my f12 key is not working and i cannot toggle on. I will post any results if i do get it working. I did however try the absolute mode in UCR and that is almost what i want (the smoothness is perfect) but as you w...
- 12 Apr 2017, 14:14
- Forum: Gaming Scripts (v1)
- Topic: Mouse to keyboard / virtual joystick
- Replies: 43
- Views: 39356
Re: Mouse to keyboard / virtual joystick
Fair enough. Can you recommend anything else? i have been testing the mouse to joy in UCR but it isn't smooth enough, feels awkward and jumpy. Is it possible to get any better or am i wishful thinking?
- 12 Apr 2017, 12:00
- Forum: Gaming Scripts (v1)
- Topic: Mouse to keyboard / virtual joystick
- Replies: 43
- Views: 39356
Re: Mouse to keyboard / virtual joystick
I placed "HelgefM2J.ahk" in the Plugins/User but i get the following error after loading UCR -
"Error at line 14.
Line Text: _Plugin
Error: Unknown class.
The program will exit."
Any ideas, am i doing something wrong?
"Error at line 14.
Line Text: _Plugin
Error: Unknown class.
The program will exit."
Any ideas, am i doing something wrong?