Search found 444 matches
- 07 Apr 2018, 07:24
- Forum: Gaming
- Topic: Can you help out a begginer? Topic is solved
- Replies: 4
- Views: 1089
Re: Can you help out a begginer? Topic is solved
BoBo had forgotten #Maxthreadsperhotkey and setting toggle to 0, but here's the correct version: May I try to correct you? (your signature says it's OK) 1. AHK allows writing short and crisp code. The way this works may be considered quirky or just helpful. Pick your favourite. In essence, AHK does...
- 07 Apr 2018, 01:40
- Forum: Gaming
- Topic: Can you help out a begginer? Topic is solved
- Replies: 4
- Views: 1089
Re: Can you help out a begginer? Topic is solved
~LButton:: ; change accordingly toggle := !toggle If (toggle) Send, e Return Not tested. BoBo had forgotten #Maxthreadsperhotkey and setting toggle to 0, but here's the correct version: #MaxThreadsPerHotkey 2 Toggle := 0 ~LButton:: ; change accordingly Toggle := !Toggle If Toggle Send, e Return Oka...
- 04 Apr 2018, 23:05
- Forum: Ask For Help
- Topic: About gui (calling label when it's executing)
- Replies: 2
- Views: 536
Re: About gui (calling label when it's executing)
Hmm okay I guess I'll have to use SetTimer?Cuadrix wrote:It's because of the loop.
I had a similar issue:
https://autohotkey.com/boards/viewtopic ... 28#p206128
Even #MaxThreadsPerHotkey didn't work for me...
- 04 Apr 2018, 13:10
- Forum: Ask For Help
- Topic: About gui (calling label when it's executing)
- Replies: 2
- Views: 536
About gui (calling label when it's executing)
So I have a full gui spam script and I'm stuck at this part: SpamDelete: SoundPlay, audio5.mp3 Spam := !Spam ;Spam has been set as 0 before this If Spam { GuiControl, , Spam5, C:\Stop.png Loop { ControlSend, ahk_parent, {Blind}{right down}, ahk_exe Chat.exe Sleep 1000 ControlSend, ahk_parent, {Blind...
- 03 Apr 2018, 01:11
- Forum: Ask For Help
- Topic: ( MButton & LButton) invalid?
- Replies: 1
- Views: 504
( MButton & LButton) invalid?
I don't get it. When I tried to run a script with MButton & LButton:: RButton because my right mouse button is broken, it says that it's invalid. But I had been using the same thing yesterday. The same exact script and it allowed me to. Why did it so randomly decide to stop functioning? :crazy: Now ...
- 30 Mar 2018, 05:25
- Forum: Ask For Help
- Topic: MouseClickDrag suddenly stopped working? (drags instantly instead of delay)
- Replies: 8
- Views: 1180
Re: MouseClickDrag suddenly stopped working? (drags instantly instead of delay)
I think it has to do with this: If a script other than the one executing SendInput has a low-level keyboard hook installed, SendInput automatically reverts to SendEvent (or SendPlay if SendMode InputThenPlay is in effect). This is done because the presence of an external hook disables all of SendIn...
- 30 Mar 2018, 04:14
- Forum: Gaming
- Topic: Can someone help me.
- Replies: 3
- Views: 770
Re: Can someone help me.
Welcome :thumbup: Someone is on vacation, so you have to take my advice instead ... #SingleInstance, Force ^!v::Send, %ClipBoard% Check out the SetKeyDelay -command as well! Happy scripting 8-) PS. clicking on a command in the codebox will provide further details. Woah someone extended his vacation...
- 30 Mar 2018, 03:21
- Forum: Ask For Help
- Topic: MouseClickDrag suddenly stopped working? (drags instantly instead of delay)
- Replies: 8
- Views: 1180
Re: MouseClickDrag suddenly stopped working? (drags instantly instead of delay)
I tried with SendInput again and it doesn't work. But I could swear that yesterday it worked perfectly fine. This is so weird.
- 30 Mar 2018, 02:20
- Forum: Ask For Help
- Topic: MouseClickDrag suddenly stopped working? (drags instantly instead of delay)
- Replies: 8
- Views: 1180
Re: MouseClickDrag suddenly stopped working? (drags instantly instead of delay)
It works sometimes and doesn't other times. This is confusing.
Just
works. But it won't work with SendMode input?
But it worked even with SendMode input yesterday. Huh?
Just
Code: Select all
i:: MouseClickDrag, Left, 5, 470, 510, 470, 100
But it worked even with SendMode input yesterday. Huh?
- 30 Mar 2018, 02:16
- Forum: Ask For Help
- Topic: MouseClickDrag suddenly stopped working? (drags instantly instead of delay)
- Replies: 8
- Views: 1180
MouseClickDrag suddenly stopped working? (drags instantly instead of delay)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting...
- 29 Mar 2018, 22:20
- Forum: Ask For Help
- Topic: Is it possible to 'click and drag' in inactive window?
- Replies: 4
- Views: 1187
- 29 Mar 2018, 12:19
- Forum: Gaming
- Topic: Why isn't SetTimer working?
- Replies: 2
- Views: 534
Re: Why isn't SetTimer working?
Thanks Rowedder helping people as always.Rohwedder wrote:Hallo,
it works, but the timer does not interrupt individual MouseClickDrags. Use 2 scripts.

I also noticed that the mouseclickdrags won't allow the script to exit until the drag is done, must have some priority.
- 29 Mar 2018, 06:29
- Forum: Ask For Help
- Topic: Is it possible to 'click and drag' in inactive window?
- Replies: 4
- Views: 1187
Re: Is it possible to 'click and drag' in inactive window?
Found this thread https://autohotkey.com/board/topic/4063 ... -dragging/
But I still don't know what to pick from that.. it's all japanese and chinese lol.
But I still don't know what to pick from that.. it's all japanese and chinese lol.
- 29 Mar 2018, 02:13
- Forum: Gaming
- Topic: Why isn't SetTimer working?
- Replies: 2
- Views: 534
Why isn't SetTimer working?
It's not working when it's under u:: u:: SetTimer, down, 200 MouseMove, 5, 470 Loop { MouseClickDrag, Left, 5, 470, 510, 470, 100 MouseClickDrag, Left, 510, 470, 1020, 470, 100 MouseClickDrag, Left, 1020, 470, 510, 470, 100 MouseClickDrag, Left, 510, 470, 5, 470, 100 } return down: Send, {d down} Sl...
- 28 Mar 2018, 23:45
- Forum: Ask For Help
- Topic: Is it possible to 'click and drag' in inactive window?
- Replies: 4
- Views: 1187
Re: Is it possible to 'click and drag' in inactive window?
https://autohotkey.com/docs/commands/ControlClick.htm Options A series of zero or more of the following option letters. For example: d x50 y25. NA [v1.0.45+]: May improve reliability. See reliability below. D: Press the mouse button down but do not release it (i.e. generate a down-event). If both t...
- 28 Mar 2018, 23:32
- Forum: Ask For Help
- Topic: Is it possible to 'click and drag' in inactive window?
- Replies: 4
- Views: 1187
Is it possible to 'click and drag' in inactive window?
I know about controlclick and controlsend but they cannot simulate click and drag can they? Appreciate it.
- 27 Mar 2018, 04:02
- Forum: Ask For Help
- Topic: macro message 1 minute d'intervalle Topic is solved
- Replies: 3
- Views: 725
Re: macro message 1 minute d'intervalle Topic is solved
Use SetTimer containing the send command and use an array to specify the sequence of the sends.
- 27 Mar 2018, 04:00
- Forum: Ask For Help
- Topic: How to make it so that..
- Replies: 3
- Views: 683
Re: How to make it so that..
I guess I'll just rely on setting the working directory. Any suggestions?
- 27 Mar 2018, 02:52
- Forum: Ask For Help
- Topic: How to make it so that..
- Replies: 3
- Views: 683
How to make it so that..
How to make it so that a script does not perform an action if it has already been done that day. (this can be useful if you want something done daily but only once and without needing to manually open and run a script) I thought about using fileopen and fileread. But is there anyway to make it so th...
- 23 Mar 2018, 12:54
- Forum: Gaming
- Topic: Want a script that checks possibilities Topic is solved
- Replies: 4
- Views: 828
Re: Want a script that checks possibilities Topic is solved
letters := "abcd", Arr := StrSplit(letters) Loop, 1000 { max:= 4 tmpArr := Arr.Clone() Loop, % tmpArr.MaxIndex() { random,rnd,1,% max str .= tmpArr[rnd] tmpArr.Remove(rnd) max := tmpArr.Maxindex() } str .= "`n" } Sort, str, U MsgBox %str% Very nice! :shock: I had wanted something similar and this i...