-
Posts
1,944 -
Joined
-
Last visited
-
Days Won
4
Everything posted by bogQ
-
#include "M:\cyrillic path\main.au3" - can't include
bogQ replied to avmaksimov's topic in AutoIt General Help and Support
-
WebDriver UDF and OFFLINE (WAMP) localhost Issue
bogQ replied to JugglingCoder's topic in AutoIt General Help and Support
Did you try automating with webdriver some other browser to check if its not headless browser related problem? -
WebDriver UDF and OFFLINE (WAMP) localhost Issue
bogQ replied to JugglingCoder's topic in AutoIt General Help and Support
MsgBox( $MB_TOPMOST, "Error Creating Session: ", & @error) MsgBox( $MB_TOPMOST, "Error Creating Session: ", ^ ERROR :_) MsgBox( $MB_TOPMOST, "Error Creating Session: ", @error) But that part Is WAMP page accessible in that moment if you manually type http://localhost/ in normal browser? -
WebDriver UDF and OFFLINE (WAMP) localhost Issue
bogQ replied to JugglingCoder's topic in AutoIt General Help and Support
Mostly true if he turned off wireless or plugged off lan cable, but (OP was not specific) if no local network connection wamp should still work for 127.0.0.1, for host pc (localhost) and not for others. If on local network but no internet wamp should work for any device (if wamp was setup correctly) that is accessing local network hosted server on eg. 192.168.something.something . So 127.0.0.1 should be always localhost for wamp or for driver (Listening on 127.0.0.1:4444) and i don't see how something can fail on it self (if error is not that wamp server on local network ip do not exsist for example). So did driver fail to listen on 127.0.0.1:4444? Or did ip address where your server is hosted do not exist? -
Your using _IETableWriteToArray that is using .innerText and as far as i understand from your question you need to use .innerHtml. So what you can do is create your own function and use similar code from original function changing that one thing if that is what you need. As for more things you can do something like this #include <IE.au3> #include <Array.au3> Local $oIE = _IECreate() Local $sHTML = "<h1>test</h1>" $sHTML &= "<table>" $sHTML &= "<tr><th>Company</th><th>Contact</th><th>Country</th><th>Country</th><th>Country</th></tr>" $sHTML &= "<tr><td>Centro comercial Moctezuma</td><td>Francisco Chang</td><td>Mexico</td></tr>" $sHTML &= "<tr><td>Centro comercial Moctezuma</td><td>Francisco Chang</td><td>Mexico</td></tr>" $sHTML &= "<tr><td>Centro comercial Moctezuma</td><td>Francisco Chang</td><td>Mexico</td></tr>" $sHTML &= "<tr><td>Maria Anders</td><td>Maria Anders</td><td>XXXX</td><td>Maria Anders</td><td><a href='#'>test123</a></td></tr>" $sHTML &= "<tr><td>Maria Anders</td><td>Maria Anders</td><td>Centro comercial Moctezuma</td><td>Francisco Chang</td><td>Mexico</td></tr>" $sHTML &= "</table>" _IEBodyWriteHTML($oIE, $sHTML) $oTable = _IETableGetCollection($oIE, 0) $aTableData = _IETableWriteToArray($oTable, True) Local $row = _ArraySearch($aTableData, "XXXX", Default, Default, Default, Default, Default, Default, False) If @error Then MsgBox(0, 'error 1', @error) Local $col = _ArraySearch($aTableData, "XXXX", Default, Default, Default, Default, Default, Default, True) If @error Then MsgBox(0, 'error 2', @error) ConsoleWrite('row: ' & $row & '; col: ' & $col & " | " & $aTableData[$row][$col] & @CRLF) For $x = 0 To UBound($aTableData, 2) - 1 ConsoleWrite($aTableData[$row][$x] & @CRLF) Next _ArrayDisplay($aTableData, "Found")
-
So what did you try on your own or where is your code that is failing?
-
Tutorial AutoIT - PHP -MySQL.v2.0 - (Moved)
bogQ replied to abarba's topic in AutoIt General Help and Support
I do get that php and AutoIt do look alike to some extent like $ to start variables, some similar function names and their way for usage, but this code do look like Laravel like way of handling queries with mysql queries. $db->where ('id', 50, ">="); And still i am @ a miss about where is single piece of AutoIt code is and everyone else here. So you should report this to https://github.com/ThingEngineer/PHP-MySQLi-Database-Class/issues and let them know if you think something in code is wrong. -
How to get or read a single data in SQLite database?
bogQ replied to HezzelQuartz's topic in AutoIt General Help and Support
Engine not having last row identifier only thing you can do is something similar to that what you already done Additional ways: "WHERE rowid = (SELECT rowid FROM your_table ORDER BY rowid ESC LIMIT 1);" or "WHERE rowid IN (... );" But i do think your way is the fastest and most easy to read _SQLite_Display2DResult Returns or prints to Console a formated display of a 2Dimensional array Display result to console (scite console for example) if $bReturn is properly set, so it will not popup window, if changed from default it will return data to your variable Not tested it at the moment but to manage data you probably need to do something like this $data = _SQLite_Display2DResult($aResult, 0, true) -
How to get or read a single data in SQLite database?
bogQ replied to HezzelQuartz's topic in AutoIt General Help and Support
you can not do "insert where", "update where something=something AND somethingelse=somethingelse" will do the update, insert do not have that because your inserting and as SQLite does not guarantees order it does not matter where its inserted and, so "insert where" is impossible. + that will be illogical But you can allwayes remove before reinserting something if that is what you wish DELETE FROM x WHERE id = 1; INSERT INTO x VALUES (1, 'something', 'something', ...); -
How to get or read a single data in SQLite database?
bogQ replied to HezzelQuartz's topic in AutoIt General Help and Support
What if there is no column "no" in the table? Then i do not think you can determine latest input from what i see. The fist column ("no" in your case) is identifier ('unique id') that is auto increasing if after adding next record to table. While you can have sum of inputs, and if there is more than one with identical requested in returned data from query, you can not determine witch of returned records is last inserted and you can not determine whom to remove if no ID is present. I dont think order in DB is guaranteed but i can be wrong. SQL does not guarantee it from what i can read as for mysql -
You do call WinActivate... and that function do make focus on window Does ControlClick works on that window only if you have focus? So question is will something like this work in your case with no WinActivate ? While 1 $hwnd = WinWait("Timeout Warning") If $hwnd Then ControlClick($hwnd , "", "[NAME:m_buttonStillWorking]") EndIf Sleep(25000) WEnd
-
Ty @rsn for nudging me in correct direction https://newbedev.com/can-t-change-tel-protocol-handler-in-windows-10 did it Edit: something like this writeReg("HKEY_CURRENT_USER\SOFTWARE\Classes\callto", "", "URL:callto") writeReg("HKEY_CURRENT_USER\SOFTWARE\Classes\callto", "URL Protocol", "") writeReg("HKEY_CURRENT_USER\SOFTWARE\Classes\tel", "", "URL:tel") writeReg("HKEY_CURRENT_USER\SOFTWARE\Classes\tel", "URL Protocol", "") writeReg("HKEY_CURRENT_USER\SOFTWARE\Classes\dialer.callto\Shell\Open\Command", "", '"' & @ScriptDir & '\' & $appName & '.exe" "%1" /phone') writeReg("HKEY_CURRENT_USER\SOFTWARE\Dialer\Capabilities", "ApplicationDescription", "Dialer") writeReg("HKEY_CURRENT_USER\SOFTWARE\Dialer\Capabilities", "ApplicationName", "Dialer") writeReg("HKEY_CURRENT_USER\SOFTWARE\Dialer\Capabilities\URLAssociations", "callto", "dialer.callto") writeReg("HKEY_CURRENT_USER\SOFTWARE\Dialer\Capabilities\URLAssociations", "tel", "dialer.callto") writeReg("HKEY_CURRENT_USER\SOFTWARE\RegisteredApplications", "Dialer", "Software\Dialer\Capabilities") Func writeReg($p, $n, $v) If @error Or RegRead($p, $n) <> $v Then RegWrite($p, $n, "REG_SZ", $v) EndFunc ;==>writeReg
-
That is why i typed "windows/chrome", while firefox do have that, chrome had it until some update in 2023, and now he lets windows OS to handle that part. So my question still stands, how to associate AutoIt app with windows prompt for listing it on default app for "tel:" Closes i have at this point in time is maybe this, Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts but i still need to make test case to see if it should work or not.
-
I want for my AutoIt app to show on that list so the user can select it, i know where i can list and select them, but how to put my AutoIt app on that list is the question and not how to select default one. As you see i already have that prompt when clicked "shown on image" but i do not have my AutoIt app to select from list.
-
WebDriver UDF - Help & Support (IV)
bogQ replied to Danp2's topic in AutoIt General Help and Support
from normal chrome 116.0.5845.111 x64 (smaller coz probably adblock remove something from page ) 3517 - Enable print feature for non-headless - chromedriver.pdf from chromedriver 116.0.5845.96 x64 (runed on website with py, added sleep 1000 seconds, used ctrl+p for printing) 3517 - Enable print feature for non-headless - chromedriver1.pdf -
WebDriver UDF - Help & Support (IV)
bogQ replied to Danp2's topic in AutoIt General Help and Support
Do not know what "Cryptic Window" is but... Most of udf-s are made so that they set @error macro to some value if their function fail, so if you cant reproduce sample script for us to test, take some time and debug where error is, look at function description from udf for more info to see witch error is, if any is represented in function description and then debug your code... if @error Then ConsoleWrite... Additional note, if your using on normal browser AD blocker, or site have accept cookies option, it can happened that your path from headless and normal browser are two different things so that element xpath location is just wrong. -
WebDriver UDF - Help & Support (IV)
bogQ replied to Danp2's topic in AutoIt General Help and Support
Can this page be used to integrate if version match is not found? https://googlechromelabs.github.io/chrome-for-testing/ nwm i see you replyed to his separate topic, did not see first post on this page. -
SendKeepActive doesn't work with version 3.3.16.1 - (Moved)
bogQ replied to Lobico's topic in AutoIt General Help and Support
edit: nwm totaly missclicked in brain for operator usage -
[solved] Open this folder with only txt or only exe files
bogQ replied to Borje's topic in AutoIt General Help and Support
yes yes i see, CurrentIsEnabled is True and CurrentIsReadOnly is set to False, it should work according to microsoft documentation, but still a no go. I wonder if it works on vista win7 with no problems. Edit: not OS problem, Microsoft Inspect.exe can set its value with no problem. Aldo you need to focus to display changes it is strange to me why we get focus instead of just setting the value. -
[solved] Open this folder with only txt or only exe files
bogQ replied to Borje's topic in AutoIt General Help and Support
@KaFu depending on where your stuck "couldn't get the example to work" below is how to run example mostly Presuming you already have FileExplorer.au3 from his original post. Youl need https://github.com/jvanegmond/au3_uiautomation/blob/master/CUIAutomation2.au3 Only additional thing needed to run that example is changing variable name from $UIA_ValuePatternId to $UIA_ValuePattern if im not wrong, and it shud start i hope. EDIT!: one explorer window need to be already opened by clicking to any folder before running script!!! -
Hardware (CPU, MainBoard, DRIVE, RAM) manfuctured date
bogQ replied to mLipok's topic in AutoIt General Help and Support
I do not think that is programmatically available as information. best thing i can think of is to get bios date version from cmd with wmic bios get ReleaseDate edit: on the other hand if you somehow map manifacture websites (if their url structure is usable for this) and check on their site when first bios version is published you can practically get some info around date of creation. wmic baseboard get product,Manufacturer,version,serialnumber Aldo i do not have MSI mb to see what model number will upper command return, you go to https://www.msi.com/Motherboard/B550M-PRO/support and you pull somehow last in row (first ever) bios date on that page ergo mb is from around that time. -
Hardware (CPU, MainBoard, DRIVE, RAM) manfuctured date
bogQ replied to mLipok's topic in AutoIt General Help and Support
I do not think that is programmatically available as information. best thing i can think of is to get bios date version from cmd with wmic bios get ReleaseDate -
WebDriver UDF - Help & Support (IV)
bogQ replied to Danp2's topic in AutoIt General Help and Support
@mLipok i realy do not think that google is crawling the web in a headless browser, if he is then he would not need site map to help him navigate.