Search found 36 matches

by A_User
19 Nov 2017, 14:50
Forum: Ask For Help
Topic: Unknown Object Properties called with Brackets do not invoke __GET() Topic is solved
Replies: 4
Views: 569

Re: Unknown Object Properties called with Brackets do not invoke __GET() Topic is solved

So it sounds like an undocumented expected behavior, which is very hard to figure out for a light user. Thanks for your code, HotKeyIt. But then `msgbox % _oTestMetaFunctions.aArray.foo` becomes empty with your code. I could do something like this to return appropriate object values for unknown prop...
by A_User
19 Nov 2017, 13:10
Forum: Ask For Help
Topic: Unknown Object Properties called with Brackets do not invoke __GET() Topic is solved
Replies: 4
Views: 569

Unknown Object Properties called with Brackets do not invoke __GET() Topic is solved

Hi, I'm wondering if this is an expected behavior or not. _oTestMetaFunctions := new TestMetaFunctions msgbox % _oTestMetaFunctions.aArray[ "foo" ] ; <-- shows an empty string ; msgbox % _oTestMetaFunctions.aArray.foo ; <-- this shows "Bar" return class TestMetaFunctions { __GET( sName ) { if ( "aAr...
by A_User
19 Nov 2017, 12:55
Forum: Scripts and Functions
Topic: LoadFile - Load script file as a separate process
Replies: 13
Views: 5777

Re: LoadFile - Load script file as a separate process

Always close processes gracefully. If the script user is only me, it is fine. But sometimes it could be an unknown person and he/she may kill the main process from Task Manager, Process Explorer or any other means. For such cases, I'd like to make sure that the threads (child/remote processes) crea...
by A_User
12 Nov 2017, 04:20
Forum: Ask For Help
Topic: Variadic Class Methods with Named Parameters
Replies: 1
Views: 345

Variadic Class Methods with Named Parameters

Hi, It seems that named parameters (associative array) cannot be used for class methods. Is this an expected behavior? It seems to be supported for generic user-defined functions though. aParams := { first: "one", second: "two" } func( aParams* ) _oVT := new VariadicTest _oVT.func( aParams* ) return...
by A_User
07 Nov 2017, 07:49
Forum: Scripts and Functions
Topic: [functions] More GDI+ functions
Replies: 5
Views: 2287

Re: [functions] More GDI+ functions

So where is the code?
by A_User
07 Nov 2017, 07:43
Forum: Scripts and Functions
Topic: LoadFile - Load script file as a separate process
Replies: 13
Views: 5777

Re: LoadFile - Load script file as a separate process

Thanks for the reply, lexikos. I could do something like this and it works. LoadFileMod(path, exe:="", exception_level:=-1, aArguments="testing") { ObjRegisterActive(client := { arguments: aArguments }, guid := CreateGUID()) ... Serve(guid) { try { client := ComObjActive(guid) client._proxy := new t...
by A_User
30 Oct 2017, 08:48
Forum: Scripts and Functions
Topic: LoadFile - Load script file as a separate process
Replies: 13
Views: 5777

Re: LoadFile - Load script file as a separate process

This is something I've been looking for. Thank you for the great work, lexikos. I'm wondering if there is a way to pass script arguments to the called script file, or preferably a way to set global variables before the auto-execute section starts. You showed an example to set a global variable but i...
by A_User
29 Oct 2017, 09:45
Forum: Ask For Help
Topic: Anyone successful controlling NOX App Player with AHK?
Replies: 5
Views: 4429

Re: Anyone successful controlling NOX App Player with AHK?

I had a similar issue with GUI windows of Nox Player. The problem that the window is not redrawn after resizing the Nox Player window can be solved by simulating dragging the border of the window. hWindTarget := WinExist( "A" ) ; set your target window handle of Nox Player iHeight := 400 WinMove, % ...
by A_User
29 Oct 2017, 09:37
Forum: Gaming
Topic: Gdip Screenshot Active Window
Replies: 8
Views: 4588

Re: Gdip Screenshot Active Window

@nachoman21 I had the same problem and could solve it by changing the Graphic Rendering option of Nox to DirectX from OpenGL.
by A_User
25 Aug 2017, 17:46
Forum: Ask For Help
Topic: Simulating Drag and Drop Files in IE
Replies: 0
Views: 276

Simulating Drag and Drop Files in IE

Hi there, I'm looking for a way to programatically drag and drop files on to a selected HTML element in IE. According to this page , it looks possible by injecting JavaScript. I'm wondering if this can be done with AUtoHotkey using COM and IE. It would be appreciated if anybody could translate the c...
by A_User
24 Aug 2017, 03:29
Forum: Ask For Help
Topic: ComObjConnect() with Seleniumbasic
Replies: 0
Views: 387

ComObjConnect() with Seleniumbasic

The following code produces the error. driver := ComObjCreate( "Selenium.ChromeDriver" ) ComObjConnect( driver, "SCD_" ) SCD_Test() { } --------------------------- ComObjConnectErrorWithSelenium.ahk --------------------------- Error: 0x80004002 - No such interface supported Line# 003: SetWorkingDir,...
by A_User
23 Aug 2017, 10:29
Forum: Tutorials
Topic: Using Selenium with AutoHotkey- Cross browser automation!
Replies: 135
Views: 61834

Re: Using Selenium with AutoHotkey- Cross browser automation!

Very helpful. Thank you.

One thing. In order to automate Chrome, I had to update chromedriver.exe by replacing %LOCALAPPDATA%\SeleniumBasic\chromedriver.exe with the one which can be downloaded from here. Otherwise, an error occurred.
by A_User
23 Aug 2017, 10:21
Forum: Ask For Help
Topic: Catch Event with Selenium
Replies: 1
Views: 430

Catch Event with Selenium

Hi, I'm looking for a way to trigger an AutoHotkey function or class method when an HTML element is clicked, using Seleniumbasic. I'm wondering if there is something similar to the approach done here , which uses `addEventListener()`. However, it seems Selenium doe not support that method. Meanwhile...
by A_User
21 Aug 2017, 02:17
Forum: Ask For Help
Topic: 0x0233 - (WM_DROPFILES) with Internet Explorer
Replies: 0
Views: 257

0x0233 - (WM_DROPFILES) with Internet Explorer

Hi, It seems posting/sending a message, 0x0233, does not work with Internet Explorer. By doing a web search, I found this (https://answers.microsoft.com/en-us/windows/forum/windows_7-files/file-drag-n-drop-via-wmdropfiles-doesnt-work-in/d172ed8c-1a5b-e011-8dfc-68b599b31bf5?auth=1)) and this (https:/...
by A_User
21 Aug 2017, 01:48
Forum: Ask For Help
Topic: Handling a Browser Pop-up Window that Interfares with the Main Window Using WebBrowser Control
Replies: 0
Views: 261

Handling a Browser Pop-up Window that Interfares with the Main Window Using WebBrowser Control

Hi, I've been creating a program with AutoHotkey which involves logging-in to a web site and does some automated tasks on the site. I've been trying the WebBrowser (Shell.Explorer ActiveX) control but there is a problem when logging-in to a particular web site that uses a separate pop-up window for ...

Go to advanced search