I'll attach my code .... But I've never been motivated to really understand the coding for AHK so please go gentle on the criticism (please!)
Hmmm well I can't maybe I don't have enough posts.
Here is the top portion of the code! When the variable Title contains the appropriate text in it see previous posts on how I know it has the value. It won't enter the appropriate if statement.
Code: Select all
^!s::Suspend
^!PgDn::Suspend
$F1::
$F2::
$F3::
$F4::
$F5::
$F6::
$F7::
$F8::
$F9::
$F10::
$F11::
$F12::
DetectHiddenText, on
SetTitleMatchMode 2
SetTitleMatchMode, slow
WinGetActiveTitle, Title
WinGetClass, class, A
MsgBox, The active window's class is "%class%".
FleetsOut := 10
KeyType := "Evt"
KeyType := "Testing"
KeyType := "SpamAttack"
KeyType := "Reg"
FltRes := "68,280,060 --> 204,850 BaseXP ----> 1xp for each 333.3 res"
If Title = Adobe Flash Player
{
while GetKeyState("F1", "P") {
Return
}
while GetKeyState("F2", "P") {
}
while GetKeyState("F3", "P") {
Return
}
while GetKeyState("F4", "P") {
Return
}
while GetKeyState("F5", "P") {
Return
}
while GetKeyState("F6", "P") {
Return
}
while GetKeyState("F7", "P") {
Return
}
while GetKeyState("F8", "P") {
Return
}
while GetKeyState("F9", "P") {
Return
}
while GetKeyState("F10", "P") {
Return
}
while GetKeyState("F11", "P") {
Return
}
while GetKeyState("F12", "P") {
Reload
Sleep 1000 ; If successful, the reload will close this instance during the Sleep, so the line below will never be reached.
MsgBox, 4,, The script could not be reloaded. Would you like to open it for editing?
IfMsgBox, Yes, Edit
return
}
return
}
ELSE If Title = KIXEYE.com - Google Chrome
{