Jump to content

Jotos

Active Members
  • Posts

    29
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Jotos's Achievements

  1. I don't know why, but the problem is gone.
  2. The code is fine. It was alright BEFORE I used Notepad++. Just after I pushed the save button in Notpad++ and reopen the file with Autoit, I got this problem only at this file. All other files are as the same as before.
  3. Hey! I used Notepad++ to edit an .au3 script. Now I noticed that the code folding symbols (the little minus/plus boxes next to functions or control structures) look strange when I open the file in Autoit — kind of stretched or misaligned, especially around Func ... EndFunc blocks. Here's a screenshot: Any suggestions on how to fix the visual issue? Thanks!
  4. Hey everyone, I'm trying to get WebDriver up and running, but I’m having trouble getting my custom script to start. Here’s the script I’m using: The strange thing is that when I run the demo script, it works just fine. But with this script, nothing happens at all—no browser window opens, and there are no errors. Any advice on what might be going wrong or how I can troubleshoot this? Thanks in advance for any help! PS: This is the demo:
  5. I tried it, but don't get any result 😕 Like it's not working for me.. Here are my settings: The Startup.lua: The folder:
  6. sorry guys... I forget to take... $sCapabilities $sCapabilities = SetupChrome() $sSession = _WD_CreateSession($sCapabilities) Now its working...
  7. $sCapabilities = SetupChrome() $sSession = _WD_CreateSession() _WD_CheckContext($sSession, False) If @error Then MsgBox(0,"_WD_CheckContext($sSession, False)","Error: _WD_CheckContext") ;return if session is NOT OK I think it's because of the chromedriver.exe don't have the right version. Atm I use version 120.0.6099.217 for Chrome and the last stable version for the chromedriver is: 120.0.6099.109 That's why I wanted to change the path for a beta version of Chrome. The script worked a few weeks ago and everything was fine Now it's broken..
  8. Yhea, I tried this: Func SetupChrome() ShellExecute(@ScriptDir & "\Include\chromedriver.exe", "","","", @SW_HIDE) _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--verbose --log-path="' & @ScriptDir & '\chrome.log"') _WD_CapabilitiesStartup() _WD_CapabilitiesAdd('alwaysMatch', 'chrome') _WD_CapabilitiesAdd('w3c', True) Local $pfad = 'C:\\Program Files\\Google\\Chrome Beta\\Application\\chrome.exe' _WD_CapabilitiesAdd('binary', $pfad) _WD_CapabilitiesAdd('excludeSwitches', 'enable-automation') Local $sCapabilities = _WD_CapabilitiesGet() Return $sCapabilities EndFunc ;==>SetupChrome but get an error..
  9. Heya, I have been exploring various forums and documentation, but haven't found a clear solution yet. Could anyone here provide some guidance or share their experiences with changing the Chrome Path for WebDriver? I would like to use another Version of Chrome for my script. Thanks
  10. Heya! How can I create a Tooltip like this one for my own functions?
  11. For $i = 0 To 3 $arraySlot = $i+1 $Label[$i] = GUICtrlCreateLabel($i+1 & ": " & _ArrayToString($funktion, @TAB, $i+1, $i+1), 16, 8+14*$i, 36, 17) Next I don't know how to represent the contents of the array $funktion as a string. Edit: you all are right! I didn't understand what the point was at first. .... I am sorry.
  12. Its not the display - i try to dispaly the array not the STRING inside of the array. I have to use _ArrayToString, I think.
  13. Heya, I want to create Labels with a For-Next loop, to show all my used HotKeys. But it dont show the names in the labels.. This is my code so far: Local $Label[4] Local $funktion[5] $funktion[1] = "Function1" $funktion[2] = "Function2" $funktion[3] = "Function3" $funktion[4] = "Function3" HotKeySet("{1}", "Function1") HotKeySet("{2}", "Function2") HotKeySet("{3}", "Function3") HotKeySet("{4}", "Function3") For $i = 0 To 3 $arraySlot = $i+1 $Label[$i] = GUICtrlCreateLabel($i+1 & ": " & $funktion[$arraySlot], 16, 8+14*$i, 36, 17) Next The result is:
  14. Yes, that was the problem! Thanks
  15. <second post by mistake>
×
×
  • Create New...