Search found 621 matches

by malcev
29 Jul 2020, 04:43
Forum: Ask For Help
Topic: Captcha problem in Chrome
Replies: 5
Views: 2163

Re: Captcha problem in Chrome

You have to use online captcha solvers API or break captcha by Yourself.
by malcev
28 Jul 2020, 21:17
Forum: Ask For Help
Topic: Captcha problem in Chrome
Replies: 5
Views: 2163

Re: Captcha problem in Chrome

What is the site and Your code?
by malcev
23 Jul 2020, 11:54
Forum: Ask For Help
Topic: How to send text to a location in a window? Topic is solved
Replies: 29
Views: 7193

Re: How to send text to a location in a window? Topic is solved

You can see what controlsend sends with spy++.
No magic.
wm_keydown, wm_keyup, wm_char for every letter.
by malcev
23 Jul 2020, 00:09
Forum: Ask For Help
Topic: How to send text to a location in a window? Topic is solved
Replies: 29
Views: 7193

Re: How to send text to a location in a window? Topic is solved

No, You have to test it by Yourself. ControlSend is just wrapper of PostMessage, WM_CHAR. Also as I said before there are a lot of different approaches to automate tasks with Your browser. WinHttpRequest, IAccessible, UIA, webdriver, selenium, chrome wrapper, tagui, imacros, run js from address bar,...
by malcev
22 Jul 2020, 15:37
Forum: Ask For Help
Topic: How to send text to a location in a window? Topic is solved
Replies: 29
Views: 7193

Re: How to send text to a location in a window? Topic is solved

As far as I understand, the purpose of ControlSend is to send keystrokes to a window that may not be the active window It depends on target program. I don't know why you say that I am not saying what I want. I think I've been very clear about what I want. You did not tell that You want use firefox ...
by malcev
22 Jul 2020, 12:29
Forum: Ask For Help
Topic: How to send text to a location in a window? Topic is solved
Replies: 29
Views: 7193

Re: How to send text to a location in a window? Topic is solved

I think that You cannot Controlsend to another firefox window while You have active document of firefox.
You can activate url or search bar of active firefox and then controlsend will work.
You cannot explain what do You want and therefore You will get such results.
by malcev
19 Jul 2020, 11:46
Forum: Ask For Help
Topic: How to send text to a location in a window? Topic is solved
Replies: 29
Views: 7193

Re: How to send text to a location in a window? Topic is solved

I do not see any issue:

Code: Select all

F1::
SetControlDelay -1
SetKeyDelay, -1
ControlClick x75 y213, ahk_exe firefox.exe,,,, NA	; adjust coords!
ControlSend, ahk_parent, test, ahk_exe firefox.exe
return
by malcev
19 Jul 2020, 10:44
Forum: Ask For Help
Topic: How to send text to a location in a window? Topic is solved
Replies: 29
Views: 7193

Re: How to send text to a location in a window? Topic is solved

What is the site?
And what do You want?
by malcev
18 Jul 2020, 09:32
Forum: Ask For Help
Topic: How to build this in AHK - It's been done in Python
Replies: 6
Views: 2263

Re: How to build this in AHK - It's been done in Python

I do not know much python, but some time ago it was interested to me to convert some functions from instagram api python wrapper to ahk. https://www.autohotkey.com/boards/viewtopic.php?p=251268#p251268 I installed python, read manual about functions that code used, tested what they do in python and ...
by malcev
16 Jul 2020, 07:53
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 288
Views: 126135

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Use WebDriver api:
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=69390
Or You can run JS from address bar.
Or You can set value with IAccessible or IUIAutomation help.
by malcev
13 Jul 2020, 02:28
Forum: Gaming
Topic: Anti-cheat black screen
Replies: 41
Views: 9391

Re: Anti-cheat black screen

Read manual.
by malcev
12 Jul 2020, 07:02
Forum: Scripts and Functions
Topic: RPAChallenge with AHK, COM, and JSWrapper.ahk
Replies: 43
Views: 15510

Re: RPAChallenge with AHK, COM, and JSWrapper.ahk

I tested on 3 different Win10 PCs and code works for me. Therefore I think it is bug of Your system. You can try to disable gpu and/or change page load strategy like this: #noenv #include AHKWebDriver.ahk Run, chromedriver.exe --port=1234 options = {"capabilities": {"alwaysMatch": {"pageLoadStrategy...
by malcev
11 Jul 2020, 16:06
Forum: Scripts and Functions
Topic: RPAChallenge with AHK, COM, and JSWrapper.ahk
Replies: 43
Views: 15510

Re: RPAChallenge with AHK, COM, and JSWrapper.ahk

For me it works without setting options.
If I run chromedriver on specific port like this

Code: Select all

C:\temp\chromedriver.exe --port=1234
Then I can connect with this code

Code: Select all

wd := new WDSession("http://127.0.0.1:1234/")
by malcev
11 Jul 2020, 06:04
Forum: Gaming
Topic: Anti-cheat black screen
Replies: 41
Views: 9391

Re: Anti-cheat black screen

You need change hwnd to Your window, run this code. If image will be not ok, then try to disable harware acceleration in Your program. If You cannot disable harware acceleration, then You need to inject dll and hook Your target program. file := "file.bmp" ; can be: png, bmp, jpg, tiff, gif captureHw...
by malcev
10 Jul 2020, 02:18
Forum: Ask For Help
Topic: Math evaluation is incorrect using calc function. Topic is solved
Replies: 15
Views: 4960

Re: Math evaluation is incorrect using calc function. Topic is solved

You are right. :)))) js := new JsRT.Edge MsgBox % js.Eval("5**2") /* * ActiveScript for AutoHotkey v1.1 * * Provides an interface to Active Scripting languages like VBScript and JScript, * without relying on Microsoft's ScriptControl, which is not available to 64-bit * programs. * * License: Use, mo...
by malcev
09 Jul 2020, 19:26
Forum: Ask For Help
Topic: Math evaluation is incorrect using calc function. Topic is solved
Replies: 15
Views: 4960

Re: Math evaluation is incorrect using calc function. Topic is solved

Code: Select all

doc := ComObjCreate("htmlfile")
doc.write("<meta http-equiv=""X-UA-Compatible"" content=""IE=9"">")
msgbox % doc.parentWindow.eval(5**2)
by malcev
09 Jul 2020, 19:22
Forum: Scripts and Functions
Topic: RPAChallenge with AHK, COM, and JSWrapper.ahk
Replies: 43
Views: 15510

Re: RPAChallenge with AHK, COM, and JSWrapper.ahk

If You need to change port in options, You have to change json like this.

Code: Select all

options = {"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"args":["remote-debugging-port=9222"]}}}}
by malcev
09 Jul 2020, 19:04
Forum: Scripts and Functions
Topic: RPAChallenge with AHK, COM, and JSWrapper.ahk
Replies: 43
Views: 15510

Re: RPAChallenge with AHK, COM, and JSWrapper.ahk

I do not understand what do You want.
You asked:
It appears that since version 63 you can't specify the remote debugging port as an argument, just as an option
I wrote examle how to send options with json.

Go to advanced search