Search found 17 matches

by Hitaku
14 Jun 2019, 05:30
Forum: Ask For Help
Topic: Script to sleep monitors + other devices
Replies: 4
Views: 400

Re: Script to sleep monitors + other devices

1) If you disable the keyboard, how do you intend to wake your computer back up from sleep mode? Usually people touch a key, then the computer wakes up from sleep because of that. Do you want to put everything to sleep, then wake it back up at a set time instead? I typically move my mouse to wake m...
by Hitaku
13 Jun 2019, 12:12
Forum: Ask For Help
Topic: Script to sleep monitors + other devices
Replies: 4
Views: 400

Re: Script to sleep monitors + other devices

F1::PostMessage, 0x0112, 0xF170, % (i:=!i)?2:-1,, A ; << Press F1 to toggle On/Off F2 Up:: ; << Press F2 to toggle On/Off IF !F2 := !F2 Return BlockInput, On While, !GetKeyState("F2","P") Sleep, 100 BlockInput, Off Return This script disables all monitors, mouse, and mouse pad. Unfortunately, the k...
by Hitaku
12 Jun 2019, 23:00
Forum: Ask For Help
Topic: Script to sleep monitors + other devices
Replies: 4
Views: 400

Script to sleep monitors + other devices

I've found the script below and it works perfectly with putting my monitors to sleep. I'd like to edit it to put my keyboard, mouse, and mouse pad to sleep as well if possible.

Code: Select all

F1::PostMessage, 0x0112, 0xF170, % (i:=!i)?2:-1,, A ; << Press F1 to toggle On/Off
by Hitaku
18 Feb 2019, 17:44
Forum: Gaming
Topic: Rapid fire while both mouse buttons are held down
Replies: 1
Views: 633

Rapid fire while both mouse buttons are held down

Looking to make the script below work only when both the left and right mouse buttons are held down together. Not quite sure how to do it, any help would be appreciated. LButton:: KeyWait, LButton, T1 SetMouseDelay 20 While GetKeyState("LButton","P"){ Click Click, right } return Edit: Turns out it w...
by Hitaku
17 Dec 2017, 22:42
Forum: Gaming
Topic: How to close a script when opening a program?
Replies: 0
Views: 239

How to close a script when opening a program?

I've recently started playing Black Desert Online and it's anti-cheat program closes the game when Autohotkey is active. I was wondering if it was possible to close an AHK script when the game is launched so that I don't need to do it manually? I tried the following script, but it doesn't seem to wo...
by Hitaku
07 Oct 2017, 21:43
Forum: Gaming
Topic: Help blocking mouse movement within RuneScape
Replies: 1
Views: 291

Help blocking mouse movement within RuneScape

I'm currently trying to get a script that will block mouse movement while right click is held down, only while RuneScape is active. The below script locks down the mouse when the right mouse button is pressed, but it doesn't go back to normal when released. Though it's not needed, I would also like ...
by Hitaku
29 Aug 2017, 22:07
Forum: Gaming
Topic: Script for multiple space bar presses.
Replies: 3
Views: 483

Re: Script for multiple space bar presses.

Thank you very much. =)
by Hitaku
22 Aug 2017, 15:25
Forum: Gaming
Topic: Script for multiple space bar presses.
Replies: 3
Views: 483

Script for multiple space bar presses.

Looking for a script that will send space bar 4 times if I hold it down for .5 seconds. Seems simple enough, but I'm not quite sure how to do it. Any help would be very appreciated.
by Hitaku
01 Jul 2017, 16:12
Forum: Ask For Help
Topic: Help with cursor hiding script Topic is solved
Replies: 15
Views: 2686

Re: Help with cursor hiding script Topic is solved

Your alternative script worked perfectly for me! As for the script I originally linked, it was something that I picked up from a previous thread so I don't know much about that function. I'm sorry. =(

Thank you all though for taking the time to help me, happy I ended up with something that worked.
by Hitaku
01 Jul 2017, 08:23
Forum: Ask For Help
Topic: Help with cursor hiding script Topic is solved
Replies: 15
Views: 2686

Re: Help with cursor hiding script Topic is solved

There is another way with SHELLHOOK that allows you to monitor (and respond to) the active window. Forum user SvenBent explains the benefits of SHELLHOOK over SetTimer here: https://autohotkey.com/boards/viewtopic.php?p=109226#p109226 It works like this: Put a Watchdog function in your script and h...
by Hitaku
30 Jun 2017, 10:09
Forum: Ask For Help
Topic: Help with cursor hiding script Topic is solved
Replies: 15
Views: 2686

Re: Help with cursor hiding script Topic is solved

I see. I've never used those before. Would you maybe be able to assist me in changing the script to use that instead?
by Hitaku
30 Jun 2017, 06:43
Forum: Ask For Help
Topic: Help with cursor hiding script Topic is solved
Replies: 15
Views: 2686

Help with cursor hiding script Topic is solved

The below script seems to work perfectly when I press ScrollLock, but I was hoping to have it work without having to press any keys if a window was active. Where exactly do I place #IfWinActive? Could someone help me out with editing this? For the sake of simplicity, lets just use #IfWinActive, Pain...
by Hitaku
15 Jun 2017, 06:38
Forum: Gaming
Topic: Dragon's Dogma Online Script Help
Replies: 4
Views: 990

Re: Dragon's Dogma Online Script Help

I feel silly, it was as simple as needing to run the file as administrator. Thank you very much for taking the time to help me!
by Hitaku
14 Jun 2017, 04:00
Forum: Gaming
Topic: Dragon's Dogma Online Script Help
Replies: 4
Views: 990

Re: Dragon's Dogma Online Script Help

That script was pretty cool, pulled the title perfectly for me. Now the issue I'm having is that #IfWinActive doesn't seem to be working with this game. Is there a work around or solution to this? I've never encountered that before so any help would be very appreciated. The below code is what I'm us...
by Hitaku
13 Jun 2017, 21:52
Forum: Gaming
Topic: Dragon's Dogma Online Script Help
Replies: 4
Views: 990

Dragon's Dogma Online Script Help

I'm currently trying to get a script running for Dragon's Dogma Online, but I can't seem to figure out what the window title is. Normally I run a script that gets me the window title and then I run a script that changes my keys if the window is active. Unfortunately, my first script doesn't seem to ...
by Hitaku
14 Mar 2017, 03:00
Forum: Ask For Help
Topic: Script Help: Cycle between two displays
Replies: 4
Views: 687

Re: Script Help: Cycle between two displays

Thanks a lot! I ended up using this, I'm not sure if it's exactly optimal, but it seems to be working well enough. OddPress := 0 ; false F1:: If Not OddPress { Send #{P} Sleep, 80 Send {Up} Sleep, 80 Send {Enter} Sleep, 80 Send {Escape} Sleep, 1000 } Else { Send #{P} Sleep, 80 Send {Down} Sleep, 80 ...
by Hitaku
14 Mar 2017, 01:09
Forum: Ask For Help
Topic: Script Help: Cycle between two displays
Replies: 4
Views: 687

Script Help: Cycle between two displays

Currently I have my secondary monitor that I use to extend my primary display. I'd like to do the same with my third monitor, but my graphics card unfortunately only supports two displays. I would like a script that will cycle between monitor 2 and monitor 3 as my extended display on key press (f12)...

Go to advanced search