Search found 39 matches
- 17 Nov 2017, 22:28
- Forum: Gaming Help (v1)
- Topic: need help modifying this script made by someone else
- Replies: 2
- Views: 1146
need help modifying this script made by someone else
This a tool that help you see which commands work in your game https://autohotkey.com/board/topic/95653-send-and-click-tool-v32/ if not A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } ; ======================== #SingleInstance, force #InstallKeybdHook #InstallMouseHook DetectHiddenWindows, On ...
- 05 Nov 2017, 21:46
- Forum: Ask for Help (v1)
- Topic: I want to spam a key to a window open in the background but my simple script wont work
- Replies: 2
- Views: 1560
Re: I want to spam a key to a window open in the background but my simple script wont work
What variants have you tried on ControlSend ? Have you inspected the window with Window Spy? Window Spy can be accessed by right-clicking the tray icon (by the system clock) of a running script. If you can identify any "ClassNN" value, put that in the first parameter instead of leaving it blank. Ot...
- 05 Nov 2017, 02:22
- Forum: Ask for Help (v1)
- Topic: I want to spam a key to a window open in the background but my simple script wont work
- Replies: 2
- Views: 1560
I want to spam a key to a window open in the background but my simple script wont work
I want to spam a key to a window open in the background but my simple script wont work. The first part of the code works correctly it brings the window to the foreground. But than the key spamming does work. Can anyone tell me what i did wrong in my script ? WinWait, Uncharted Waters Online, IfWinNo...
- 20 Jul 2017, 23:41
- Forum: Ask for Help (v1)
- Topic: send keystrokes to a window in the background but i cant find the window name
- Replies: 1
- Views: 622
send keystrokes to a window in the background but i cant find the window name
wintitle = SetTitleMatchMode, 2 #SingleInstance Force IfWinExist %wintitle% { loop { Controlsend,,{v}, %wintitle% sleep 500 } } Return F5:: ExitApp Hi I have this script for sending keystrokes to a window in the background but i can write the wintitle because the window title has some weird charact...
- 20 Jul 2017, 07:36
- Forum: Ask for Help (v1)
- Topic: Send click to a window in the background that is not minimised
- Replies: 3
- Views: 1298
- 20 Jul 2017, 06:58
- Forum: Ask for Help (v1)
- Topic: Send click to a window in the background that is not minimised
- Replies: 3
- Views: 1298
Send click to a window in the background that is not minimised
Hi I want to be able to send clicks every 100 ms at specific cords to a window that is not active, it is open in the background and it is not minimised. While this script is running I want to be able to use my computer to do other stuff while the click are being send. Is it possible ? I looked at co...
- 05 Jul 2017, 19:58
- Forum: Ask for Help (v1)
- Topic: Want to break this loop with a keypress cant get it to work.
- Replies: 2
- Views: 790
Want to break this loop with a keypress cant get it to work.
This my script #Persistent #MaxThreadsPerHotkey 2 #SingleInstance toggle := False z:: toggle := !toggle Loop { If (!toggle) { break } Send, {Tab} Sleep, 300 SendInput 1 Sleep, 700 SendInput 3 Sleep, 700 SendInput 5 Sleep, 300 Send, {Tab} Sleep, 300 SendInput 1 Sleep, 700 SendInput 2 Sleep, 700 SendI...
- 26 May 2017, 04:26
- Forum: Ask for Help (v1)
- Topic: Settimer function is getting synced with other set timer function in the script. Also problem with blockinput function Topic is solved
- Replies: 7
- Views: 2087
Re: Settimer function is getting synced with other set timer function in the script. Also problem with blockinput functi Topic is solved
First, save the code from my previous post as FIFO.ahk in the same folder as your script. Then try this: #Include, FIFO.ahk MyQueue := Array() SetTimer, QueueManager, 1000 Return ;------------------------------------------------------------------------------- QueueManager: ; runs once every second ...
- 26 May 2017, 03:45
- Forum: Ask for Help (v1)
- Topic: Settimer function is getting synced with other set timer function in the script. Also problem with blockinput function Topic is solved
- Replies: 7
- Views: 2087
Re: Settimer function is getting synced with other set timer function in the script. Also problem with blockinput functi Topic is solved
Re: Queue I would start by making an "interface" (wrong word?) like so: /* test MyQueue := Array() FIFO_Push( 9, MyQueue) FIFO_Push( "-", MyQueue) FIFO_Push( 77, MyQueue) FIFO_Push( "", MyQueue) FIFO_Push("xyz", MyQueue) While FIFO_Len(MyQueue) MsgBox, % "Len " FIFO_Len(MyQueue) "`nPop " FIFO_Pop(M...
- 26 May 2017, 03:20
- Forum: Ask for Help (v1)
- Topic: Settimer function is getting synced with other set timer function in the script. Also problem with blockinput function Topic is solved
- Replies: 7
- Views: 2087
Re: Settimer function is getting synced with other set timer function in the script. Also problem with blockinput functi Topic is solved
You could create a queue. Then have the keys enter the queue at the exact time respectively, and implement a Queue-Manager to work through the queue one key at a time. (The queue should be "first in, first out") I'm not sure about your second question, but I think BlockInput works differently on Wi...
- 26 May 2017, 02:37
- Forum: Ask for Help (v1)
- Topic: Settimer function is getting synced with other set timer function in the script. Also problem with blockinput function Topic is solved
- Replies: 7
- Views: 2087
Settimer function is getting synced with other set timer function in the script. Also problem with blockinput function Topic is solved
My script basically press the key 3,4 and 5 every 4, 20 and 18 seconds. The problem i have is sometimes the 4th second and 20th second or 18th second occur at the same time. Hence the script press the keys really fast. I dont want it to do that. I want a at least a 1 second delay before the next but...
- 25 May 2017, 14:17
- Forum: Ask for Help (v1)
- Topic: I want my script to take priority and make sure the key strokes are send Topic is solved
- Replies: 4
- Views: 1842
Re: I want my script to take priority and make sure the key strokes are send Topic is solved
Its okay i figured it outDelta Pythagorean wrote:Show me what you want the script to do.Ulfric Stormcloak wrote: I dont understand what you did in that code but i used blockinput in my script and came up with this code
Are you wanting to send some numbers, press tab, then type more numbers, then repeat?
- 25 May 2017, 13:27
- Forum: Gaming Scripts (v1)
- Topic: [Function] Timer
- Replies: 6
- Views: 17308
Re: [Function] Timer
[Function] Timer Below is a function I use often in my gaming scripts to keep track of timers. Generally the cooldown on abilities which is prevalent in many games. The function is easy to use and not as complicated as the comments at the beginning might imply. ;{ Timer ; Fanatic Guru ; 2014 04 10 ...
- 25 May 2017, 12:38
- Forum: Ask for Help (v1)
- Topic: How do i get this script to start instantly
- Replies: 4
- Views: 1550
Re: How do i get this script to start instantly
Not tested but should be pretty close. z:: RepeatKey := !RepeatKey If RepeatKey { gosub SendTheKey1 SetTimer, SendTheKey1, 10000 Sleep 1000 gosub SendTheKey2 SetTimer, SendTheKey2, 8000 Sleep 1000 gosub SendTheKey3 SetTimer, SendTheKey3, 6000 Sleep 1000 gosub SendTheKey4 SetTimer, SendTheKey4, 7000...
- 25 May 2017, 12:13
- Forum: Ask for Help (v1)
- Topic: I want my script to take priority and make sure the key strokes are send Topic is solved
- Replies: 4
- Views: 1842
Re: I want my script to take priority and make sure the key strokes are send Topic is solved
https://autohotkey.com/docs/commands/BlockInput.htm I dont understand what you did in that code but i used blockinput in my script and came up with this code z:: RepeatKey := !RepeatKey If RepeatKey { SetTimer, SendTheKey1, 10000 SetTimer, SendTheKey2, 5000 SetTimer, SendTheKey3, 6000 SetTimer, Sen...
- 25 May 2017, 11:21
- Forum: Ask for Help (v1)
- Topic: I want my script to take priority and make sure the key strokes are send Topic is solved
- Replies: 4
- Views: 1842
I want my script to take priority and make sure the key strokes are send Topic is solved
If i am doing other stuff on my keyboard while the script is active, I want ahk to ignore the other stuff i am doing on my keyboard and send the keystrokes from the script. Meaning i want ahk script to take priority and stop everything else and make sure the keystrokes are sent. For example if i am ...
- 25 May 2017, 10:29
- Forum: Ask for Help (v1)
- Topic: How do i get this script to start instantly
- Replies: 4
- Views: 1550
- 25 May 2017, 10:03
- Forum: Ask for Help (v1)
- Topic: How do i get this script to start instantly
- Replies: 4
- Views: 1550
How do i get this script to start instantly
My script press the key 1 , 2, 3 ,4 every 10 , 8 , 6 and 7 seconds. When i start the script the first key press is after this 10 , 8 , 6 or 7 delay. But i want the script to press the key 1 , 2, 3 ,4 instantly after i start it. But not the all the keys at the same time i want their be a 1 second del...
- 19 May 2017, 01:12
- Forum: Ask for Help (v1)
- Topic: Need help detecting a image
- Replies: 3
- Views: 1098
Re: Need help detecting a image
Have a look at imagesearch or pixelsearch I am tired with this but i still dont know how to do it ; https://autohotkey.com/docs/commands/ImageSearch.htm IF NOT A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } SetWorkingDir, %A_ScriptDir% CoordMode, Mouse, Client CoordMode, Pixel, Client CoordM...
- 18 May 2017, 22:51
- Forum: Ask for Help (v1)
- Topic: Need help detecting a image
- Replies: 3
- Views: 1098
Need help detecting a image
Hi I want ahk to be able to detect this white fishing hook image when it comes on the screen. I preferably want it to be able to search the whole screen. http://imgur.com/a/Rb15H And than Press they E key After that wait 500 seconds and Press E again and than wait for the image to come up again and ...