-
Posts
399 -
Joined
-
Last visited
Reputation Activity
-
rootx reacted to Gianni in $STDIO_INHERIT_PARENT [HELP]
... so RunWait doesn't seem right for your purpose
why not use "run" instead, so you can read the streams of your "core.exe" program and continue with the next file when the execution of a "run" is finished ....
something like this ... (obviously not tested)
For $i = 0 To UBound($ArrSource) - 1 $run = Run($core & ' -m="' & $modules & '" -i="' & $ArrSource[$i] & '" -p="' & $Preset & '" -x="' & $configxml & '" -o="' & $output & '"', @ScriptDir, @SW_HIDE, $STDIO_INHERIT_PARENT) While ProcessExists($run) ConsoleWrite(StdoutRead($run)) WEnd Next
-
rootx reacted to Danp2 in $STDOUT_CHILD cause System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
Try adding the following at the top of your script --
#AutoIt3Wrapper_UseX64=y If that doesn't work, then I suggest that you provide a way for us to replicate the issue.
-
rootx got a reaction from MarkIT in Time to change! gmaps api has stopped working. WebDriver UDF info
Hi friends, for a long time I've been using my own script to use gmaps inside an Autoit window, I used it to take gps coordinates dynamically at mouse click on the map and then use them in another program of mine.
I would like to know a few things before I start writing code.
With this WebDriver UDF can I manage the browser inside an Autoit window and open gmaps inside it?
Can I read the values of js variables that I generate when clicking on the map (lat,long)?
This is what I used to do before the end of IE support from Gmaps.
THX
-
rootx got a reaction from MarkIT in Time to change! gmaps api has stopped working. WebDriver UDF info
I am honored by udf author's reply!
A question but does webview2 use the Edge engine? I thought it was possible to have iframe embed from chrome without going through there. Could you please explain more if possible.
From here WebView2 cefau3.bin.x86.zip
-
-
rootx got a reaction from TheDcoder in [SOLVED] Extract .png inside a .bin file
Thanks for the tip, I found my solution, FileSetPos and then loop the entire file.
-
rootx reacted to TheDcoder in [SOLVED] Extract .png inside a .bin file
@rootx You have to go through each byte and compare the values with known values. Remember that a byte is just nothing but an 8 digit binary number
My apologies for the lack of an example, I am a bit busy at the moment. Hopefully someone will take out the time to show you
-
rootx reacted to TheSaint in [SOLVED] StdoutRead Help please
@error only really works for the command immediately preceding it, so the following isn't going to work well.
$_StderrRead = StderrRead ( $job ) If @error Then ExitLoop If Not @error And $_StderrRead <> '' Then How it should be written is as follows.
$_StderrRead = StderrRead ( $job ) If @error Then ExitLoop ElseIf $_StderrRead <> '' Then If it is an error then by definition it isn't NOT an error, so will exit the loop and never get to that statement.
Haven't run your code, so not sure if that alone fixes things.
-
rootx reacted to jchd in Use RegExp on binary data
Please stop asserting that because it isn't true!
Also you're confusing two distinct things: character set and encoding.
EDIT:
Also your links to regexes for validating UTF8 doesn't correctly apply to AutoIt, since we use UCS2 and not full UTF16. The high and low-surrogate codepoints are hence valid by themselves in UCS2, but not in UTF16. The correct validation should match WTF-8, not UF-8.
-
rootx got a reaction from Nina in Is it possible to automate SAP without having access to SAPGUI Scripting
SAPgui, read two files saplogon.ini / SAPUILlandscape.xml...... try to understand first what you need and where to find it, then ask
-
rootx got a reaction from faustf in Sqlite and global-messages-db.sqlite thunderbird
??? Remove $iRval = and use _SQLite_Display2DResult($aRows) to view output in console.
_SQLite_GetTable2d($hDB, "select c0body,c1subject,c2attachmentNames,c3author,c4recipients from messagesText_content where c1subject = 'Test' AND c3author = 'test@gmail.com';", $aRows, $iRows, $iCols) _SQLite_Display2DResult($aRows) Anyway, you can see my solution here
PS: verify my query, because it is not complete, you only have to intercept new emails, otherwise you have duplicates.
CIAO
-
rootx got a reaction from faustf in [SOLVED] Help Thunderbird approach
Here my script
_SQLite_Startup() Local $hDB = _SQLite_Open(@ScriptDir & "\global-messages-db.sqlite") Local $aRows, $iRows, $iCols _SQLite_GetTable2d($hDB, "select c0body,c1subject,c2attachmentNames,c3author,c4recipients from messagesText_content where c1subject = 'Test' AND c3author = 'test@gmail.com';", $aRows, $iRows, $iCols) ;_ArrayDisplay($aRows) For $x = 1 To 1 ;UBound($aRows) - 1 ;ConsoleWrite($aRows[$x][0]&"-"&$aRows[$x][1]&"-"&$aRows[$x][2]&$aRows[$x][3]&"-"&$aRows[$x][4]&"-"&@CRLF) $file = @ScriptDir & "\" & $x & ".txt" FileOpen($file, 2) FileWrite($file, $aRows[$x][0]) FileClose($file) If FileExists($file) Then Run(@ScriptDir & '\SumatraPDF.exe -print-to-default ' & $file) Sleep(4000) WinWaitActive('[CLASS:#32770]') ControlSend('', '', '', $x) ControlSend('', '', '', '{ENTER}') WinClose("[CLASS:32770]") Else ConsoleWrite("error file not created " & $file & @CRLF) EndIf Next _SQLite_Close($hDB) _SQLite_Shutdown() Bye Bye
-
rootx reacted to faustf in [SOLVED] Help Thunderbird approach
now i dont have in this pc thunderbird and sqlite dll ,i will test tomorrow
for print you cant also print
https://www.autoitscript.com/autoit3/docs/libfunctions/_FilePrint.htm
this is a coommand for transform in pdf by sumatra
"%ProgramFiles(x86)%\SumatraPDF\SumatraPDF.exe" -print-to-default "Full Path and Name of a PDF file" echo Exit code of SumatraPDF is: %ERRORLEVEL% pause
-
rootx reacted to faustf in [SOLVED] Help Thunderbird approach
i think thunderbird use sqlite , you can find sqlite db attach with autoit and extrapolate what you want
-
rootx reacted to iamtheky in [SOLVED] Regex expert Help!!
$str = "CD1894EF" msgbox(0, '' , stringregexpreplace($str , "(.)(.)" , "$2$1")) ;DC8149FE
-
rootx got a reaction from davidacrozier in Using VMware to access network shared files
If WMware setting is ok.... try to clean and restart the service with CMD command
net use \\yourrespath /d sc stop Server && sc start Server Paid attention on WmWare setting Devices staus and the rest choice Bridge Nat etc....
-
rootx reacted to JLogan3o13 in StringSplit returns empty aray
@rootx
So, you create an array with StringSplit, then cycle through that array to create a second array, then display the second array (which is exactly the same as the $Members array originally returned). Rube Goldberg much?
-
rootx reacted to jchd in Tsv to Csv question about performance
You can increase default cache size for a given session by using a pragma (see "PRAGMA schema.cache_size = pages;") and DB page size is defined at DB creation or changeable after that (see PRAGMA schema.page_size = bytes;").
Select a DB page size which works well for your use case and a cache size reasonnably wide enough. Don't waste too much time trying to fine-tune this until much later).
You may also benefit from the json support built in SQLite, in case your API yields json.
The reference site for documentation and more is of course http://www.sqlite.org/
-
rootx reacted to jchd in Tsv to Csv question about performance
The largest SQLite DB I've had to do work with was greater than 120 Tb years ago and was hit 24/7 by hundreds of users. OK, it ran on fine tuned not-so-special hardware server (yet with loads of RAM) with very fined-tuned SQLite code, and I do mean very, very optimized code. But the competitive "solution" by Oracle was 25 times more expensive with inferior results.
Remember that your GPS is most probably using a GIS system sit on an SQLite DB. Realize how many polygons of all kinds such a DB must hold to represent your country roads, plus all extra information.
In your simple use case (5M rows is a baby DB), all you have to do is carefully plan your DB layout according to your actual needs and think twice about the queries you'll find most useful next year. You may want to create an FTS5 virtual table to lookup partial titles or words from titles for instance, support Unicode search for foreign characters, a.s.o. Deduce from SQLite "EXPLAIN QUERY PLAN ..." which index will help your actual queries, but don't rely on what you believe will help.
I recommend you use a good SQLite DB manager (e.g. SQLite Expert) to start playing with a simple design and adjust it to satisfy your needs. Don't rush coding anything in AutoIt first, do this last.
If you need guidance for a skeleton setup, just ask.
-
rootx reacted to jchd in Tsv to Csv question about performance
That's a peculiar need indeed.
Then previous codes won't work as expected. This shoud work and still run fast:
Local $hTimer = TimerInit() Local $nFile = @ScriptDir & "\new.csv" FileDelete($nFile) Local $sText = FileRead(@ScriptDir & "\data.tsv") $sText = StringReplace($sText, "\N", "", 0, $STR_NOCASESENSEBASIC) FileWrite($nFile, StringReplace($sText, @TAB, ",", 0, $STR_NOCASESENSEBASIC)) Local $fDiff = TimerDiff($hTimer) MsgBox("Finito","Time: ",_Convert($fDiff)) Func _Convert($ms) Local $day, $hour, $min, $sec _TicksToTime($ms, $hour, $min, $sec) If $hour > 24 Then $day = $hour/24 $hour = Mod($hour, 24) EndIf Return StringFormat("DAY:%02i,HOUR:%02i,MIN:%02i,SEC:%02i", $day, $hour, $min, $sec) EndFunc
-
rootx reacted to jchd in Tsv to Csv question about performance
Would this work for you, provided you're positive that input file exists?
Local $nFile = @ScriptDir & "\new.csv" FileDelete($nFile) FileWrite($nFile, StringRegExpReplace(FileRead(@ScriptDir & "\data.tsv"), "\t", ","))
-
rootx got a reaction from Earthshine in Compare two windows 10 installation Help [SOLVED]
THX JLogan3o13, I found a very simple method to compare two systems configurations, msinfo32.exe than I used winmerge to save a patch file and notepad++ to extract only the diff from the Right SO, in my case was one service and a realtek drivers version!!!
-
rootx reacted to JLogan3o13 in Compare two windows 10 installation Help [SOLVED]
The forum search is your friend:
Here I suggest away to enumerate everything but updates; you could easily swap that out.
PsaltyDS shows how to enumerate all PnP signed drivers, but again you could easily modify to your needs.
-
rootx got a reaction from Earthshine in Keep duplicates from array
I'm sorry I have read to fast!!! Your solution..
#include<array.au3> Local $aArray[10] = [1,1,2,3,3,3,3,4,5,5] for $i = ubound($aArray) - 1 to 0 step -1 $aFound = _ArrayFindAll($aArray , $aArray[$i]) $i -= ubound($aFound) - 1 If ubound($aFound) > 1 Then ConsoleWrite("This Value "&$aArray[$aFound[0]] & " Is duplicate N Times " & ubound($aFound)&@CRLF) EndIf next
-
rootx got a reaction from Skysnake in Keep duplicates from array
I'm sorry I have read to fast!!! Your solution..
#include<array.au3> Local $aArray[10] = [1,1,2,3,3,3,3,4,5,5] for $i = ubound($aArray) - 1 to 0 step -1 $aFound = _ArrayFindAll($aArray , $aArray[$i]) $i -= ubound($aFound) - 1 If ubound($aFound) > 1 Then ConsoleWrite("This Value "&$aArray[$aFound[0]] & " Is duplicate N Times " & ubound($aFound)&@CRLF) EndIf next