Search found 107 matches

by Onimuru
01 Oct 2018, 15:10
Forum: Gaming Help (v1)
Topic: delete i guess Topic is solved
Replies: 5
Views: 1849

Re: Need help with samp Topic is solved

I don't understand, could you give an example of the code you have so far?
by Onimuru
01 Oct 2018, 15:08
Forum: Gaming Help (v1)
Topic: AHK Simple key press macro Topic is solved
Replies: 1
Views: 905

Re: AHK Simple key press macro Topic is solved

#SingleInstance Force SendMode Input Exit ~*$q:: ;The q button acts normally with the addition of ~. If !Ten_Second_Timer ;If not true i.e. hasn't run in at least 10 seconds. { Ten_Second_Timer := True SetTimer, Ten_Second_Timer, -10000 ;Run timer a single time. Send 2 } Return Ten_Second_Timer: Te...
by Onimuru
29 Sep 2018, 19:38
Forum: Gaming Help (v1)
Topic: Reverse Key Pressing
Replies: 10
Views: 2982

Re: Reverse Key Pressing

You need to debug your issue yourself, I tested the code I posted and it works fine. It may be UAC or something. In fact, all the code posted here is good. I'm not sure if you want p to be sent continuously (ppppppppp) or as held down but once you fix the crashing issue you're having, you will find ...
by Onimuru
29 Sep 2018, 19:32
Forum: Gaming Help (v1)
Topic: Send keystrokes to a single inactive or unfocused game window, with multiple instances of the game open
Replies: 22
Views: 21568

Re: Send keystrokes to a single inactive or unfocused game window, with multiple instances of the game open

Strange that you are able to send clicks but not keyboard inputs. I tried to do exactly what you're doing at one point for a game I play but I gave up in the end, too much of a headache. Here's the code I tried before I gave up: ;[1] ;v:: ; SetControlDelay -1 ; ControlFocus, , ahk_class LaunchUnreal...
by Onimuru
28 Sep 2018, 11:37
Forum: Gaming Help (v1)
Topic: Send keystrokes to a single inactive or unfocused game window, with multiple instances of the game open
Replies: 22
Views: 21568

Re: Send keystrokes to a single inactive or unfocused game window, with multiple instances of the game open

The code I gave you works fine, you can test it yourself with: #SingleInstance Force SendMode Input if !A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } Exit F12:: ID := WinExist("A") ;Gets the ID of the current active window on every press of F12. ToolTip % ID, 0, 0 Return You need to confirm ...
by Onimuru
28 Sep 2018, 07:29
Forum: Gaming Help (v1)
Topic: Send keystrokes to a single inactive or unfocused game window, with multiple instances of the game open
Replies: 22
Views: 21568

Re: Send keystrokes to a single inactive or unfocused game window, with multiple instances of the game open

Like this: #SingleInstance Force SendMode Input Exit F12:: If !Toggle_Variable ;If not on already. ID := WinExist("A") ;The current active window. SetTimer, Routine, % ((Toggle_Variable := !Toggle_Variable) ? "10000" : "Off") ;Toggle timer on/off. Return Routine: ControlSend, , 3, ahk_id %ID% Return
by Onimuru
25 Sep 2018, 17:33
Forum: Gaming Help (v1)
Topic: Reverse Key Pressing
Replies: 10
Views: 2982

Re: Reverse Key Pressing

I have come up with this so far: KeyState := GetKeyState("Shift") loop{ if (KeyState = 1){ send {p up} } else{ send {p down} } sleep 20 } It sends P as down continuously, but Shift doesn't break the loop. Try this: #SingleInstance Force SendMode Input SetTimer, p_L, On Exit p_L: Send {p Down} Sleep...
by Onimuru
25 Sep 2018, 02:50
Forum: Gaming Help (v1)
Topic: Autohotkey causes key jamming for no apparent reason
Replies: 18
Views: 5547

Re: Autohotkey causes key jamming for no apparent reason

Code: Select all

SendMode Input

Exit

LWin::Alt
Ralt::RWin
Or just use the program I linked, I use it. For straight up remaps, it's better. Changes are made to the registry I guess
by Onimuru
24 Sep 2018, 03:02
Forum: Gaming Help (v1)
Topic: Function for swap on button press
Replies: 1
Views: 657

Re: Function for swap on button press

Like this: #SingleInstance Force SendMode Input Exit MButton::Send % ((MyVar := !MyVar) ? "{MButton}" : "1") ;Toggles MyVar between True and False states (all variables are False by default, this is also true if they don't exist) and sends MButton/1. #If MyVar ;If MyVar is True (has been toggled by ...
by Onimuru
22 Sep 2018, 08:52
Forum: Gaming Help (v1)
Topic: Diablo 3, toggle R mouse button Topic is solved
Replies: 3
Views: 1855

Re: Diablo 3, toggle R mouse button Topic is solved

Add this code to all of your future scripts so that you don't need to worry about admin privileges! #SingleInstance Force SendMode Input GoSub a_L Exit ;End auto-exec section ;-------------------------------------------------- LABELS & FUNCTIONS --------------------------------------------------; a_...
by Onimuru
22 Sep 2018, 07:21
Forum: Gaming Help (v1)
Topic: Diablo 3, toggle R mouse button Topic is solved
Replies: 3
Views: 1855

Re: Diablo 3, toggle R mouse button Topic is solved

Here are two ways to do it: 1: #SingleInstance Force SendMode Input Exit *$RButton::Click, % ((KeyDown := !KeyDown) ? "Down, Right" : "Up, Right") 2: #SingleInstance Force SetTitleMatchMode, 2 CoordMode, Mouse, Screen SendMode Input Exit *$RButton:: MouseGetPos, x, y ControlClick, x%x% y%y%, ahk_cla...
by Onimuru
21 Sep 2018, 13:39
Forum: Gaming Help (v1)
Topic: Help needed - multiple keystrokes while holding down a key Topic is solved
Replies: 3
Views: 1194

Re: Help needed - multiple keystrokes while holding down a key Topic is solved

I spent allot of time time trying to break a long loop I made while it's executing (i.e. in the middle of the loop) and eventually just settled for reload. I don't think AHK can do it without adding a break clause after every action but maybe someone else will give you a better script. #SingleInstan...
by Onimuru
21 Sep 2018, 01:11
Forum: Gaming Help (v1)
Topic: Roblox jumping Jacks Script, HELP!
Replies: 6
Views: 15144

Re: Roblox jumping Jacks Script, HELP!

What is your jump key key? What do you mean by say, type in chat? #SingleInstance Force SendMode Input Number_Array := ["One", "Two", "Three", "Four"] ;Add your numbers here. Exit $Space:: ;Change this hotkey probably. If !Toggle_Variable Global i := 0 SetTimer, j_L, % ((Toggle_Variable := !Toggle_V...
by Onimuru
19 Sep 2018, 03:08
Forum: Gaming Help (v1)
Topic: key toggle (but keep function for once) / how to pixel detect toggle?
Replies: 2
Views: 970

Re: key toggle (but keep function for once) / how to pixel detect toggle?

#SingleInstance Force CoordMode, Mouse, Screen SendMode Input Exit ~*$Space::Toggle_Variable := False ~*$Esc::Toggle_Variable := False *$q:: Send, % ((!Toggle_Variable) ? "q" : "d") If !Toggle_Variable { Toggle_Variable := True MouseGetPos, x, y Sleep 50 ;Give the UI time to register q Click, 84, 3...
by Onimuru
18 Sep 2018, 00:45
Forum: Gaming Help (v1)
Topic: Autohotkey causes key jamming for no apparent reason
Replies: 18
Views: 5547

Re: Autohotkey causes key jamming for no apparent reason

Not the answer you're looking for but if you straight up want to remap those keys, this is the easiest way to do it: https://keytweak.en.softonic.com/
by Onimuru
17 Sep 2018, 06:32
Forum: Gaming Help (v1)
Topic: Hold right click to hold right click and spam keystroke Topic is solved
Replies: 1
Views: 2561

Re: Hold right click to hold right click and spam keystroke Topic is solved

Try this: #SingleInstance Force SendMode Input Process, Priority, , High SetBatchLines, -1 Exit ~*$RButton:: KeyWait, RButton, T0.350 If ErrorLevel { #MaxHotkeysPerInterval 20000 #HotkeyInterval 20 SetKeyDelay, -1, -1 Loop { If !GetKeyState("RButton", "P") Break Send 4 Sleep 80 } } Return If you pre...
by Onimuru
14 Sep 2018, 08:46
Forum: Gaming Help (v1)
Topic: Requesting help with specific Mouse to Joystick script.
Replies: 11
Views: 3150

Re: Requesting help with specific Mouse to Joystick script.

I can’t help you any further, I suggest you read the sticky on this sub forum reference controllers or google it, I got a ton of hits.
by Onimuru
13 Sep 2018, 06:45
Forum: Gaming Help (v1)
Topic: Requesting help with specific Mouse to Joystick script.
Replies: 11
Views: 3150

Re: Requesting help with specific Mouse to Joystick script.

Ok, I see I misunderstood you originally. I have no experience with using a controller so I googled it and there was a script already made so this is almost entirely someone else's code, I just made a small addition at the end to reset the cursor to the center of the screen. Obviously I can't test t...
by Onimuru
13 Sep 2018, 01:20
Forum: Gaming Help (v1)
Topic: Monster Hunter world HELP
Replies: 1
Views: 1825

Re: Monster Hunter world HELP

Use this code while the game is active to copy the class to your clipboard: x:: WinGetClass _w, A Clipboard := %_w% Return Then in your MHW script add the following: SetTitleMatchMode, 2 ;Add this to the top of your script, before any return/exit Exit #If WinActive("ahk_class [x]") ;Use ctrl+v to pa...
by Onimuru
12 Sep 2018, 14:19
Forum: Gaming Help (v1)
Topic: Requesting help with specific Mouse to Joystick script.
Replies: 11
Views: 3150

Re: Requesting help with specific Mouse to Joystick script.

Right click your desktop and create a new AHK file then edit and paste your code inside. Run as admin and make sure you have an AHK icon on your task bar to tell if it's running! You need to modify the code as well, read my comments.

Go to advanced search