Hello!
I have this script:
dim $a = 2/3
msgbox (0, 'Current value',$a)
When i'm trying to run it as script (through autoit3.exe), im getting MS VC++ error 6002:
Floating point error not loaded.
But if i will compile it with auto2exe.exe into value.exe, it gives me right message box (with value 0.66666667)
Also, i'm having trouble with next part of the script:
$t=ControlGetText("Active","","[CLASS:Edit; INSTANCE:4]")
if $t="" Then
Exit
EndIf
$p=StringSplit($t,"/")
$p[1] +=1
if $p[1]=13 Then
$p[1]=1
$p[2]+=1
EndIf
$t=$p[1]&"/"&$p[2]
First 5 lines works perfectly ($t always gets right text from form, and its format: mm/yyyy);
With some msgbox's help i found that this error (Floating point support) pop-ups on the next line:
$p[1] +=1
And again, if i'll compile this file with auto2exe.exe (into shiftperiod.exe) it'll work fine without any errors.
my questions are:
1) how to make both this scripts work as.. well, scripts (with loading from cli of autoit3.exe).
2) I have to work with some dynamically generated scripts, so right now to work it out i have to generate scripts, compile them with auto2exe.exe /in <> /out <>, and run this compiled files.
It's like building airport in the place of telephone booth..