Jump to content

tagada

Members
  • Posts

    15
  • Joined

  • Last visited

About tagada

  • Birthday 08/11/1981

Profile Information

  • Location
    france

tagada's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hello ! I would like to know if InetGetSize has limits... Because this test code works well with files smallest than 10Mo (roughly) The first one : ~5.4Mo (function works) The seconde : ~23.3Mo (function returns 0) CODEMsgBox (0, "TEST" , InetGetSize("http://cdrom.wip.digitalriver.com/pub/bws/bws_49/spf.msi")) MsgBox (0, "TEST" , InetGetSize("http://ardownload.adobe.com/pub/adobe/reader/win/8.x/8.1/fra/AdbeRdr810_fr_FR.exe")) There is this remark in the help file : So i did some test with my ftp... It's works with small files only too... Thank you
  2. I seem to understand. i did not know the UBound() function. thank you for your code I would not found this by myself. :">
  3. hi you can use _IECreate this, is in the help file : Before, you may test if internet connexion exist with #include <IE.au3> $testconnexion = InetGetSize("http://www.autoitscript.com/autoit3/files/beta/update.dat") ;this url comes from help file too if $testconnexion == 0 then MsgBox(4096, "Result", "No connexion") else _IECreate ("www.yahoo.com", 1, 1, 0) endifoÝ÷ Ù.q©í¯+aËh¡«­¢+Ø(¥¹±Õ±Ðí%¹ÔÌÐì((ÀÌØíÕɰôÅÕ½ÐíÝÝܹ塽¼¹½´ÅÕ½Ðì((ÀÌØíÙÈôA¥¹ ÀÌØíÕɰ°ÈÔÀ¤)¥ÉɽÈôôÄQ¡¸(%5ͽà À°ÅÕ½ÐíMÑÑÕÌÅÕ½Ðì°ÅÕ½Ðí!½ÍХ̽±¥¹ÅÕ½Ðì¤)±Í%ÉɽÈôôÈQ¡¸(%5ͽà À°ÅÕ½ÐíMÑÑÕÌÅÕ½Ðì°ÅÕ½Ðí!½ÍÐ¥Ìչɡ±ÅÕ½Ðì¤)±Í%ÉɽÈôôÌQ¡¸(%5ͽà À°ÅÕ½ÐíMÑÑÕÌÅÕ½Ðì°ÅÕ½Ðí ÍÑ¥¹Ñ¥½¸ÅÕ½Ðì¤)±Í%ÉɽÈôôÐQ¡¸(%5ͽà À°ÅÕ½ÐíMÑÑÕÌÅÕ½Ðì°ÅÕ½Ðí=Ñ¡ÈÉɽÉ̸¸¸ÅÕ½Ðì¤)±Í(}% ÉÑ ÀÌØíÕɰ°Ä°Ä°À¤)¹%
  4. Hi, I try to create X arrays ($array1, $array2, $array3... $arrayX) where X must be defined by users. So it may be any number. Before starting write the final script i did some tests. After many tests, i don't understand why the first code works and the second... does not... #include <Array.au3> for $n = 1 to 3 Assign ("var" & $n, _ArrayCreate("a" & $n, "b" & $n, "c" & $n, "d" & $n , "e" & $n), 2) _ArrayDisplay( Eval("var" & $n), "test" & $n) next ExitoÝ÷ Ù«­¢+Ø¥¹±Õ±ÐíÉÉä¹ÔÌÐì()½ÈÀÌØí¸ôÄѼÌ()ÍÍ¥¸ ÅÕ½ÐíÙÈÅÕ½ÐìµÀìÀÌØí¸°}ÉÉå ÉÑ ÅÕ½ÐíÅÕ½ÐìµÀìÀÌØí¸°ÅÕ½ÐíÅÕ½ÐìµÀìÀÌØí¸°ÅÕ½ÐíÅÕ½ÐìµÀìÀÌØí¸°ÅÕ½ÐíÅÕ½ÐìµÀìÀÌØí¸°ÅÕ½ÐíÅÕ½ÐìµÀìÀÌØí¸¤°È¤)}ÉÉå¥ÍÁ±ä Ù° ÅÕ½ÐíÙÈÅÕ½ÐìµÀìÀÌØí¸¤°ÅÕ½ÐíÑÍÐÅÕ½ÐìµÀìÀÌØí¸¤()}ÉÉå Ù° ÅÕ½ÐíÙÈÅÕ½ÐìµÀìÀÌØí¸¤°ÅÕ½ÐíÅÕ½Ðì¤)}ÉÉå¥ÍÁ±ä Ù° ÅÕ½ÐíÙÈÅÕ½ÐìµÀìÀÌØí¸¤°ÅÕ½ÐíÑÍÐÅÕ½ÐìµÀìÀÌØí¸¤()}ÉÉå%¹ÍÉÐ Ù° ÅÕ½ÐíÙÈÅÕ½ÐìµÀìÀÌØí¸¤°È°ÅÕ½ÐíUÁÑÅÕ½Ðì¤)}ÉÉå¥ÍÁ±ä Ù° ÅÕ½ÐíÙÈÅÕ½ÐìµÀìÀÌØí¸¤°ÅÕ½ÐíÑÍÐÅÕ½ÐìµÀìÀÌØí¸¤()¹áÐ()á¥Ð Is it possible to create $array1, array2, ... without using Assign() ? Thank you for helping. TaGaDa
  5. As promised : the result ! It works well ! I'll be able to continue now. Thank you again and again. I thought about that... it's my new challenge now ! I hope i'll succeed Bye all TaGaDa.
  6. Ho ! Ok. I read the help file, but i am not sure to understand very well the differences between Global & Local Yeah it works as i want ! I'll try in my code later, now i have to leave. I'll report the result. Thank you again. Have a nice day.
  7. up nobody has solution ...?
  8. hi ! i don't know if it's a problem (i've the same) you can launch "Compile Script to .exe" from start menu. i don't think that admin rigths are important.
  9. indeed it works ! My part of code too... but, after if you try this $ini = 'file.ini' $nbfiles = 5 For $n = 1 To $nbfiles import() Next For $n = 1 To $nbfiles test() Next Func import() $var = IniReadSection($ini, $n) For $i = 1 To $var[0][0] Switch $var[$i][0] Case "dir" Assign("dir" & $n, $var[$i][1]) Case "file" Assign("file" & $n, $var[$i][1]) Case "name" Assign("name" & $n, $var[$i][1]) Case "process" Assign("process" & $n, $var[$i][1]) Case "run" Assign("run" & $n, $var[$i][1]) EndSwitch Next MsgBox(4096, "IMPORT", _ "dir : " & Eval("dir" & $n) _ & " file : " & Eval("file" & $n) _ & " name: " & Eval("name" & $n) _ & " process : " & Eval("process" & $n) _ & " run : " & Eval("run" & $n)) EndFunc ;==>import Func test() MsgBox(4096, "IMPORT", _ "dir : " & Eval("dir" & $n) _ & " file : " & Eval("file" & $n) _ & " name: " & Eval("name" & $n) _ & " process : " & Eval("process" & $n) _ & " run : " & Eval("run" & $n)) EndFunc As you can see the test function shows that variable are empty : msg : "dir : file : name: process : run : " I do not understand why... Have you an idea ?
  10. i tried your solution, but there is no change. my variables are still empty... thank you nevertheless.
  11. Hi ! First excuse me for my english :"> I've some problems with the assign function. I want import data from sections of my ini file (5 lines by sections : dir, file, name, process, run). This part of code returns good values in the message box. But if i want to use my variables created by the import function after the importation, variables are empty... (for exemple try to display the message box again after "next") CODEFor $n = 1 to $nbfiles import() next Func import() $var = IniReadSection($ini, $n) For $i = 1 To $var[0][0] If $var[$i][0] == "dir" Then Assign("dir" & $n, $var[$i][1]) ElseIf $var[$i][0] == "file" Then Assign("file" & $n, $var[$i][1]) ElseIf $var[$i][0] == "name" Then Assign("name" & $n, $var[$i][1]) ElseIf $var[$i][0] == "process" Then Assign("process" & $n, $var[$i][1]) ElseIf $var[$i][0] == "run" Then Assign("run" & $n, $var[$i][1]) EndIf Next MsgBox (4096, "IMPORT", "dir : " & Eval("dir" & $n) & " file : " & Eval("file" & $n) & " name: " & Eval("name" & $n) & " process : " & Eval("process" & $n) & " run : " & Eval("run" & $n)) EndFunc The aim is to create dir1, dir2... file1, file2... etc and use them in another function. thank you for helping. TaGaDa
×
×
  • Create New...