Search found 39 matches

by Ulfric Stormcloak
17 Nov 2017, 22:28
Forum: Gaming
Topic: need help modifying this script made by someone else
Replies: 2
Views: 231

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 DetectHiddenWi...
by Ulfric Stormcloak
05 Nov 2017, 21:46
Forum: Ask For Help
Topic: I want to spam a key to a window open in the background but my simple script wont work
Replies: 2
Views: 139

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...
by Ulfric Stormcloak
05 Nov 2017, 02:22
Forum: Ask For Help
Topic: I want to spam a key to a window open in the background but my simple script wont work
Replies: 2
Views: 139

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...
by Ulfric Stormcloak
20 Jul 2017, 23:41
Forum: Ask For Help
Topic: send keystrokes to a window in the background but i cant find the window name
Replies: 1
Views: 84

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...
by Ulfric Stormcloak
20 Jul 2017, 06:58
Forum: Ask For Help
Topic: Send click to a window in the background that is not minimised
Replies: 3
Views: 140

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...
by Ulfric Stormcloak
05 Jul 2017, 19:58
Forum: Ask For Help
Topic: Want to break this loop with a keypress cant get it to work.
Replies: 2
Views: 138

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...
by Ulfric Stormcloak
26 May 2017, 04:26
Forum: Ask For Help
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: 292

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 ...
by Ulfric Stormcloak
26 May 2017, 03:45
Forum: Ask For Help
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: 292

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, % &quo...
by Ulfric Stormcloak
26 May 2017, 03:20
Forum: Ask For Help
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: 292

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 differe...
by Ulfric Stormcloak
26 May 2017, 02:37
Forum: Ask For Help
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: 292

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...
by Ulfric Stormcloak
25 May 2017, 14:17
Forum: Ask For Help
Topic: I want my script to take priority and make sure the key strokes are send Topic is solved
Replies: 4
Views: 223

Re: I want my script to take priority and make sure the key strokes are send Topic is solved

Delta Pythagorean wrote:
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


Show me what you want the script to do.
Are you wanting to send some numbers, press tab, then type more numbers, then repeat?


Its okay i figured it out :)
by Ulfric Stormcloak
25 May 2017, 13:27
Forum: Gaming
Topic: [Function] Timer
Replies: 5
Views: 6785

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 ...
by Ulfric Stormcloak
25 May 2017, 12:38
Forum: Ask For Help
Topic: How do i get this script to start instantly
Replies: 4
Views: 208

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...
by Ulfric Stormcloak
25 May 2017, 12:13
Forum: Ask For Help
Topic: I want my script to take priority and make sure the key strokes are send Topic is solved
Replies: 4
Views: 223

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...
by Ulfric Stormcloak
25 May 2017, 11:21
Forum: Ask For Help
Topic: I want my script to take priority and make sure the key strokes are send Topic is solved
Replies: 4
Views: 223

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 ...
by Ulfric Stormcloak
25 May 2017, 10:29
Forum: Ask For Help
Topic: How do i get this script to start instantly
Replies: 4
Views: 208

Re: How do i get this script to start instantly

Exaskryz wrote:GoSub - use this along with SetTimer to immediately jump to that routine.
Sleep - use this to make the 1 second delays between going to each routine


I am not sure where should i add the Gosub command
by Ulfric Stormcloak
25 May 2017, 10:03
Forum: Ask For Help
Topic: How do i get this script to start instantly
Replies: 4
Views: 208

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...
by Ulfric Stormcloak
19 May 2017, 01:12
Forum: Ask For Help
Topic: Need help detecting a image
Replies: 3
Views: 177

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, Cli...
by Ulfric Stormcloak
18 May 2017, 22:51
Forum: Ask For Help
Topic: Need help detecting a image
Replies: 3
Views: 177

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 ...

Go to advanced search