After creating my first basic script with alot of help from AHK forums and many youtube tutorials, I've seem to have broken something once again.
my AlwaysOnTop doesn't work anymore, I just dealt with it for the time being. But now that I'm working on a custom GUI it's starting to aggravate me.
I'm not asking for the code to be fixed for me, just point me in the right direction.... Or call me stupid then gimme the answer
apologizes if it seems messy.
Code: Select all
Gui, -Caption +Border +AlwaysOnTop
Gui, color, 000000, 000000
Gui, Font, cWhite
Gui, Add, Text, x12 y9 w100 h20 , Message
Gui, Add, Text, x142 y9 w100 h20 , Seconds
Gui, Add, Edit, x12 y29 w100 h30 vLine1, pls
Gui, Add, Edit, x12 y69 w100 h30 vLine2, pls
Gui, Add, Edit, x12 y109 w100 h30 vLine3, pls
Gui, Add, Edit, x12 y149 w100 h30 vLine4, pls
Gui, Add, Edit, x12 y189 w100 h30 vLine5, pls
Gui, Add, Edit, x12 y229 w100 h30 vLine6, pls
Gui, Add, Edit, x12 y269 w100 h30 vLine7, pls
Gui, Add, Edit, x142 y29 w100 h30 vTime1, 5
Gui, Add, Edit, x142 y69 w100 h30 vTime2, 5
Gui, Add, Edit, x142 y149 w100 h30 vTime3, 5
Gui, Add, Edit, x142 y109 w100 h30 vTime4, 5
Gui, Add, Edit, x142 y189 w100 h30 vTime5, 5
Gui, Add, Edit, x142 y229 w100 h30 vTime6, 10
Gui, Add, Edit, x142 y269 w100 h30 vTime7, 10
Gui, Add, Button, x12 y329 w100 h30 , Tabs Loops
Gui, Add, Button, x12 y369 w100 h30 , Singal Loop
Gui, Add, Button, x12 y409 w100 h30 , Pet
Gui, Add, Button, x142 y329 w100 h30 , Stop
Gui, Add, Button, x142 y369 w100 h30 , Help
Gui, Add, Button, x142 y409 w100 h30 , Bump
Gui, Show, x500 y100 h450 w258, AutoSend
return
ButtonTabsLoop:
Gui, Submit
Loop
{
;------------------------------------------------------------------Loop Tabs
send ^{Tab}
Sleep, 3000
Send, %Line1%{ENTER}
Sleep, %Time1%000
Send, %Line2%{ENTER}
Sleep, %Time2%000
Send, %Line3%{ENTER}
Sleep, %Time3%000
Send, %Line4%{ENTER}
Sleep, %Time4%000
Send, %Line5%{ENTER}
Sleep, %Time5%000
Send, %Line6%{ENTER}
Sleep, %Time6%000
Send, %Line7%{ENTER}
Sleep, %Time7%000
;Send, %Line6%{ENTER}
;Sleep, %Time6%000
}
return
ButtonStop:
ExitApp
return
;-----------------------------------Normal loop
ButtonSingalLoop:
Gui, Submit
Loop
{
Sleep, 3000
Send, %Line1%{ENTER}
Sleep, %Time1%000
Send, %Line2%{ENTER}
Sleep, %Time2%000
Send, %Line3%{ENTER}
Sleep, %Time3%000
Send, %Line4%{ENTER}
Sleep, %Time4%000
Send, %Line5%{ENTER}
Sleep, %Time5%000
Send, %Line6%{ENTER}
Sleep, %Time6%000
Send, %Line7%{ENTER}
Sleep, %Time7%000
;Send, %Line6%{ENTER}
;Sleep, %Time6%000
}
return
ButtonBump:
Gui, Submit
Sleep, 3000
Send, {ShiftDown}1{ShiftUp}d{Space}bump{ENTER}
return
ButtonPet:
Gui, Submit
Sleep, 3000
Send, pls{Space}withdraw{space}400{ENTER}
Sleep, 5000
Send, pls{Space}pet{space}feed{ENTER}
Sleep, 5000
Send, pls{Space}pet{space}feed{ENTER}
Sleep, 5000
Send, pls{Space}pet{space}feed{ENTER}
Sleep, 5000
Send, pls{Space}pet{space}feed{ENTER}
Sleep, 5000
Send, pls{Space}pet{space}play{ENTER}
Sleep, 5000
Send, pls{Space}pet{space}play{ENTER}
Sleep, 5000
Send, pls{Space}pet{space}play{ENTER}
Sleep, 5000
Send, pls{Space}pet{space}play{ENTER}
Sleep, 5000
Send, pls{Space}pet{space}wash{ENTER}
Sleep, 5000
Send, pls{Space}pet{space}wash{ENTER}
Sleep, 5000
Send, pls{Space}pet{space}wash{ENTER}
Sleep, 5000
Send, pls{Space}pet{space}wash{ENTER}
Sleep, 5000
Send, pls{Space}deposit{space}all{ENTER}
Sleep, 5000
;Send, %Line6%{ENTER}
;Sleep, %Time6%000
return
ButtonHelp:
Gui +OwnDialogs
SoundPlay, C:\Users\DuStiN\Desktop\x71-v3\clubbed.mp3
OnMessage(0x44, "OnMsgBox")
MsgBox 0x40000, Help, help message will go here
OnMessage(0x44, "")
OnMsgBox() {
DetectHiddenWindows, On
Process, Exist
If (WinExist("ahk_class #32770 ahk_pid " . ErrorLevel)) {
ControlSetText Button1, Close
WinMove 900, 175
}
}
return
Esc::Exitapp
return
F7::
Pause, Toggle
return
GuiClose:
exitapp
return