kool but dude its sending function 1...well here is the whole code
Code:
Run C:\ETAS\ETKControlPanel6.4\ETKControlPanel.exe -n
WinWaitActive INCA/MAC
CoordMode,Mouse,Relative
MouseClick,left,395,106
sleep 1000
Loop, read, C:\Documents and Settings\jakhangu\Desktop\test.ini
{
if a_loopreadline contains =
{
ind++
StringSplit, buttonname, a_loopreadline, =
button%ind% := buttonname1
function%ind% := buttonname2
Gui, Add, Button,gbuttonname w200 h50, %buttonname1%
}
}
gui show
Return
buttonname:
ControlGetFocus, buttonnum
ControlGetText, buttontext, %buttonnum%
loop, % ind
{
if (button%a_index% = buttontext)
WinMinimize New AutoHotkey
sleep 500
send !{L}
sleep 500
send function%a_index% ; as this command should send the text of .ini file that is D:\ETASData\ETKControlPanel6.4\ETKS4_1\ETC\ProductionTest_ETKS4_1_TU6_2.etc into filename textbox but instead of that it sends function1....in your program it was run sorry but i want to send that text
}
return
and here is the ini file
Code:
[Production]
ETKS4_1=D:\ETASData\ETKControlPanel6.4\ETKS4_1\ETC\ProductionTest_ETKS4_1_TU6_2.etc
ETKS4_2=D:\ETASData\ETKControlPanel6.4\ETKS4_2\ETC\ProductionTest_ETKS4_2_TU6_3.etc
but when i executes it sends function1
i am sorry bro i know i am getting on your nerves sorry for all