
lupusbalo
Active Members-
Posts
45 -
Joined
-
Last visited
Everything posted by lupusbalo
-
MsgBox do not pause script any more
lupusbalo replied to lupusbalo's topic in AutoIt General Help and Support
Previously I ran a "portable" version of AutoIt So I download and Install last version (& associated Scite) run the following program MsgBox(0,"MsgBox1","First MsgBox") MsgBox(1,"MsgBox2","Second MsgBox") MsgBox(2,"MsgBox3","Third MsgBox") MsgBox(3,"MsgBox4","Fourth MsgBox") Result is: MsgBox 1 display for 2 second, no other msgBox display ... ans the script ends!! So this is not an AutoIt problem .... and it may have a link with the error I'm by the way tracking LupusBalo (can't remember how to close a topic in title) -
MsgBox do not pause script any more
lupusbalo replied to lupusbalo's topic in AutoIt General Help and Support
I tested some "old" scripts with folowing results: - no problem with compiled scripts - same problem when running from the Editor (Scite)!!! so I'll first check the AutoIt Install Lupusbalo -
MsgBox do not pause script any more
lupusbalo replied to lupusbalo's topic in AutoIt General Help and Support
So obvious .... I'm stupid Here it is #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=C:\&& fixed File on C (icons etc- - )\VBxCommun.ico #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <Array.au3> #include <File.au3> AutoItSetOption("MustDeclareVars",1) AutoItSetOption("WinTitleMatchMode",2) ; Global $jlbFile = " Global $rvccFile= "E:\§INSTALLs\§INSTALL 7\analyse et pilote newPC\XXXXXX\XXXXXXX.txt" Global $rvccData , $jlbData Const $NUM_1=1, $NAME_2=2, $VERSION_3=3, $TIME_4=4,$DESCR_5= 5, $COMPANY_6=6, $PATH_7=7, $TYPE64_8=8 _FileReadToArray($rvccFile, $rvccData, $FRTA_COUNT, @TAB) MsgBox($IDOK + $IDCANCEL,"vreturn", @error, 10) _ArrayDisplay($rvccData, "RVCC Data", Default,8) The file to be read is saved from DLL view in "Process explorer" I'm just starting this script, but UDF _FileReadToArray certainely returns an error and the MsgBox is supposed to help find what error I made Incidently: I did find the error in _FileReadTOArray so this is not my question which relates solely with MsgBox/_ArrayDisplay not pausing Purpose of the script will be to compare (on 2 W10 PCs) DLL used by a prog which freeze on one of them and runs perfectly on the other (Hardware are the same - except HDD capacity) one W10 is Family the other Pro -
I wrote AutoIt programs for (too!!) many years! I just update to W10 then install a new machine. Want to write a script and found that whatever flag values MsgBox won't pause the script ( just display for 2 ~ 3 seconds) The same occurs with _ArrayDisplay Thanks for Any Clue
-
In fact there was also .... a question in my post: "which part of the question is unclear" :D JohnOne already answered, and I found it on MSDN THXS anyway Lupusbalo
-
from an "old" user of AutoIt I know that "AutoIt lacks a rename function" (as said in the help file) I always wonder the reason behind and didn't found anything on the forum (may have been answered already in old forum platform ) what about a DOS rename command?? (also not found in forums) it keeps me awake for several nights please HELP
-
regarding space in folder names - they are created by the installer itself!!! in program files(x86) but even in C:\: resulting in forder "C:\ISN AutoIt Studio" (with the 2 spaces) and with the same error (tested) - when "manually" installed in "C:\ISNAutoItStudio"..... (no spaces)... it works perfectly - as well as in the AutoIt3 folder which is its "standard" location - I guess - where it works too So it solves my problem for now (may be not yours !!), but it's still very surprising that this error does not occurs under XP thanks for your help
- 995 replies
-
- isn autoit studio
- isn
-
(and 3 more)
Tagged with:
-
hello ISI360, thks for your quick answer here is the debug log, .... hope it'll be useful? I'll try from a diff location & let you know what happens ... to be continued ( ) ISN AutoIt Studio - Debug ---------------------------------- OS: WIN_7 Service Pack 1 (X64) RAM: 12286.49 MB Studio version: 0.88 BETA 20.08.2012 (20120820) Executable path: C:Program Files (x86)AutoIt3ISN AutoIt StudioAutoit_Studio.exe (PID 6212) Run on monitor: 1 (Detected: 2) Run from drive: C: |-> compressed: No Working dir: C:Program Files (x86)AutoIt3ISN AutoIt Studio Script dir: C:Program Files (x86)AutoIt3ISN AutoIt Studio Project dir: C:Program Files (x86)AutoIt3ISN AutoIt StudioProjects Templates dir: C:Program Files (x86)AutoIt3ISN AutoIt StudioTemplates Release dir: Release Backup dir: Backups Skins dir: C:Program Files (x86)AutoIt3ISN AutoIt StudioDataSkins Current Skin: #none# Cache dir: C:Program Files (x86)AutoIt3ISN AutoIt StudioDataCache Loaded Plugins: 2 Loaded filetypes: jpg,jpeg,bmp,ico,dll,wav,wave,mp3,ogg,avi,mpeg,mpg,divx,wmv,isf, (15) Run mode: Compiled version User is admin: Yes Autoit3.exe: OK Aut2exe.exe: OK AutoIt3Help.exe: OK Languagefile: english.lng WinAPI version: 6.1
- 995 replies
-
- isn autoit studio
- isn
-
(and 3 more)
Tagged with:
-
another WOW!!! great piece of software but a problem as follow : when under runnning W7 Ultimate x64 I can't open forms (msg says "cannot open plugin")under XP the plugin & everything works perfectly!! (2 different machines in VirtualBox and XPMode)I tried uninstal/reinstall, and disable/enable the plugin with same resultrunning admin does not change anything any clue?
- 995 replies
-
- isn autoit studio
- isn
-
(and 3 more)
Tagged with:
-
progress bar window can't be moved
lupusbalo replied to lupusbalo's topic in AutoIt General Help and Support
duno why I can't see this blod£%3@# (heu sorry! ) 3rd parameter Thanks a lot Lupusbalo -
I made a small script as a front/end for ffmpeg allowing multiple conversion of AVCHD Videos Everything works OK including a progress bar (% of MB processed), except that it's window don't move around.(1) (annoying when conversion lasts tens of minutes even hours) initialization of the progress bar occurs as ProgressOn("Conversion MTS => MPEG", "Fichier ",500,10,18)with the option 18 = 16 (Window can be moved) + 2 (Without "always on top" attribute) as stated in the help file tested with "production" version 3.3.0.0 and beta version 3.3.1.1 and same result under XP SP2 I dont see where i'm wrong nothing found in the forum Lupusbalo 1- (No other GUI used just some "FileOpenDialog" to choose relevant files)
-
????????????? somebody answered just above your last post !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
removeble device remove & apply
lupusbalo replied to zvikush's topic in AutoIt General Help and Support
to "unmount your drive" and be sure that there is no pending IO, u can use "sync" from sysinternals (it flushes all pending IOs) make a run from your script I dont know how to actualy "Unmount" the device, an idea could be some "clicks" on the system tray on the "remove device sucurely" system function I see no way for "mounting" lupus -
Internet Explorer Automation UDF library
lupusbalo replied to DaleHohm's topic in AutoIt Example Scripts
I've just have a need for some IE automation (Modem management thru IE actualy) IE.au3 is all what I'd like to see. and it's there, (just a clic far from a quick search!!!) That's really A GEAT, GREAT JOB!! thanks & Congratulations, Dale. Lupusbalo -
create listview items from a file
lupusbalo replied to lupusbalo's topic in AutoIt GUI Help and Support
YES!!!! I knew it was probably something stupid like that. reading re-reading & re-re-re.....I finally found it!! You sjust beat me "on the line" I went to ""clear"" my stupid post when i see your "quick & brilliant" answer THX anyway This Forum is definitely well-visited Lupusbalo -
I'am writing my first complex GUI application, and most of the coding and testing goes well, except for one specific window In this one I have a Listview which I want to populate with data coming from a file. Each "line" of the file is an "item" of the list, formated like "valuecol1 | valuecol2 | etc..." I used _FileReadToArray() UDF and the resulting array displays well using _ArrayDisplay() I tried many different codings but My GUICtrlCreateListViewItem(...) desperately produce an ERROR IN Expression So starting from the "ControlCreateListViewItem()" example in the help file, I put my own code in This gives the same bad result!!!!! I should be wrong somewhere obviously but can't understand where!!! here is the update exemple ; ##### original code comes from help file (GuiCtrlCreateListViewItem example) #include <GUIConstants.au3> #include <file.au3> ; ## added to original example to make additional code work #include <array.au3> ; ## added to original example to make additional code work GUICreate("listview items",220,250, 100,200,-1,$WS_EX_ACCEPTFILES) GUISetBkColor (0x00E0FFFF) ; will change background color $listview = GuiCtrlCreateListView ("col1 |col2|col3 ",10,10,200,150,$LVS_SORTDESCENDING) $button = GuiCtrlCreateButton ("Value?",75,170,70,20) $item1=GuiCtrlCreateListViewItem("item2|col22|col23",$listview) $item2=GuiCtrlCreateListViewItem("............item1|col12|col13",$listview) $item3=GuiCtrlCreateListViewItem("item3|col32|col33",$listview) $input1=GuiCtrlCreateInput("",20,200, 150) GuiCtrlSetState(-1,$GUI_DROPACCEPTED) ; to allow drag and dropping GuiSetState() GUICtrlSetData($item2,"|ITEM1") GUICtrlSetData($item3,"||COL33") GUICtrlDelete($item1) ;######### HERE starts my own code ###### Local $MyFile="E:\ClubInfo\## Technique\Outils controle\CIVSM Gestion New\exemple filelistviewitem.txt" #cs HERE is the File as viewed with Scite: Mr|Nom_1|prénom_1 Mme|Nom_2|prénom_2 Mr|Nom_3|prénom_3 Mr|Nom_4|prénom_4 Mr|Nom_5|prénom_5 #ce Dim $MyData[150] _FileReadToArray($MyFile,$MyData) ; Import My Data from My File (works fine _ArrayDisplay($MyData,"My Data") ; displays correctly For $i=1 to $MyData[0] GuiCtrlCreateListViewItem($MyData($i),$listview) [b]; Here i get an ERROR IN Exp[b][/b]ression[/b] Next ; ###### HERE Ends my own code ###### GUISetState(@SW_SHOW) Do $msg = GuiGetMsg () Select Case $msg = $button MsgBox(0,"listview item",GUICtrlRead(GUICtrlRead($listview)),2) Case $msg = $listview MsgBox(0,"listview", "clicked="& GuiCtrlGetState($listview),2) EndSelect Until $msg = $GUI_EVENT_CLOSE HELP!! LupusBalo
-
you can find it there: http://www.autoitscript.com/autoit3/scite/ i know that people here, had been arguing around "THE BEST EDITOR" and i 'll not restate this debate let me just say that it's really good, it support a lot of languages, is highly customisable and so on.... They are also many others which are good too (UltraEdit .... ) without forgetting Notepad (.......a bit less powerfull one)
-
just make it half as good as Scite and i may test it! now seriously if it's just to practice and learn AutoIt, it could be a good exercise. i already myself made some scripts that have been written hundreds (if not thousands) times just for learning so go ahead if it's .NET that's another story
-
Detecting Windows Shutdown/Logoff
lupusbalo replied to Steph's topic in AutoIt General Help and Support
Just an idea: "do it the other way " Instead of using the "windows shutdown" use your own script: e.g. you will then use this "My Shutdown" in My Shutdown (or whatever it is), - you can do you own stuff first (end other scripts or programs, save files , Kill other windows, Close other processes etc... ) - then use "Shutdown" builtin AutoIt function to actually close the system (or restart or ....) Anyway, there will still be a pending problem - i also have - and which i couldn't find a way thru: AutoIt "ProcessClose" actally KILL the process, which is not fair if it should do some housekeeping before Closing/Exiting. No problem if there is a window associated, but sometimes there's no (or i couldn't find it) or you cannot "Exit" from this window but only from "system tray menu" (that's the case for firewall, resident backup sofware etc...). I found no easy way, yet , to activate "system tray menus" from a script. EDIT> to be more specific, up to now ifound no way to "send" a "Clean Close" message to programs such as ZoneAlarm, NeroBackItUp, Hotsync, K9... <EDIT -
run on W98SE: Works but - tested yesterday's original version, surprisingly VERY sloooooowwwwww :"> (2 minutes for an image)!!! - did some monitoring and found that, we got severe problem with short file names , i suppose it has something to do with FAT32, W98SE handling of shorts names when homonyms, and possibly other stuff?? - changed original names for shortened ones, don't need to be strictly 8.3 but make sure 8.3 names are not all homonyms) see code below (just changed timestamp format) $r= int(TimerInit()/1000) $p=StringLeft("000000",8-stringlen(string($r)))&string($r) DllCall("captdll.......\SC" & $p & ".jpg",....) - also changed Sleep() to my _DeepSleep to save a litle bit of CPU (useful mainly if snapshots are taken at a several SEC interval) and it works fine!! THX to Lazycat (and you BasicOS ) EDIT> correct a mistake (sorry about that!!) <EDIT i'll go to new version
-
doesn't work for me nothing happens!! (running 3.1.0.9 on W98)
-
misplaced (deleted) see bug reports
-
not a "common day to day" need, but just for fun: , test merge on big files: start logfile> 2005-02-15 00:05:16 : for key:AAADIUSKAU records processed: 12 2005-02-15 00:05:16 : for key:AAAFUMZOGSQJFZ records processed: 26 .................... rest of logfile 2005-02-15 00:39:04 : for key:ZZZNYLUSFDUNZ records processed: 29 2005-02-15 00:39:04 : for key:ZZZOBGOEUOIWVAK records processed: 4 2005-02-15 00:39:04 : for key:ZZZORBMJCONR records processed: 22 2005-02-15 00:39:04 : for key:ZZZSBUSKP records processed: 3 2005-02-15 00:39:05 : C:\Mes documents\Auto_IT scripts\TMP1-2.txt: 149 999 records processed (*) 2005-02-15 00:39:15 : C:\Mes documents\Auto_IT scripts\TMP1-4.txt: 2 249 048 records processed (*) 2005-02-15 00:39:15 : merge duration: 2028 SEC. (*) <End Logfile (*) "real file", only some editing (red, bold, 000's) to improve clarity 2,4 Millions records ~34MIN who says AutoIt is Slow??
-
merge_stuff.zip@ter-pierre EDIT> I didn't see your last post before "sending" mine! 1- congratulations 2- the following may help you anyway?? 3- i forgot the beer!! (should be many!!!!) 4- discard the immediate folowing line, as you seem to actually understand something about programing, i'm sorry <EDIT it would be rather difficult, if you don't know anything about programing :"> so, it should be unusual but i'll provide the solution. the final script to merge, a script to generate test files, final result and associated logfile. files were 5000 and 75000 records respectively (approximately YOUR figures) the final merge runs in a bit more than a minute on a P4 2,6Gh!!!! far from your 40 hours actually file generation is 4 times longer, because of a lot "random" calls (could have been made better but.......that's it for now !!) EDIT> I used file processing (vs arrays) because it can be used in case of HUGE files (10 exp 6 or more records) where array processing will probably lack of memory (algorythm are identical - need only change how to get data) <EDIT attached - test files generation script - extract of test file file1 (out of 5000 records) - extract of test file file2 (out of 75000 records) - merge script - extract of resulting file - extract of the logfile
-
OK so the algorythm is fine file1 (or array) should be your TMP1-2 file2 (or array) should be your TMP1-4 let me explain a litle bit more why your algo is so loooooooooooooong in your algorythm for each record (1 then 2 then ...... ) in TMP1-2, you read 1 then 2 then 3 .......... then 59998 then 59999 then 60000 records in fileTMP1-4 just to skip to the right record which means at the End of the day roughly 1800 MILLIONS READ/ARRAY ACCES EDIT> which is JUST the sum of the known SERIE: of first 60000 integers: SIGMA(i, i=1 to 60000) <EDIT you probably understand why it could be long!!!!!!!!!!!!! the algo i gave you reads only once, each record of file2