0AF0: 0@ = get_int_from_ini_file "cleo\config.ini" section "Activation" key "KEY"
[Activation]
KEY=49
if 0AB0: key_pressed 0@
then activate_script
end
:watchout:springfield link said:Code:0AF0: 0@ = get_int_from_ini_file "cleo\config.ini" section "Activation" key "KEY"
0@ = virtual key code, to be used with 0AB0.
.ini file should look like this,
Code:[Activation] KEY=49
0AF0 will read 49 from the 'config.ini' file and store it to a variable(0@ or any other), then use a simple condition check
Code:if 0AB0: key_pressed 0@ then activate_script end
Thanks springfield, but if i want two key?springfield link said:Code:0AF0: 0@ = get_int_from_ini_file "cleo\config.ini" section "Activation" key "KEY"
0@ = virtual key code, to be used with 0AB0.
.ini file should look like this,
Code:[Activation] KEY=49
0AF0 will read 49 from the 'config.ini' file and store it to a variable(0@ or any other), then use a simple condition check
Code:if 0AB0: key_pressed 0@ then activate_script end
Thanks springfield, but if i want two key?Hidend link said:[quote author=springfield link=topic=7491.msg42501#msg42501 date=1401350430]
Code:0AF0: 0@ = get_int_from_ini_file "cleo\config.ini" section "Activation" key "KEY"
0@ = virtual key code, to be used with 0AB0.
.ini file should look like this,
Code:[Activation] KEY=49
0AF0 will read 49 from the 'config.ini' file and store it to a variable(0@ or any other), then use a simple condition check
Code:if 0AB0: key_pressed 0@ then activate_script end
0AF0: 0@ = get_int_from_ini_file "cleo\config.ini" section "Activation" key "KEY1"
0AF0: 1@ = get_int_from_ini_file "cleo\config.ini" section "Activation" key "KEY2"
[Activation]
KEY1=49
KEY2=50
if and
0AB0: key_pressed 0@
0AB0: key_pressed 1@
then activate_script
end