Conflict with keybinding IG

Ask gaming related questions (AHK v1.1 and older)
Lilou
Posts: 2
Joined: 26 Jun 2017, 02:39

Conflict with keybinding IG

26 Jun 2017, 02:57

Hi,

First of all excuse my english, I'm French...

So here's my problem. I found a script for a game and I started to edit him. I try few things and succeed what i want.

But with this problem i'm blocked.

I have a Settings.ini with "Suspend" but i want to add somethin like "SuspendWEchap" and "SuspendWTab" set to 1 if its activated or 0 if its not.

So I'm able to create those variable and read them with the .ini but my problem is that i dont know how to use them with a condition like


(isEchap & isTab are my variable from the Settings.ini 1 or 0.)

Code: Select all

#ifwinactive game.exe
{
If (isTab = 1)
{
~Tab::
suspend,permit
ToggleSuspend()
suspend
return
}
if (isEchap = 1)
{
~Esc::
suspend,permit
ToggleSuspend()
suspend
return
}
}
I try many way like

Code: Select all

~Tab:: If (isEchap = 1)
{
suspend,permit
ToggleSuspend()
suspend
}
return
So i did another thing after that :

Code: Select all

Hotkey, %isEsc%, isEsc1

...

isEsc1:
suspend,permit
ToggleSuspend()
suspend
return
with an "if" somewhere I dont remember where, I dont have my code with me. and it works, i can enable disable the script with esc and tab, but the problem is that in game, these Key are for the inventory and the option.

And i want them to disable/enable the script because the script play with the mouse so if he's activated the navigation in the inventory/options is complicated.

But now when I use tab and esc in game it doesnt work anymore they only disable/enable the script :/

Is there another way to catch the key, with a condition and to keep them in game.

Thanks and again sorry for my english xD..
Lilou
Posts: 2
Joined: 26 Jun 2017, 02:39

Re: Conflict with keybinding IG

26 Jun 2017, 05:07

I change my code. Now i have 2 variable who need a hotkey.

If its empty do nothin, else disable.enable the script.

but again, i cant use it in game. I mean, i can disable/enable the script but the game dont open the inventory who have the same hotkey..

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 92 guests