Search found 657 matches

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: 7276

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: 7276

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: 7276

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: 7276

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: 2293

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: 314
Views: 133438

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: 42
Views: 9719

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: 15703

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: 15703

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: 42
Views: 9719

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: 4983

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: 4983

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: 15703

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: 15703

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.
by malcev
09 Jul 2020, 18:45
Forum: Scripts and Functions
Topic: Direct3D proof of concept / Steam BPM overlay
Replies: 12
Views: 4709

Re: Direct3D proof of concept / Steam BPM overlay

evilC wrote:
10 Mar 2017, 14:47
Is this potentially a solution for making overlays which can be injected into Fullscreen DX apps?
Now I think it possible - just need to convert ImGui Autoit wrapper
https://www.autoitscript.com/forum/topic/203287-imgui-in-autoit-advanced-ui
by malcev
09 Jul 2020, 18:08
Forum: Scripts and Functions
Topic: RPAChallenge with AHK, COM, and JSWrapper.ahk
Replies: 43
Views: 15703

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

You just have to send it.
For example open window 1000x800 json can be like this:

Code: Select all

options = {"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"args":["window-size=1000,800"]}}}}
wd := new WDSession(, options)
by malcev
09 Jul 2020, 16:15
Forum: Scripts and Functions
Topic: RPAChallenge with AHK, COM, and JSWrapper.ahk
Replies: 43
Views: 15703

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

If You look at the end of AHKWebDriver.ahk You will see how to set debugging port in Chrome.
by malcev
08 Jul 2020, 15:13
Forum: Scripts and Functions
Topic: RPAChallenge with AHK, COM, and JSWrapper.ahk
Replies: 43
Views: 15703

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

Try like this:

Code: Select all

wd := new WDSession("http://127.0.0.1:4444/")

Go to advanced search