Search found 17 matches

by Brillian
04 Apr 2019, 02:42
Forum: Gaming Help (v1)
Topic:
Replies: 0
Views: 690

Hello everyone, can somebody please help me with my problem in sending keystrokes to a specific window and be able to do something else while the AHK is active? Been trying to do this for the last 2 years I think. :cry: Here is my code: if not A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } De...
by Brillian
24 Nov 2017, 07:41
Forum: Ask for Help (v1)
Topic: Run script on a specific window only.
Replies: 14
Views: 32578

Re: Run script on a specific window only.

I've read that the controlsend does that. It sends the key strokes on a specific window. Sorry if my post is somewhat confusing. I'll just post a new one in the Gaming forum and recostruct my posts to avoid confusion. I'm sorry and thanks for the reply.
by Brillian
24 Nov 2017, 06:09
Forum: Ask for Help (v1)
Topic: Run script on a specific window only.
Replies: 14
Views: 32578

Re: Run script on a specific window only.

Not play the game for me. But to press the keys just to spam buffs etc. While I'm doing other things. I made it work with notepad. Tried and tested it is working, it keeps the script running on notepad while I'm doing other things (browsing, typing on chrome, etc). I also ask there but unfortunately...
by Brillian
23 Nov 2017, 11:58
Forum: Ask for Help (v1)
Topic: Run script on a specific window only.
Replies: 14
Views: 32578

Re: Run script on a specific window only.

"if not A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } Loop { ControlSend, , 1, Untitled - Notepad Sleep, 300 ControlSend, , 2, Untitled - Notepad Sleep, 300 ControlSend, , 3, Untitled - Notepad Sleep, 300 ControlSend, , 4, Untitled - Notepad Sleep, 300 ControlSend, , 5, Untitled - Notepad Sl...
by Brillian
23 Nov 2017, 11:52
Forum: Ask for Help (v1)
Topic: Run script on a specific window only.
Replies: 14
Views: 32578

Re: Run script on a specific window only.

You could do that with IfWinActive, as Masha Leeshoee suggested, but a better and more standard way is with the directive #IfWinActive . Hmmm.. I think that won't work. What I want is to send keys on a specific window so that I can do other things while the script is also doing its job on the windo...
by Brillian
23 Nov 2017, 10:00
Forum: Ask for Help (v1)
Topic: Run script on a specific window only.
Replies: 14
Views: 32578

Re: Run script on a specific window only.

Thank you for the response, sir. I have a question. Disregarding my codes above. How can I make a new one to have a similar that can work on a selected window? Because I want to do stuffs simultaneously. With the codes I'm currently using, I cannot switch windows (alt tab) to do other works while my...
by Brillian
23 Nov 2017, 09:53
Forum: Gaming Help (v1)
Topic: Run script on a specific window game only
Replies: 9
Views: 9582

Re: Run script on a specific window game only

Your hotkeys can be made to only work on the window if it's active by using # IfWinActive Rohan above the first hotkey you want to be affected (so, just put it at the top of the script). Your timers you may want to make the first two lines under the label be this: IfWinNotActive, Rohan return Which...
by Brillian
17 Nov 2017, 15:00
Forum: Gaming Help (v1)
Topic: Run script on a specific window game only
Replies: 9
Views: 9582

Re: Run script on a specific window game only

BUMP..

Can't make it work. I want something like this: https://autohotkey.com/board/topic/7183 ... ackground/

Here is the info of the window I want to be affected by the AHK:
Window Title: Rohan
Class: ahk_class Rohan
Process: ahk_exe rohanclient.exe
by Brillian
08 Nov 2017, 16:45
Forum: Ask for Help (v1)
Topic: Run script on a specific window only.
Replies: 14
Views: 32578

Re: Run script on a specific window only.

not A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } #Persistent SetTimer, PressTheKey, 500 SetKeyDelay, 100 Return PressTheKey: IfWinActive, WinTitle ;<- Name of window u want SendEvent, 1234567890 Return #If, A_IsPaused Home:: Suspend Pause Return #If Home:: Suspend Pause Return Doesn't work...
by Brillian
07 Nov 2017, 08:12
Forum: Gaming Help (v1)
Topic: Run script on a specific window game only
Replies: 9
Views: 9582

Re: Run script on a specific window game only

Anyone can help me with this?
by Brillian
07 Nov 2017, 02:16
Forum: Gaming Help (v1)
Topic: Run script on a specific window game only
Replies: 9
Views: 9582

Re: Run script on a specific window game only

Bump. Help please.
by Brillian
06 Nov 2017, 12:58
Forum: Gaming Help (v1)
Topic: Run script on a specific window game only
Replies: 9
Views: 9582

Run script on a specific window game only

Hello everyone! Is there any way that a script will run on a specific window only? Because I want to do some other stuff while running the script. I am playing an online game and I just need to spam keys: 1234567890 infinitely or until I press something that suspends the script. I'm currently using ...
by Brillian
06 Nov 2017, 12:50
Forum: Ask for Help (v1)
Topic: Run script on a specific window only.
Replies: 14
Views: 32578

Re: Run script on a specific window only.

Thanks for the reply everyone! It seems like I need to replace it with ControlSend. I have no success of doing it. I just want to spam 1234567890 in just one window. Can somebody help me?
by Brillian
06 Nov 2017, 11:59
Forum: Ask for Help (v1)
Topic: Run script on a specific window only.
Replies: 14
Views: 32578

Run script on a specific window only.

Hello everyone! I've been using AHK since last year but I just joined the forums because I can't seem to find any solution to my problem. Problem: I want to run my script for a specific window and does not effect any other window that I'm currently working on. I came across this thread: https://auto...

Go to advanced search