Search found 1321 matches

by tmplinshi
Today, 07:26
Forum: Ask For Help
Topic: AccViewer.ahk cannot find control in BabelPad
Replies: 3
Views: 66

Re: AccViewer.ahk cannot find control in BabelPad

If you only downloaded AccViewer.ahk , or downloaded jeeswg's AccPack.zip but without modification, in both cases the AccViewer.ahk are using acc.ahk lib from your AHK lib, which might cause the problem due to different versions of acc.ahk . You can extract the source code of AccViewer.exe that you ...
by tmplinshi
Today, 00:32
Forum: Ask For Help
Topic: AccViewer.ahk cannot find control in BabelPad
Replies: 3
Views: 66

Re: AccViewer.ahk cannot find control in BabelPad

The AccViewer.ahk from the link you provide works fine for me, I even tried AutoHotkeyA32 / AutoHotkeyU32 / AutoHotkeyU64, all have no problems. And the compiled exe AccViewer.exe worked for you, so the most possible reason I can guess is the AHK version you have is outdated. Try update your AHK fir...
by tmplinshi
19 May 2019, 13:55
Forum: Scripts and Functions
Topic: WSO (WindowSystemObject)
Replies: 5
Views: 626

Re: WSO (WindowSystemObject)

Nice
by tmplinshi
17 May 2019, 13:20
Forum: Ask For Help
Topic: ControlSend with Slack
Replies: 7
Views: 162

Re: ControlSend with Slack

Here is another Selenium example using ObjRegisterActive together, so that other scripts can connect to existing Selenium COM object. Run below code first: #Persistent driver := ComObjCreate("Selenium.ChromeDriver") driver.setBinary("C:\Users\Administrator\AppData\Local\slack\slack.exe") driver.AddA...
by tmplinshi
17 May 2019, 12:38
Forum: Ask For Help
Topic: ControlSend with Slack
Replies: 7
Views: 162

Re: ControlSend with Slack

You're welcome. I'm happy to found out that Selenium are able to control Chrome based app. BTW, I'm confused about what you said. Why Selenium isn't an option for you to use with the slack app? My example code was exactly showing doing that. Inside the code you can see driver.setBinary("C:\Users\Adm...
by tmplinshi
16 May 2019, 23:15
Forum: Ask For Help
Topic: Opening CMD and pasting link
Replies: 7
Views: 194

Re: Opening CMD and pasting link

Code: Select all

^t::
#s::
run, %comspec% /k youtube-dl https://www.youtube.com/watch?v=IvUU8joBb1Q, c:\Users\jeah\Desktop\Youtube-DL\
Return
by tmplinshi
15 May 2019, 14:58
Forum: Ask For Help
Topic: ControlSend with Slack
Replies: 7
Views: 162

Re: ControlSend with Slack

I have tested with Chrome browser, the ControlSend didn't work when Chrome is not activated. Then I tesed slack webhooks , it worked and very simple. curl -k -X POST -H "Content-type: application/json" --data "{'text':'Hello world'}" Your_Webhook_URL I also tested with Selenium to launch slack, and ...
by tmplinshi
14 May 2019, 11:43
Forum: Ask For Help
Topic: I want to set the shortcut key for "translate this page" of Google translation plugin. How do I do it?
Replies: 5
Views: 141

Re: I want to set the shortcut key for "translate this page" of Google translation plugin. How do I do it?

ByeWind wrote:
14 May 2019, 07:53
In addition, How can I use AutoHotKey on my MAC?
You can't. AutoHotkey is for Windows only.
by tmplinshi
14 May 2019, 11:42
Forum: Ask For Help
Topic: I want to set the shortcut key for "translate this page" of Google translation plugin. How do I do it?
Replies: 5
Views: 141

Re: I want to set the shortcut key for "translate this page" of Google translation plugin. How do I do it?

The popup window of the Chrome extension is a different window than the main window of Chrome, their hwnds are different. So if you're using ControlClick but not aware of this fact you probably did it wrong. Example 1: F9::TranslateThisPage() TranslateThisPage() { if !WinExist("ahk_class Chrome_Widg...
by tmplinshi
11 May 2019, 13:00
Forum: Ask For Help
Topic: How can I prevent an application from loosing focus when I press a button on the GUI of my Autohotkey script? (Solved)
Replies: 3
Views: 93

Re: How can I prevent an application from loosing focus when I press a button on the GUI of my Autohotkey script?

WS_EX_NOACTIVATE (0x08000000) style is what you need.

Code: Select all

#SingleInstance, force

Gui, +E0x08000000
Gui, Add, Button, x10 y+10 gOur_First_Button, 

Gui, Show, w500 h500, My Hotkey button
return

Our_First_Button:
send Hello
	return

^x::ExitApp

---------------------------
by tmplinshi
06 Apr 2019, 11:22
Forum: Announcements
Topic: Upcoming Ahk2Exe changes
Replies: 134
Views: 68070

Re: Upcoming Ahk2Exe changes

I've been using it for years without any problems.
by tmplinshi
05 Apr 2019, 23:27
Forum: Ask For Help
Topic: Retrieve or activate window from tray
Replies: 1
Views: 105

Re: Retrieve or activate window from tray

Use TrayIcon_Button() to simulate mouse button click on a tray icon.
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=1229
by tmplinshi
05 Apr 2019, 22:53
Forum: Ask For Help
Topic: Code works with notepad, not worth Opera
Replies: 1
Views: 120

Re: Code works with notepad, not worth Opera

launcher.exe? Opera.exe?
Does launcher.exe launches Opera.exe? In that case you were getting the PID of launcher.exe, not Opera.exe. Checkout if the PID is correct.
by tmplinshi
05 Apr 2019, 04:29
Forum: Ask For Help
Topic: Qt based app, menu control in background?
Replies: 3
Views: 206

Re: Qt based app, menu control in background?

The popup menu is not belongs to the menu bar window in 2019.01-RC4. I figured out how to do it with ControlSend: ControlSend, Qt5QWindowIcon5, !f, ahk_exe openscad.exe ; Open 'File' Menu WinWait, ahk_class Qt5QWindowPopupDropShadowSaveBits ; Wait menu window to appear ControlSend,, x ; Open 'Export...
by tmplinshi
01 Apr 2019, 08:16
Forum: Ask For Help
Topic: Qt based app, menu control in background?
Replies: 3
Views: 206

Re: Qt based app, menu control in background?

acc solution: ControlGet, menubarWindow, hwnd,, Qt5QWindowIcon4, ahk_exe openscad.exe if !menubarWindow throw "menubarWindow not found!" oAcc := Acc_ObjectFromWindow(menubarWindow) menuFile := Acc_Children(Acc_Children(oAcc).1).1 ; menuLog := Acc_Children(Acc_Children(oAcc).2).1 ; MsgBox % menuFile....
by tmplinshi
26 Feb 2019, 07:33
Forum: Ask For Help
Topic: AHk2Exe.exe command line /bin?
Replies: 5
Views: 250

Re: AHk2Exe.exe command line /bin?

AHK2Exe.exe don't search the bin file in its folder but in the WorkingDir when the file path is omited. Read my previous reply again and you will find the answer. :beer:
by tmplinshi
26 Feb 2019, 00:02
Forum: Ask For Help
Topic: AHk2Exe.exe command line /bin?
Replies: 5
Views: 250

Re: AHk2Exe.exe command line /bin?

Ahk2Exe.png In the first example of the screenshot, the current directory is D:\Desktop , so you need to specify full path of the bin file. The second example is after changing the dir to Compiler folder. You can also specify WorkingDir parameter: RunWait, Ahk2Exe.exe /in "D:\Desktop\1.ahk" /bin "U...
by tmplinshi
13 Feb 2019, 00:34
Forum: Forum Issues
Topic: Where is the Chinese Forum ?
Replies: 53
Views: 4050

Re: Where is the Chinese Forum ?

Chinese is my first language. But I don't have much free time.
by tmplinshi
12 Feb 2019, 23:06
Forum: Forum Issues
Topic: Where is the Chinese Forum ?
Replies: 53
Views: 4050

Re: Where is the Chinese Forum ?

That was a bad idea to delete the Chinese forum. The contents in there are still usefull for Chinese users. I don't see any harmful posts so far, so I suggest at least make it read only.
by tmplinshi
10 Feb 2019, 12:23
Forum: Scripts and Functions
Topic: MinHook - API Hooking Library
Replies: 12
Views: 1860

Re: MinHook - API Hooking Library

Hi Galaxis, i'm not sure but see "Example 4" that i just added.

Go to advanced search