Search found 10 matches

by Batsmaru0410
24 Oct 2020, 07:44
Forum: Ask For Help
Topic: Insert other action when toggle loop is still on going
Replies: 1
Views: 42

Insert other action when toggle loop is still on going

Hi, I have "a" key bound to toggle loop to continues send "a" key every 300 millisecond, and another key bound to send "b" 5 times. What I wish to accomplish is when the loop that is sending "a" is ongoing, anytime I press "b" key, it will pause "a" and insert "bbbbb" in that ongoing string without ...
by Batsmaru0410
17 Oct 2020, 05:27
Forum: Ask For Help
Topic: Bind a key to toggle loop on/off
Replies: 1
Views: 80

Bind a key to toggle loop on/off

Hi, I have made a loop script to search for two images. When found, it will play bye.wav. How do I bind it to a key to toggle the loop on and off. Thanks you. CoordMode, Pixel, Screen Loop { ImageSearch, FoundX, FoundY, 1, 641, 354, 1025, *100 Talk.png if ErrorLevel = 0 { SoundPlay, bye.wav Sleep 20...
by Batsmaru0410
04 Apr 2020, 02:58
Forum: Ask For Help
Topic: Pause a timer loop without pausing the whole script
Replies: 1
Views: 191

Pause a timer loop without pausing the whole script

I have assigned a key to a perform a timer loop, that cycles through my Notepad, explorer and Powerpoint windows every 4 seconds. I hit the assigned toggle key again to pause. But the problem is that I have to wait for the function "Hit 4" to terminate before it completely stops. Is there a way to p...
by Batsmaru0410
10 Feb 2019, 02:09
Forum: Ask For Help
Topic: Retaining the original function of hotkey
Replies: 1
Views: 397

Retaining the original function of hotkey

Hi, I have set my Right, Left, Down, Up arrow keys as hotkey, but I also want to retain their original function. I have searched the forum to and found to add "~" if front of hotkey. So I add ~ infront of Right, Left, Up, Down, but it doesn't work. Below is my code #IfWinActive, WindowA Right:: Left...
by Batsmaru0410
02 Feb 2019, 09:14
Forum: Ask For Help
Topic: Inserting commands with a hotkey while settimer loop is ongoin
Replies: 1
Views: 371

Inserting commands with a hotkey while settimer loop is ongoin

I have created a hotkey (Delete) to initiate/stop a loop of pressing spacebar and right arrow alternatively and indefinitely. I have also created another hotkey (Insert) to do certain things that I want to do. When I hit hotkey (Insert) while the loop is ongoing, the commands under that hotkey does ...
by Batsmaru0410
21 Jan 2019, 13:18
Forum: Ask For Help
Topic: Need help detecting a key pressed while in loop
Replies: 6
Views: 829

Re: Need help detecting a key pressed while in loop

Thanks hellbent. But where should I put IfWinActive in the code, in the loop? or before the loop
by Batsmaru0410
21 Jan 2019, 10:19
Forum: Ask For Help
Topic: Need help detecting a key pressed while in loop
Replies: 6
Views: 829

Re: Need help detecting a key pressed while in loop

Thank you evilC. Thanks for the help and suggestion. However, is there other way to do this without binding the arrow keys as hotkeys, since I have other window running at same time, and those arrow keys needs to be used as it is while not effecting the Poet/Warrior windows. Thank you.
by Batsmaru0410
21 Jan 2019, 05:55
Forum: Ask For Help
Topic: Need help detecting a key pressed while in loop
Replies: 6
Views: 829

Need help detecting a key pressed while in loop

I am playing a game where I have to hit spacebar and direction arrow alternatively and repeatedly. Because of my limited coding experience, I was only able to create a code that hit space bar and ONE direction only (either Right, Left, Up or Down by changing it in the code). I am looking for an some...
by Batsmaru0410
20 Jan 2019, 05:01
Forum: Ask For Help
Topic: Detecting key pressed and change variable in loop
Replies: 3
Views: 818

Re: Detecting key pressed and change variable in loop

Thank you Rohwedder for helping. I tried your code and it works. However, since I have to use arrow key in other windows, binding the arrow keys will effect those keys in my other window. Is there another method that you don't have to bind the window keys, but detect them when pressed. Thank you. I ...
by Batsmaru0410
19 Jan 2019, 12:43
Forum: Ask For Help
Topic: Detecting key pressed and change variable in loop
Replies: 3
Views: 818

Detecting key pressed and change variable in loop

Hi, below the loop I have now. It presses {Space} and arrow key {Right} alternatively. I am looking for a way to modify the code slightly, so that it detects the arrow key I press while in the loop, and implement that arrow key I just pressed inside the loop without affecting {Space}. So when is goi...

Go to advanced search