Jump to content

bogQ

Active Members
  • Posts

    1,944
  • Joined

  • Last visited

  • Days Won

    4

bogQ last won the day on April 22 2015

bogQ had the most liked content!

About bogQ

  • Birthday 12/13/1982

Profile Information

  • Member Title
    For me, it’s simple - it’s a way of life.
  • Location
    Serbia
  • WWW
    Wake me up when
  • Interests
    For personal interest:
    * 3D Creations & Animation (Games, Virtual Worlds, Movies...)

    For profesional interest:
    * Data (Redirect Editors, db MySql ,Automation)
    * GSM (text udh pdu with multi msg support)
    * IE Automation
    * TCP
    * Site creation

    Ahh ... :s i know that im crazzzzy :)

Recent Profile Visitors

2,116 profile views

bogQ's Achievements

  1. @Jos he is probably getting something similar to For #include "чц.au3"
  2. Did you try automating with webdriver some other browser to check if its not headless browser related problem?
  3. 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?
  4. 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?
  5. 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")
  6. So what did you try on your own or where is your code that is failing?
  7. 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.
  8. 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)
  9. 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', ...);
  10. 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
  11. 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
  12. 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
  13. 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.
  14. 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.
  15. So basically I installed MicroSIP and Line Phone, and both of them are suggested app for href="tel:" So how i can suggest to windows/chrome that my AutoIt app should be located on that list for user to select from?
×
×
  • Create New...