-
Posts
36 -
Joined
-
Last visited
Everything posted by ElPandaRojo1
-
WebDriver UDF - Help & Support (III)
ElPandaRojo1 replied to Danp2's topic in AutoIt General Help and Support
Haha, But how could I do it, since I haven't found the way, could you help me please, thank you. -
WebDriver UDF - Help & Support (III)
ElPandaRojo1 replied to Danp2's topic in AutoIt General Help and Support
Hello, I would like to know if it is possible to take the screenshot of the page but complete it, example I want to capture a table, but this table is a bit long towards the bottom, and if I do it with the following function, it cuts it off since it is not displayed in display the entire table. $sButton = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//*[@class='tablaPagina']/tbody/tr[2]") $cResult = _WD_ElementAction($sSession, $sButton, "screenshot") There is a possibility that I capture the total image that I want without having to move the scroll so that the image is not cropped. -
Hello everyone, thank you first of all. I have a question that I can't find a way to solve, and I want to know what version of my ADODB I use to connect to the database. Local $ADODBConnection = ObjCreate("ADODB.Connection") Or if someone can also help me to know which is the dll that this takes for this function. I try with the .version function to try to obtain it but it throws me version 10.0 which I am not sure if it is, since the last version I find on the official page is 5.22.1 ConsoleWrite("ADODBConnection: "&$ADODBConnection.version&@CRLF) Result: ADODBConnection: 10.0 I appreciate the help and I apologize if perhaps it is a question that I should not ask here.
-
How to take control of the AS400
ElPandaRojo1 replied to ElPandaRojo1's topic in AutoIt General Help and Support
I have already searched but no external file appears to be able to do this, I get the following error, it does not create the object for this: Invalid class string -
I want to know if there is a possibility of automating the AS400 through the object I have already searched but I can't find the option that worked for me, I tried the following and it doesn't work. ;Code 1 $Obj_ConnMgr = ObjCreate("PCOMM.autECLConnMgr") $OBJ_EmulSession = ObjCreate("PCOMM.autECLSession") $OBJ_EmulSession.SetConnectionByName($nSession) ;Code 2 global $oOIA = ObjCreate("PCOMM.autECLOIA") $oOIA.SetconnectionByName("A") global $oPS = ObjCreate("PCOMM.autECLPS") $oPS.SetConnectionByName("A") I tried these two options but it doesn't work, of course taking into account that the AS400 session has already been started and it is in its main window. It throws me the following error
-
WebDriver UDF - Help & Support (III)
ElPandaRojo1 replied to Danp2's topic in AutoIt General Help and Support
Good morning, I would like to know if there is an option to save a page that I have open in pdf, as if I did a CTRL + P, and there appears a print window but instead of giving it print, it is given to save the pdf to this page, I do not know if this is possible to save the active page in pdf? I would appreciate the answer to know if this is possible, at the moment I am making it take a print of an element, but this takes me an image, and I would like to do it in pdf to be able to copy the data it brings. -
WebDriver UDF - Help & Support (III)
ElPandaRojo1 replied to Danp2's topic in AutoIt General Help and Support
Good morning, I would like to know if there is an option to save a page that I have open in pdf, as if I did a CTRL + P, and there appears a print window but instead of giving it print, it is given to save the pdf to this page, I do not know if this is possible to save the active page in pdf? I would appreciate the answer to know if this is possible, at the moment I am making it take a print of an element, but this takes me an image, and I would like to do it in pdf to be able to copy the data it brings. -
Find an image within another image
ElPandaRojo1 replied to ElPandaRojo1's topic in AutoIt General Help and Support
I check it but it does not work until the call of this function: ;Find first pixel that is diffrent than ....the first pixel Func _FindFirstDiff($tPix) ;####### (BinaryStrLen = 106) ######################################################################################################################## Static Local $Opcode = '0xC80000008B5D0C8B1383C3048B4D103913750C83C304E2F7B800000000EB118B5508FF338F028B451029C883C002EB00C9C20C00' Static Local $aMemBuff = DllCall("kernel32.dll", "ptr", "VirtualAlloc", "ptr", 0, "ulong_ptr", BinaryLen($Opcode), "dword", 4096, "dword", 64) Static Local $tMem = DllStructCreate('byte[' & BinaryLen($Opcode) & ']', $aMemBuff[0]) Static Local $fSet = DllStructSetData($tMem, 1, $Opcode) ;##################################################################################################################################################### Local $iMaxLoops = (DllStructGetSize($tPix) / 4) - 1 Local $aRet = DllCallAddress('dword', DllStructGetPtr($tMem), 'dword*', 0, 'struct*', $tPix, 'dword', $iMaxLoops);On this exact line Return $aRet EndFunc ;==>_FindFirstDiff And then it throws me this error: !>12:21:20 AutoIt3.exe ended.rc:-1073741819 It seems that it stays in an infinite loop or an infinite function call, and the program closes, I am using exactly the same example code that is in the documentation. -
Hello, I have a problem, and I still can't find how to do the following, is to look for an example image of the autoit icon within another image, it could be the image of a desktop screenshot but sending the image myself, but I can't find anything that I can help with this, I already tried the libraries: 'ImageSearch.au3', '_ImageSearch_UDF.au3', 'HandleImgSearch.au3', but none of these do this, they always do it with the desktop screenshot without being able to select which image in specific. I also found this but in the same way it does not work for me, I run it normally and it always returns the same, this or not the image of the calculator on the screen. I appreciate if you can help me with this.
-
WebDriver UDF - Help & Support (III)
ElPandaRojo1 replied to Danp2's topic in AutoIt General Help and Support
Hello, I would like to know if there is any way to update only the driver to handle the browser? depending on the version that is installed on the pc? Sorry if you solved this already but I didn't find anything on this. -
Library Connection Port _qsl.au3
ElPandaRojo1 replied to ElPandaRojo1's topic in AutoIt General Help and Support
Ok Thank you very much, was that what I wanted, to know, I appreciate it, I have not yet gone to your UDF ADO.au3, since I have not had much time to analyze it but it looks more complete, I thank you. -
@ JLogan3o13 1. I'd like it to be located on the MSSQL server (so I can download it when a program is running). 2. I think it would be the opposite, I would like that when a program is executed locally it validates if there is a new version, and if there is, then it copies (downloads) me from the MSSQL server. Note: I already have a way to do this but from a shared folder, I would like to move to the server @Danp2 But from the MSSQL server?
-
The truth is I do not know if this is correct, but I would like to know if there is any way to upload an application to the MSSQL server and download it from the autoit code, it is that I would like to make a Bot that updates itself but I do not know if this is possible from the server, if someone could help me, or telling me if this is possible or not. I thank you all
-
Library Connection Port _qsl.au3
ElPandaRojo1 replied to ElPandaRojo1's topic in AutoIt General Help and Support
I have not yet fully learned how to use it, I am in the process of moving, but what I would like to know is by which port does autoit connect to MSSQL? -
Hi, I have a question, I don't know if maybe it's wrong for me to ask this. I would like to know by which port the _sql.au3 library is connected, since I am not clear about this, if someone can help me I appreciate it This is the line of code that connects to the database $ADODBHandle.Open("DRIVER={SQL Server};SERVER=" & $server & ";DATABASE=" & $db & ";uid=" & $username & ";pwd=" & $password & ";") ;<==Connect with required credentials or maybe someone knows how I can specify the port to connect
-
Send keyboard command in webdriver
ElPandaRojo1 replied to ElPandaRojo1's topic in AutoIt General Help and Support
I already found the way to send the key combination, thank you very much for your help, I could not send an example code, since I did not find a page similar to the one I am testing, since the page is from work. I send the form that I found that is part of how you explained to me. _ChromeXPathComandByXPath($sSession, "SearchXpath", "value", "\uE008\uE007") Func _ChromeXPathComandByXPath($sSession, $XPath, $Value, $Option = "") $sButton = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, $XPath) $cResult = _WD_ElementAction($sSession,$sButton, $Value , $Option) Return $cResult EndFunc So I send a SHIFT + ENTER that gives me a line break where it does not accept the jump with just the enter. -
Send keyboard command in webdriver
ElPandaRojo1 replied to ElPandaRojo1's topic in AutoIt General Help and Support
The sending of keys does not work for me, try like this $sAction = '{"actions":[{"type": "key", "id": "keyboard_1", "actions": [{"type": "keyDown", "value": "\uE008"}, {"type": "keyDown", "value": "\uE007"},{"type": "keyUp", "value": "\uE008"},{"type": "keyUp", "value": "\uE007"}]}]}' $_WD_Action = _WD_Action($sSession, "actions", $sAction) and also like this $sAction = '{"actions": [{"type": "key","id": "keyboard","actions": [{"type": "keyDown", "value": "\uE008"},{"type": "keyDown", "value": "\uE007"},{"type": "keyUp", "value": "\uE008"},{"type": "keyUp", "value": "\uE007"}]}]}' $_WD_Action = _WD_Action($sSession, "actions", $sAction) but none worked for me -
Send keyboard command in webdriver
ElPandaRojo1 replied to ElPandaRojo1's topic in AutoIt General Help and Support
I have another question I have a text, Line texto 1 Line texto 2 Line texto 3 Line texto 4 I would like to send this text with these line breaks but when I use _WD_ElementAction ($ sSession, $ sElement, "value", "Text") it sends me the line breaks as an ENTER, I would like to know how I can make it just send me the jump of line and to be able to send this text in a single paragraph, and not separated. -
Send keyboard command in webdriver
ElPandaRojo1 replied to ElPandaRojo1's topic in AutoIt General Help and Support
Yes but, I don't understand how I can send two keys at the same time $sAction = '{"actions":[{"type": "key", "id": "keyboard_1", "actions": [{"type": "keyDown", "value": "\uE00F"}, {"type": "keyUp", "value": "\uE00F"}]}]}' _WD_Action($sSession, "actions", $sAction) Or so would it work? saying that the Key_Down the SHIFT and in the Key_Up the ENTER $sAction = '{"actions":[{"type": "key", "id": "keyboard_1", "actions": [{"type": "keyDown", "value": "\uE008"}, {"type": "keyUp", "value": "\uE007"}]}]}' _WD_Action($sSession, "actions", $sAction) -
Hello, I would like to know how I can send a keyboard command in webdriver, for example I need to send the SHITF + ENTER key combination, either to an element or to the browser, I appreciate if you can help me
-
How can I do so that the input allows me to paste text that comes with line breaks, try this way, but it does not work for me, I already searched the forum but I could not find something to help me. #include <GUIConstantsEx.au3> Window() Func Window() Local $hGUI = GUICreate("Example") Local $txtInput = GUICtrlCreateInput("", 50, 50, 85, 25, BitOR($ES_MULTILINE, $ES_READONLY)) GUICtrlSetFont($txtInput, 10, 400, 0, "Verdana") GUICtrlSetColor($txtInput, 0x101010) GUISetState(@SW_SHOW, $hGUI) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete($hGUI) EndFunc ;==>Example I would be very grateful if you can help me.
-
How to accept the alert window
ElPandaRojo1 replied to ElPandaRojo1's topic in AutoIt General Help and Support
Yes it worked perfect for me, thank you very much -
How to accept the alert window
ElPandaRojo1 replied to ElPandaRojo1's topic in AutoIt General Help and Support
I'm going to validate, but how do I know if the alert window appears? with the 'status' command? since it only appears sometimes when I give a refresh