That is placed in my Hack.h
The part of ComboBox: (Just 2 of 8)
Code:
private: System::Void comboBox4_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) { //GLOWKEY
System::String^ CLRString = (String^)(comboBox4->SelectedItem);
msclr::interop::marshal_context context;
std::string STDString = context.marshal_as<std::string>(CLRString);
for (int i = 0; i < sizeof(PossibleKeyText) / sizeof(PossibleKeyText[0]); i++)
{
if (PossibleKeyText[i] == STDString)
glowKey = PossibleKeyDWORD[i];
}
}
private: System::Void comboBox5_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) { //TEAMGLOWKEY
System::String^ CLRString = (String^)(comboBox5->SelectedItem);
msclr::interop::marshal_context context1;
std::string STDString = context1.marshal_as<std::string>(CLRString);
for (int i = 0; i < sizeof(PossibleKeyText) / sizeof(PossibleKeyText[0]); i++)
{
if (PossibleKeyText[i] == STDString)
teamGlowKey = PossibleKeyDWORD[i];
}
}
Timer_Tick1:
Code:
private: System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) {
if (GetAsyncKeyState(glowKey) & 0x8000) { //GLOW
while (GetAsyncKeyState(glowKey) & 0x8000) {
Sleep(1);
}
glowToggle = !glowToggle;
if (glowToggle) {
checkBox3->Checked = true;
}
else {
checkBox3->Checked = false;
}
}
if (GetAsyncKeyState(teamGlowKey) & 0x8000) { //TEAMGLOW
while (GetAsyncKeyState(teamGlowKey) & 0x8000) {
Sleep(1);
}
teamesp = !teamesp;
if (teamesp) {
checkBox4->Checked = true;
}
else {
checkBox4->Checked = false;
}
}
}
I already tried alot of things, but only the 1 ComboBox sets the hotkey working, i tried changing the second (teamGlowKey) on timer_tick to 32 (spacebar) and it works, but when i use the teamGlowKey set by the ComboBox it don't work, and with that i got confuded...
Since i used WasserEsser (i think i wrote wrong) method of comboBox, i think he can help me
PS: Var names are horrible because i re-wrote in a new project really fast :/
Thx
