Whenever i click on one of my gui buttons it opens all my other ones to so when i click one button it runs all three. Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Voica
Posts: 2
Joined: 21 Jul 2020, 19:20

Whenever i click on one of my gui buttons it opens all my other ones to so when i click one button it runs all three.

21 Jul 2020, 19:26

Code: Select all

;gui________________________________

gui, font, cRed
gui, add, text, x10 y10,_________________________GUI___________________________

gui,add,button,x150 y350 w200 h50 gAimbotButton, Krunker Aimbot [Working]

gui,add,button,x150 y250 w200 h50 gSlideHop, Krunker Slide Hop [Under Development]

gui,add,button,x150 y150 w200 h50 gMegaHoop, Krunker BHop [Working]

gui,+AlwaysOnTop
gui,color,Black
gui,show,x0 y0 w500 h500, Krunker.io GUI
Return

AimbotButton:
Run KrunkerAimbotGui.ahk

MegaHoop:
run Bhop.ahk

SlideHop:
Run SlideHop.ahk

^x::ExitApp
Last edited by BoBo on 21 Jul 2020, 23:48, edited 2 times in total.
Reason: Added [code][/code]-tags. Moved to Gaming section.
TravisQ
Posts: 27
Joined: 17 May 2015, 23:51

Re: Whenever i click on one of my gui buttons it opens all my other ones to so when i click one button it runs all three

21 Jul 2020, 20:31

your goto labels need returns to stop the code from "falling through, or you could also use a function in this case

Code: Select all

;gui________________________________
gui,+AlwaysOnTop
gui,color,Black
gui, add, text,w480 cRed +center
	,_________________________GUI___________________________

gui,add,button,x150 y350 w200 h50 gAimbotButton
	, Krunker Aimbot [Working]

gui,add,button,x150 y250 w200 h50 gSlideHop
	, Krunker Slide Hop [Under Development]

gui,add,button,x150 y150 w200 h50 gMegaHoop
	, Krunker BHop [Working]

gui,show,x0 y0 w500 h500, Krunker.io GUI
Return

AimbotButton:
Run KrunkerAimbotGui.ahk
return

MegaHoop:
	run Bhop.ahk
return

SlideHop(){
	run SlideHop.ahk
}

^x::ExitApp
Voica
Posts: 2
Joined: 21 Jul 2020, 19:20

Thanks so much!  Topic is solved

21 Jul 2020, 21:48

I did manage to figure it out before you responded but thank you anyway as this is the first script i have ever written and i know next to none of the language so thank you for committing you time to this.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: ReyAHK and 63 guests