Code: Select all
Gui, Add, ComboBox, x100 y275 w80 vAtacar4 , sempre_atacar|atacar_3|atacar_4|iguinorar|dar_use|usarHK
Code: Select all
Gui, Add, ComboBox, x100 y275 w80 vAtacar4 , sempre_atacar|atacar_3|atacar_4|iguinorar|dar_use|usarHK
bittencourt318 wrote: ↑09 Mar 2022, 10:48I'm having a problem with my codgo keeps saying that there is no label! but it exists i've checked several times without succeeding can someone help mecould someone help me solve this bugCode: Select all
bug script.png
I sent the old photo then I changed everything to this q isRussF wrote: ↑09 Mar 2022, 10:54Try:Without the surrounding %'s.Code: Select all
Gosub, atacara
Russ
Code: Select all
Gosub, Atacar4
let's say q ue the codgo has several lines so this error always happens on the last line I useboiler wrote: ↑09 Mar 2022, 11:06It looks like you have a variable name associated with the ComboBox named Atacar4, so Gosub, %Atacar4% would make sense, but you would have to have retrieved the selection from a combo box. Assuming you did that and that you have subroutines named sempre_atacar, atacar_3, atacar_4, iguinorar, dar_use, and usarHK, then it should work. So did you do something to retrieve the selected string? You should have a GuiControlGet statement in your code somewhere.
I found out what happened did not stop at the last I used but in the next because there was no hotkey selected would have a way to leave a hotkey preselected in thebittencourt318 wrote: ↑09 Mar 2022, 11:18let's say q ue the codgo has several lines so this error always happens on the last line I useboiler wrote: ↑09 Mar 2022, 11:06It looks like you have a variable name associated with the ComboBox named Atacar4, so Gosub, %Atacar4% would make sense, but you would have to have retrieved the selection from a combo box. Assuming you did that and that you have subroutines named sempre_atacar, atacar_3, atacar_4, iguinorar, dar_use, and usarHK, then it should work. So did you do something to retrieve the selected string? You should have a GuiControlGet statement in your code somewhere.
Code: Select all
Gui, Add, ComboBox, x100 y75 w80 vAtacar , usarHK|sempre_atacar|atacar_3|atacar_4|iguinorar|dar_use
I managed to solve the problem was not in that part but in the next step that was blank then I changed the final value and solved thank you very much