I've made my button and labelled it ect but the guide I was following didn't show how to toggle holding the shift key down when the button is clicked and I'm really confused as to how labels and functions are used to do this
All I want is when I click the button, it holds shift until I click the button again
Cheers
Complete Noob - GUI button to toggle shift
Re: Complete Noob - GUI button to toggle shift
Code: Select all
toggled = 0
Gui, Add, Button, gLabel, Toggle
Gui, Show, w150 h100
return
Label:
if (toggled = 0){
toggled = 1
Send, {LShift down}
}
else if (toggled = 1){
toggled = 0
Send, {LShift up}
}
return
Hi
Who is online
Users browsing this forum: No registered users and 48 guests