Search found 709 matches

by malcev
16 Jun 2018, 08:00
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 285
Views: 96609

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

I have PS/2 keyboard and monitor.ahk does not recognize it.
Does your wrapper work with PS/2 devices?
And second question:
Why if I use usb keyboard I can not send scancode which consists of 3 digits?
For example sc148 - Up.
by malcev
26 May 2018, 18:13
Forum: Bug Reports
Topic: wrong key state when there is a UAC pop-up
Replies: 3
Views: 1302

Re: wrong key state when there is a UAC pop-up

lexikos wrote:"Dim the desktop" actually means "display the dialog on an alternative Desktop which other processes cannot access
You can run any process in UAC desktop with PsExec.exe.
https://docs.microsoft.com/en-us/sysint ... ads/psexec

Code: Select all

С:\Test\PsExec /h /x /d /s "С:\Test\script.exe"
by malcev
18 May 2018, 10:31
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 321
Views: 136682

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

Why does it take a lot of time to get page source? For example if I use IE or Selenium it takes about 100ms. IE: oIE := ComObjCreate("InternetExplorer.Application") oIE.visible := True oIE.navigate("http://delfi.lv") While oIE.readyState != 4 || oIE.document.readyState != "complete" || oIE.busy slee...
by malcev
05 May 2018, 04:37
Forum: Ask For Help
Topic: #If and ComObjCreate return error 0x8001010D
Replies: 7
Views: 1833

Re: #If and ComObjCreate return error 0x8001010D

I see. Could You tell me please, why the result of ACC function is wrong inside #If but there is no error. You can test it: 1) open google chrome, move cursor to address bar, and press f10, f11. If we press f10 we will get "New Tab - Google Chrome" (wrong result). If we press f11 we will get "Addres...
by malcev
04 May 2018, 14:10
Forum: Ask For Help
Topic: #If and ComObjCreate return error 0x8001010D
Replies: 7
Views: 1833

Re: #If and ComObjCreate return error 0x8001010D

Try re-thinking your approach to limit the number of times ComObjCreate is called I will get error after first run. How long does it take for IE to load-up when you launch it manually? I don't think it can keep up Ok, one more example: ;ComObjError(false) #If test() f10:: #if test() { a := a_tickco...
by malcev
04 May 2018, 12:16
Forum: Ask For Help
Topic: #If and ComObjCreate return error 0x8001010D
Replies: 7
Views: 1833

Re: #If and ComObjCreate return error 0x8001010D

I want to know why when I create some com objects inside #If I receive error 0x8001010D.
by malcev
04 May 2018, 12:03
Forum: Ask For Help
Topic: #If and ComObjCreate return error 0x8001010D
Replies: 7
Views: 1833

#If and ComObjCreate return error 0x8001010D

Why If I press f10 I will get "Error: 0x8001010D - An outgoing call cannot be made since the application is dispatching an input-synchronous call", but if I press f11 all works OK. #If test() f10:: #if #If test1() f11:: #if test() { ComObjCreate("InternetExplorer.Application") } test1() { ComObjCrea...
by malcev
01 May 2018, 16:10
Forum: Bug Reports
Topic: FileGetShortcut: Wrong 'OutTarget' for 64 bit program files
Replies: 6
Views: 2277

Re: FileGetShortcut: Wrong 'OutTarget' for 64 bit program files

It can be done with wmi:

Code: Select all

lnk := "C:\My Link.lnk"
msgbox % ComObjGet("winmgmts:").ExecQuery("Select * from Win32_ShortcutFile where Name=""" StrReplace(lnk, "\", "\\") """").ItemIndex(0).Target
by malcev
30 Apr 2018, 12:40
Forum: Scripts and Functions
Topic: Acc library (MSAA) and AccViewer download links
Replies: 30
Views: 29533

Re: Acc library (MSAA) and AccViewer download links

I found that ACC library does not work with directive #if. 1 example - open google chrome, move cursor to address bar, and press f10, f11. When we press f10 - the result will be wrong. #If !test() f10:: return #If return f11::test() return test() { tooltip % Acc_test(child).accName(child) } Acc_test...
by malcev
28 Apr 2018, 17:19
Forum: Ask For Help
Topic: Input, with key Semicolon Topic is solved
Replies: 8
Views: 1256

Re: Input, with key Semicolon Topic is solved

It does not work because ";" is implented with hook. For example it will work: a:: Input, UserInput, , a If InStr(ErrorLevel, "EndKey:") MsgBox, do some stuff It doesnt: #UseHook a:: Input, UserInput, , a If InStr(ErrorLevel, "EndKey:") MsgBox, do some stuff In Your case try this: `;:: If !WinActive...
by malcev
28 Apr 2018, 16:20
Forum: Bug Reports
Topic: run documentation
Replies: 0
Views: 896

run documentation

If We run last example with character ✓ here: https://autohotkey.com/docs/commands/Run.htm#Examples Then We will get error: ExecScript(Script, Wait:=true) { shell := ComObjCreate("WScript.Shell") exec := shell.Exec("AutoHotkey.exe /ErrorStdOut *") exec.StdIn.Write(script) exec.StdIn.Close() if Wait ...
by malcev
22 Jan 2018, 22:05
Forum: Ask For Help
Topic: YouTube Key Remap
Replies: 22
Views: 2788

Re: YouTube Key Remap

Is it possible to disable this when I'm typing in the YouTube search box?
You can do it with enabling accessibility through chrome://accessibility/ and running opera with this parameter --force-renderer-accessibility.
Then You need to use Acc library.
by malcev
13 Dec 2017, 10:24
Forum: Ask For Help
Topic: documentMode of HTMLFile is differ than HTMLFile activex
Replies: 0
Views: 405

documentMode of HTMLFile is differ than HTMLFile activex

oDoc := ComObjCreate("HTMLFile") oDoc.Write("<!DOCTYPE html><head><meta http-equiv=""X-UA-Compatible"" content=""IE=9""></head>") oDoc.Close() msgbox % oDoc.documentMode Gui, Add, ActiveX, w222 h222 voDoc, HTMLFile Gui, Show oDoc.Write("<!DOCTYPE html><head><meta http-equiv=""X-UA-Compatible"" cont...
by malcev
05 Dec 2017, 12:43
Forum: Ask For Help
Topic: querySelector does not work in htmlfile in ie8 mode
Replies: 3
Views: 609

querySelector does not work in htmlfile in ie8 mode

querySelector should work in ie8+. Why through javascript querySelector works, but directly querySelector method fails? oDoc := ComObjCreate("HTMLfile") html = ( <!DOCTYPE html><head><meta http-equiv="X-UA-Compatible" content="IE=8"></head> <span class='title'>Title Text</span> <script type="text/ja...
by malcev
03 Dec 2017, 19:26
Forum: Tutorials
Topic: Using Selenium with AutoHotkey- Cross browser automation!
Replies: 146
Views: 92965

Re: Using Selenium with AutoHotkey- Cross browser automation!

Code: Select all

#persistent
driver:= ComObjCreate("Selenium.CHROMEDriver") ;Chrome driver
driver.Get("https://www.google.com")
element := driver.FindElementById("lst-ib")
driver.Actions.ClickContext(element).Perform
by malcev
18 Oct 2017, 06:50
Forum: Ask For Help
Topic: Send wm_command to Ribbon menu
Replies: 0
Views: 423

Send wm_command to Ribbon menu

If I start to capture messages in MS Paint with ribbon menu in Win7 with Spy++ and click some menu buttons it does not show any wm_command messages. But If I run this script I will get interesting results - MS Paint does not processes this messages, but press menu button. You have to press F10 and w...
by malcev
02 Jul 2017, 11:29
Forum: Bug Reports
Topic: GetKeySC() incorrect values returned with "Escape" & "Esc" Topic is solved
Replies: 21
Views: 6184

Re: GetKeySC() incorrect values returned with "Escape" & "Esc" Topic is solved

Thank You! Now I understand.
Not problem at all.
Just was interesting about this circumstance.
by malcev
01 Jul 2017, 05:36
Forum: Bug Reports
Topic: GetKeySC() incorrect values returned with "Escape" & "Esc" Topic is solved
Replies: 21
Views: 6184

Re: GetKeySC() incorrect values returned with "Escape" & "Esc" Topic is solved

One more error found: msgbox % GetKeyName("sc45") ; I get Numlock but should be Pause. msgbox % Format("sc{:x}", GetKeySC("Pause")) ; Shows nothing And one more thing that I do not understand. I want to make hotkey NumpadHome using only VK and SC like this: NumpadHome::msgbox 1) If I make it like th...
by malcev
01 Jul 2017, 04:00
Forum: Bug Reports
Topic: GetKeySC() incorrect values returned with "Escape" & "Esc" Topic is solved
Replies: 21
Views: 6184

Re: GetKeySC() incorrect values returned with "Escape" & "Esc" Topic is solved

Code: Select all

msgbox % Format("sc{:x}", GetKeySC("PrintScreen")) ; I get 154, but should be 137.
msgbox % GetKeyName("sc137")  ; I get NumpadMult , but should be PrintScreen.

Go to advanced search