Hi
I need a script for one weapon:
[Automatic] QQ - 1ms - right click and repeat till suspend key pressed
Thanks
Script/Macro
-
- Posts: 9
- Joined: 11 Jun 2017, 10:59
Re: Script/Macro
Does this code work for you?
Hope this helps.
Code: Select all
+LButton:: ; Shift + LMB to start.
Looping := 1
While Looping
{
SEND, qq
SLEEP 1 ; Wait 1 ms (I reccommand 40, this is the time I use most of the time to simulate a human action. This is the least time I take to press a button.)
SEND, {RButton} ; Simulate the Right mouse button click.
}
Return
!LButton:: ; Alt + LMB to stop.
Looping := 0
Return
Re: Script/Macro
Also this code I made for someone else asking for the same combo. Are you playing the same game?
Advantage of this code is the use of just one hotkey.
Advantage of this code is the use of just one hotkey.
Code: Select all
#MaxThreadsPerHotkey 2 ; Makes pressing capslock while the loop is running possible/effective.
Capslock::
If Comboing ; Executed on second Capslock press.
{
Comboing := 0 ; The loop should stop now.
Return
}
Comboing := 1
While Comboing ; Start the loop.
{
SEND, qq
SLEEP 1
SEND, {RButton}
}
Return
#MaxThreadsPerHotkey 1
-
- Posts: 9
- Joined: 11 Jun 2017, 10:59
Re: Script/Macro
Yes this is for the same game, thank you so much!!
But can be added one thing? I mean when i press Capslock before all the work is doing script presses "3" and when the suspend key pressed it presses "1"?
But can be added one thing? I mean when i press Capslock before all the work is doing script presses "3" and when the suspend key pressed it presses "1"?
Re: Script/Macro
So when you start the loop with Capslock you want to simulate the 3 button. And when the loop stops, after pressing Capslock again, Send a 1 keystroke.
If I understood well, this should do the trick.
If I understood well, this should do the trick.
Code: Select all
#MaxThreadsPerHotkey 2 ; Makes pressing capslock while the loop is running possible/effective.
Capslock::
If Comboing ; Executed on second Capslock press.
{
Comboing := 0 ; The loop should stop now.
Return
}
Comboing := 1
SEND, 3
While Comboing ; Start the loop.
{
SEND, qq
SLEEP 1
SEND, {RButton}
}
SEND, 1
Return
#MaxThreadsPerHotkey 1
-
- Posts: 9
- Joined: 11 Jun 2017, 10:59
Re: Script/Macro
I can stop this script
Capslock isnt working
Capslock isnt working
Re: Script/Macro
Does it work with another hotkey. Like \:: instead of Capslock::.
Doesn't it work in the game? Have you tested it in notepad or something similar?
On my pc I get "3qq" and then a lot of context menu's from the Right mouse presses.
Doesn't it work in the game? Have you tested it in notepad or something similar?
On my pc I get "3qq" and then a lot of context menu's from the Right mouse presses.
-
- Posts: 9
- Joined: 11 Jun 2017, 10:59
Re: Script/Macro
None of hotkeys is working
It doesn't work in notepad, in game
It doesn't work in notepad, in game
-
- Posts: 9
- Joined: 11 Jun 2017, 10:59
Re: Script/Macro
Capslock- looped - QQ 650ms/RButton 650ms
Re: Script/Macro
So the script is running and working only verry verry slow?
-
- Posts: 9
- Joined: 11 Jun 2017, 10:59
Re: Script/Macro
I need perfect timing to do a combo
This weapon is called storm giant warhammer, you can see on youtube how it works
This weapon is called storm giant warhammer, you can see on youtube how it works
Re: Script/Macro
If the script is working in chat but not working in the game itself there is verry less I can do.
This script works sycinificant slower but still fast. Maybe the game can keep up with this better.
Have fun with further coding.
This script works sycinificant slower but still fast. Maybe the game can keep up with this better.
Code: Select all
SendMode, Input
HumanDelay := 40
#MaxThreadsPerHotkey 2 ; Makes pressing capslock while the loop is running possible/effective.
Capslock::
If Comboing ; Executed on second Capslock press.
{
Comboing := 0 ; The loop should stop now.
Return
}
Comboing := 1
SEND, {3 Down}
SLEEP, HumanDelay
SEND, {3 Up}
SLEEP, HumanDelay
While Comboing ; Start the loop.
{
SEND, {q Down}
SLEEP, HumanDelay
SEND, {q Up}
SLEEP, HumanDelay
SEND, {q Down}
SLEEP, HumanDelay
SEND, {q Up}
SLEEP, HumanDelay
SEND, {RButton Down}
SLEEP, HumanDelay
SEND, {RButton Up}
SLEEP, HumanDelay
}
SEND, {1 Down}
SLEEP, HumanDelay
SEND, {1 Up}
Return
#MaxThreadsPerHotkey 1
-
- Posts: 9
- Joined: 11 Jun 2017, 10:59
Re: Script/Macro
QQ too fast and Rbutton too slow :/
-
- Posts: 9
- Joined: 11 Jun 2017, 10:59
Re: Script/Macro
Maybe you can add RButton to this
Q::Send, QQ
Q::Send, QQ
Re: Script/Macro
That means the code is working? Only the speed must be adjusted? You can replace the "HumanDelay" words with any value in milliseconds. HumanDelay is now set to 40ms. You want it to go faster? Decrease it to 20 for example. Want it to go slower, increase it to 80 etc. This is most of the time a trial and error process.QQ too fast and Rbutton too slow
Your code with the RButton:Q::Send, QQ
Code: Select all
Q::Send, QQ{RButton}
-
- Posts: 9
- Joined: 11 Jun 2017, 10:59
Re: Script/Macro
How can i add sleep in Q::Send, QQ{RButton}?
Re: Script/Macro
Not in a controlled way. With "SetKeyDelay" the standard duration van be changed. But if you want to have differen delays between echt key you will need to type a SLEEP command after each SEND command. The SendInput mode does not read SetKeyDelay.
All manualy adjustible:
Code: Select all
Q::
SetKeyDelay, 50, 20 ; Sets the delay to 50ms and the pressd duration to 20ms.
Send, QQ{RButton}
Return
Code: Select all
q::
SEND, q
SLEEP, 50
SEND, q
SLEEP, 50
SEND, {RButton}
Return
Who is online
Users browsing this forum: No registered users and 49 guests