Search found 61 matches

by sdkyron
19 Sep 2022, 19:26
Forum: Ask for Help (v1)
Topic: Send keystroke to non focussed window
Replies: 9
Views: 1945

Re: Send keystroke to non focussed window

Now to find the reason why it makes my computer lag so much, i assume it has something to do with #MaxHotkeysPerInterval 99000000 #HotkeyInterval 99000000 Those are extreme numbers, try lowering them and see if it helps. I did and it helped a lot. There is still one issue though, for some reason, w...
by sdkyron
19 Sep 2022, 13:19
Forum: Ask for Help (v1)
Topic: Send keystroke to non focussed window
Replies: 9
Views: 1945

Re: Send keystroke to non focussed window

@sdkyron, I think this question has been answered here . Try using ControlFocus, Chrome_RenderWidgetHostHWND1, Idle Skilling before ControlSend. It seems to be working perfectly ! Now to find the reason why it makes my computer lag so much, i assume it has something to do with #MaxHotkeysPerInterva...
by sdkyron
19 Sep 2022, 08:59
Forum: Ask for Help (v1)
Topic: Send keystroke to non focussed window
Replies: 9
Views: 1945

Re: Send keystroke to non focussed window

Seems like you are trying to automate a game? In that case you might want to try using SendPlay. But automating games and full screen applications might not be as easy as you might like. You might need to activate the window before sending the keystrokes because they usually do not interpret keys s...
by sdkyron
18 Sep 2022, 20:57
Forum: Ask for Help (v1)
Topic: Send keystroke to non focussed window
Replies: 9
Views: 1945

Re: Send keystroke to non focussed window

@sdkyron Hi my brother, use this, it must work well for u :wave: :twisted: global DELAY:=1 ;delay for loop global KEYS_TO_SEND:=12345 ;keys to send, u can usea "12345" instead 12345, you can send "{enter}{backspace}"etc.. global WINDOW_TO_SEARCH:="Idle Skilling" ;name of window global WIN_EXIST:="a...
by sdkyron
18 Sep 2022, 05:16
Forum: Ask for Help (v1)
Topic: Send keystroke to non focussed window
Replies: 9
Views: 1945

Send keystroke to non focussed window

Hello :) So i'm trying to send 1, 2, 3, 4, 5 repeating every 1 second to a window that is not in focus without focussing it. I came up with the following for some reason it doesn't work, it sends it once when it's focussed, but nothing when not focussed, i don't understand why. #NoEnv SetBatchLines ...
by sdkyron
17 Feb 2022, 14:23
Forum: Gaming Help (v1)
Topic: Can someone help me
Replies: 1
Views: 474

Re: Can someone help me

I had one a long time ago, it should still work, just add this in your script.

Code: Select all

correctX := 0 ; Horizontal recoil correction, + right - left
correctY := 5 ; Vertical recoil correction, + down - up

MouseMove, %correctX%, %correctY%, 1, R
by sdkyron
17 Feb 2022, 10:42
Forum: Gaming Help (v1)
Topic: Help needed with key sequence Topic is solved
Replies: 25
Views: 3563

Re: Help needed with key sequence Topic is solved

Yes this is the entire script and it works perfectly (for now) hehe :)

Thank you so much for all your help.
by sdkyron
17 Feb 2022, 09:32
Forum: Gaming Help (v1)
Topic: Help needed with key sequence Topic is solved
Replies: 25
Views: 3563

Re: Help needed with key sequence Topic is solved

Try #InstallKeybdHook . Read KeyHistory . If the script does not have the keyboard hook installed, the KeyHistory window will display only the keyboard events generated by the script itself (i.e. not the user's). To include a quotation mark inside an expression, double it to "" . Explained: Escape ...
by sdkyron
16 Feb 2022, 00:54
Forum: Gaming Help (v1)
Topic: Help needed with key sequence Topic is solved
Replies: 25
Views: 3563

Re: Help needed with key sequence Topic is solved

Your idea, "could be related to the keyboard", can be tested quickly: try a different keyboard, see what happens. You can guess what is happening with your key history, or... you could check AHK's key history. Works here: Send -('"é&èé Scan codes are helpful at times. Yes, Send -('"é&èé works becau...
by sdkyron
15 Feb 2022, 11:46
Forum: Gaming Help (v1)
Topic: Help needed with key sequence Topic is solved
Replies: 25
Views: 3563

Re: Help needed with key sequence Topic is solved

Line 1 has no effect on your script, so you can delete it. Same for line 5. If your script works in Notepad but not your game, then you would want to focus on how your game is responding. Tips for games are previously posted (above). There's not much more I can add specifically. Others may have add...
by sdkyron
15 Feb 2022, 11:36
Forum: Gaming Help (v1)
Topic: Help needed with key sequence Topic is solved
Replies: 25
Views: 3563

Re: Help needed with key sequence Topic is solved

Here's the whole script for now, i need to add a few things but they're not relevant. And then the screenshot, the key sequence is fine in notepad It could be totally unrelated but i use an azerty keyboard and to actually send numbers i need to use shift. otherwise, 654321 would look like -('"é& #If...
by sdkyron
15 Feb 2022, 11:02
Forum: Gaming Help (v1)
Topic: Help needed with key sequence Topic is solved
Replies: 25
Views: 3563

Re: Help needed with key sequence Topic is solved

Well, how to say this... i don't know how to test scripts in npp++ so i googled it and found this https://www.autohotkey.com/boards/viewtopic.php?t=30829 But unfortunately, it runs the script instead of testing it I think the issue might be somewhere else though because, i only left this: #If mouseO...
by sdkyron
15 Feb 2022, 10:37
Forum: Gaming Help (v1)
Topic: Help needed with key sequence Topic is solved
Replies: 25
Views: 3563

Re: Help needed with key sequence Topic is solved

#If mouseOver(myProcess) ~RButton:: SetKeyDelay, 100, 100 ; Delay, PressDuration While GetKeyState("RButton", "P") && !GetKeyState("Alt", "P") Loop, Parse, % "6543217" Send % GetKeyState("RButton", "P") ? "{" A_LoopField " 3}" : "" Return #If Omg you are a lifesaver, thank you so much. I've noticed...
by sdkyron
15 Feb 2022, 10:05
Forum: Gaming Help (v1)
Topic: Help needed with key sequence Topic is solved
Replies: 25
Views: 3563

Re: Help needed with key sequence Topic is solved

Could be. An approach to that is below. So, this is how it is now, repeating the numbers in the list is the only way i found so that they actually register in the game. Is there a "cleaner" way to do this where i would only have to change one value that would define how many times each number is hi...
by sdkyron
15 Feb 2022, 07:23
Forum: Gaming Help (v1)
Topic: Help needed with key sequence Topic is solved
Replies: 25
Views: 3563

Re: Help needed with key sequence Topic is solved

Ok, i will try this, you're so helpfull, thank you :)

That's the thing, i don't know what's wrong with #IfWinActive

My guess is, the script remains active when i move my mouse from one screen to the next and before activating a window in the screen i'm moving to ?
by sdkyron
15 Feb 2022, 00:55
Forum: Gaming Help (v1)
Topic: Help needed with key sequence Topic is solved
Replies: 25
Views: 3563

Re: Help needed with key sequence Topic is solved

You can add a second parameter for the :arrow: SetKeyDelay (see documentation regarding press duration). So far so good, i've been testing it for a day, everything seems to work fine so far. Could this eventually work with letters instead of numbers ? Also, not quite on the same subject but, how ca...
by sdkyron
13 Feb 2022, 16:32
Forum: Gaming Help (v1)
Topic: Help needed with key sequence Topic is solved
Replies: 25
Views: 3563

Re: Help needed with key sequence Topic is solved

Test in Notepad first. The keys are sent in order. Yes, your game might respond differently. https://autohotkey.com/board/topic/111737-how-to-make-ahk-work-in-most-games-the-basics/ How could i force it to keep the "key" pressed for longer, increase the timer between down and up for each of the num...
by sdkyron
13 Feb 2022, 10:05
Forum: Gaming Help (v1)
Topic: Help needed with key sequence Topic is solved
Replies: 25
Views: 3563

Re: Help needed with key sequence Topic is solved

Oh, thank you, i'll read that, try to fix it and get back to you :)
by sdkyron
13 Feb 2022, 09:58
Forum: Gaming Help (v1)
Topic: Help needed with key sequence Topic is solved
Replies: 25
Views: 3563

Re: Help needed with key sequence Topic is solved

Well, thank you, it actually does the same as mine but, obviously yours is much better written. Unfortunately it still hits the number in what seems to be a random order but i think it's not the script's fault but the game i'm sending this to.

Go to advanced search