need help with script for hypxiel skyblock

Ask gaming related questions (AHK v1.1 and older)
LasagnenFighter
Posts: 9
Joined: 27 Nov 2021, 19:37

need help with script for hypxiel skyblock

Post by LasagnenFighter » 28 Nov 2021, 11:20

hey, i need help with a script for hypixel skyblock.

It needs to constantly press left button, then press d for 33,5 seconds, then press a for 33.5 seconds and press enter and write these things /is , then enter, entwr again and write/skyblock

It would be really nice if anyone could help me
(idk if this is the right category)

User avatar
mikeyww
Posts: 26589
Joined: 09 Sep 2014, 18:38

Re: need help with script for hypxiel skyblock

Post by mikeyww » 28 Nov 2021, 13:22

I think this is not codable because you have not specified when to stop pressing LButton. It is at some point before "... then ...", but unclear when.

LasagnenFighter
Posts: 9
Joined: 27 Nov 2021, 19:37

Re: need help with script for hypxiel skyblock

Post by LasagnenFighter » 28 Nov 2021, 13:44

it can stop press lbutton when it types /is and /sethome

User avatar
mikeyww
Posts: 26589
Joined: 09 Sep 2014, 18:38

Re: need help with script for hypxiel skyblock

Post by mikeyww » 28 Nov 2021, 13:56

Is "constantly press" a repeated press, or a hold?


LasagnenFighter
Posts: 9
Joined: 27 Nov 2021, 19:37

Re: need help with script for hypxiel skyblock

Post by LasagnenFighter » 28 Nov 2021, 14:16

and i have another question, can i somehow do it that i can go to another window and it still send input to the other window?

User avatar
mikeyww
Posts: 26589
Joined: 09 Sep 2014, 18:38

Re: need help with script for hypxiel skyblock

Post by mikeyww » 28 Nov 2021, 15:36

You can test this in Notepad.

Code: Select all

winTitle = ahk_exe notepad.exe
#If WinExist(winTitle)
F3::
ControlClick,, %winTitle%,,,, D
Loop, Parse, % "da"
{ ControlSend,, {%A_LoopField% down}, %winTitle%
  Sleep, 33500
  ControlSend,, {%A_LoopField% up}, %winTitle%
}
ControlClick,, %winTitle%,,,, U
ControlSend,, `n/is`n`n/skyblock, %winTitle%
Return
#If
I believe that ControlClick will activate your target window.

If you are typing at the same time that AHK is sending text, the actions can collide.
Last edited by mikeyww on 28 Nov 2021, 15:45, edited 1 time in total.

LasagnenFighter
Posts: 9
Joined: 27 Nov 2021, 19:37

Re: need help with script for hypxiel skyblock

Post by LasagnenFighter » 28 Nov 2021, 15:45

tysm, and can i somehow do it that i can go to another window and it still send input to the other window? (Oops, you just edited it)
Last edited by LasagnenFighter on 28 Nov 2021, 15:46, edited 1 time in total.

LasagnenFighter
Posts: 9
Joined: 27 Nov 2021, 19:37

Re: need help with script for hypxiel skyblock

Post by LasagnenFighter » 28 Nov 2021, 15:46

oh you just edited it

User avatar
mikeyww
Posts: 26589
Joined: 09 Sep 2014, 18:38

Re: need help with script for hypxiel skyblock

Post by mikeyww » 28 Nov 2021, 15:47

Test the script while you have Notepad open. You can have a different window active at the time.

I'm not sure that you can successfully send a "down" key action via ControlSend and then also type in other windows. I believe not, but you can test it.

LasagnenFighter
Posts: 9
Joined: 27 Nov 2021, 19:37

Re: need help with script for hypxiel skyblock

Post by LasagnenFighter » 28 Nov 2021, 15:52

i dont know why, but i cant start it

User avatar
mikeyww
Posts: 26589
Joined: 09 Sep 2014, 18:38

Re: need help with script for hypxiel skyblock

Post by mikeyww » 28 Nov 2021, 16:03

Run the script. Confirm that the green AHK icon resides in the system tray. Open Notepad. Press F3. You won't see anything happen for quite a while, because when you hold your mouse button and then send a key, it will not be visible, right?

Post Reply

Return to “Gaming Help (v1)”