CLEO Help Cleo help...

CLEO related
Status
Not open for further replies.

Hidend

Expert
Joined
Mar 4, 2013
Messages
625
Reaction score
39
I want to know how to do a .ini and someone can change key from the .ini, anyone can tell me how to do? Thanks... :D
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
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
 

vincetan789

Well-known member
Joined
Apr 4, 2014
Messages
212
Reaction score
1
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
:watchout:
 

Hidend

Expert
Joined
Mar 4, 2013
Messages
625
Reaction score
39
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?
 

zaki19

Well-known member
Joined
Feb 27, 2013
Messages
393
Reaction score
0
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
Thanks springfield, but if i want two key?
[/quote]




Code:
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"

0@ = virtual key code, to be used with 0AB0.
.ini file should look like this,
Code:
[Activation]
KEY1=49
KEY2=50


Code:
if and 
0AB0: key_pressed 0@
0AB0: key_pressed 1@
then activate_script
end
 
Status
Not open for further replies.
Top