Search found 1267 matches

by tmplinshi
19 Oct 2018, 16:28
Forum: Ask For Help
Topic: WinHttpRequest (An error occurred in the secure channel support)
Replies: 1
Views: 35

Re: WinHttpRequest (An error occurred in the secure channel support)

whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("POST", "https://tools.usps.com/tools/app/ziplookup/zipByAddress") whr.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded") whr.Send("companyName=&address1=1600+Pennsylvania+Ave+NW&address2=&city=DC&state=WA&zip=20500") Msg...
by tmplinshi
19 Oct 2018, 00:49
Forum: Forum Issues
Topic: Feedback: phpBB forum interface switch
Replies: 61
Views: 1412

Re: Feedback: phpBB forum interface switch

As of five minutes ago, tmplinshi's and swagfag's nice fixes no longer work for me in Chrome. The forum theme has changed from digi_darkblue2 to digi , so we have to update the From url of Resource Override to: https://autohotkey.com/boards/styles/digi/theme/* or: https://autohotkey.com/boards/styl...
by tmplinshi
18 Oct 2018, 09:42
Forum: Ask For Help
Topic: Google Search function that returns Url of first hit
Replies: 9
Views: 143

Re: Google Search function that returns Url of first hit

The gsearch function will return all results from first page, usually 10 results. So to open first 3 urls:

Code: Select all

for idx, this in gsearch("autohotkey")
	Run, % this.url
until (idx = 3)
by tmplinshi
17 Oct 2018, 11:05
Forum: Ask For Help
Topic: Google Search function that returns Url of first hit
Replies: 9
Views: 143

Re: Google Search function that returns Url of first hit

I added gsearch_getFirstUrl function to above post. This function will first attempt to get the url from "I'm Feeling Lucky" search, if failed then it returns the result from gsearch function.
by tmplinshi
17 Oct 2018, 10:16
Forum: Ask For Help
Topic: Google Search function that returns Url of first hit
Replies: 9
Views: 143

Re: Google Search function that returns Url of first hit

try this: /* result := gsearch("autohotkey") MsgBox, % result.MaxIndex() MsgBox, % result[1].title "`n" . result[1].url "`n" . result[1].description "`n" */ gsearch(keyword) { return gsearch.search(keyword) } gsearch_getFirstUrl(keyword) { static whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr...
by tmplinshi
16 Oct 2018, 07:19
Forum: Forum Issues
Topic: Feedback: phpBB forum interface switch
Replies: 61
Views: 1412

Re: Feedback: phpBB forum interface switch

You can temporary use the Chrome extension Resource Override to replace the theme. https://i.loli.net/2018/10/16/5bc5d60d24455.png Settings: Tab URL: https://autohotkey.com/boards/* From: https://autohotkey.com/boards/styles/digi/theme/* or https://autohotkey.com/boards/styles/**/theme/* To: https:/...
by tmplinshi
12 Oct 2018, 06:41
Forum: 请求帮助
Topic: 请问怎样获得某程序托盘右键菜单的状态?
Replies: 2
Views: 382

Re: 请问怎样获得某程序托盘右键菜单的状态?

使用 SetWinEventHook 避免菜单显示出来。 #NoEnv SetBatchLines -1 MsgBox % ss_isPacMode() ss_isPacMode() { global g_ss_isPacMode := "" ; EVENT_SYSTEM_MENUPOPUPSTART := 0x0006 hook := New WinEventHook(0x0006, 0x0006, "HookProc") TrayIcon_Button("Shadowsocks.exe", "R") ; 点击托盘图标右键 while (g_ss_isPacMode = "") Sleep,...
by tmplinshi
12 Oct 2018, 03:26
Forum: 请求帮助
Topic: 请问怎样获得某程序托盘右键菜单的状态?
Replies: 2
Views: 382

Re: 请问怎样获得某程序托盘右键菜单的状态?

方法1: 使用 acc.ahk MsgBox % ss_isPacMode() ss_isPacMode() { TrayIcon_Button("Shadowsocks.exe", "R") ; 点击托盘图标右键 WinWait, ahk_class #32768 ahk_exe Shadowsocks.exe,, 2 if ErrorLevel throw "没有找到菜单窗口" oAcc := Acc_ObjectFromWindow( WinExist() ) WinClose for i, child in Acc_Children(oAcc) { if ( child.accNam...
by tmplinshi
11 Oct 2018, 00:10
Forum: Ask For Help
Topic: how to display 20 progress bars Topic is solved
Replies: 3
Views: 182

Re: how to display 20 progress bars Topic is solved

Hi, the solutions to your questions can be easily found via Google search. Example keywords: 1. site:autohotkey.com gui titleless 3. site:autohotkey.com gui transparent 4. site:autohotkey.com GUI to be not clickeable - set a different spaces(gaps in Y axis) between each progress, You can use AutoGUI...
by tmplinshi
10 Oct 2018, 15:57
Forum: Scripts and Functions
Topic: Acc library (MSAA) and AccViewer download links
Replies: 19
Views: 8394

Re: Acc library (MSAA) and AccViewer download links

I made some changes to the AccViewer: Display all 'State' and its constant name/value Display constant name/value of 'Role' Changed the hotkey from "Ctrl+/" to "Ctrl+F12" Added 'HotTracking' checkbox Increased GUI Size https://gist.github.com/tmplinshi/0fcb8655c1402a3662ac048d0d974915 https://camo.g...
by tmplinshi
10 Oct 2018, 06:24
Forum: Ask For Help
Topic: Script to pin a tab in Firefox
Replies: 28
Views: 473

Re: Script to pin a tab in Firefox

Wow, thank you very much jeeswg! That's quite a useful info about the accState. @DutchPete Forget about previous scripts that using color matching, use this instead: #NoEnv SetBatchLines, -1 F1::Firefox.PinUnpin() class Firefox { PinUnpin() { oTabList := this.FindTabList() oTab := this.FindActiveTab...
by tmplinshi
10 Oct 2018, 01:02
Forum: Ask For Help
Topic: Script to pin a tab in Firefox
Replies: 28
Views: 473

Re: Script to pin a tab in Firefox

no problem :)
by tmplinshi
03 Oct 2018, 03:18
Forum: Ask For Help
Topic: Embedding AHK Functions in an Excel Add-in??
Replies: 3
Views: 81

Re: Embedding AHK Functions in an Excel Add-in??

Instead of a Excel Add-in, maybe you could.. Make a separate GUI window, with some buttons in it. When buttons clicked, it connects to the active excel window by ComObjActive("Excel.Application") , then do the stuffs you want to do. Use hotkeys. Embed MS Office document in GUI Create a GUI window, l...
by tmplinshi
01 Oct 2018, 08:46
Forum: Ask For Help
Topic: Re: Pasting to Excel not working
Replies: 1
Views: 64

Re: Pasting to Excel not working

Two choices: Wait WINWORD.EXE to be closed, then paste. Close WINWORD.EXE after paste. FilePath := "C:\Users\Me\Desktop\wordtable.docx" oDoc := ComObjGet(FilePath) oDoc.Range.FormattedText.Copy ;Copy from word document hwnd := oDoc.ActiveWindow.hwnd oDoc.Close(0) DetectHiddenWindows, On WinWaitClose...
by tmplinshi
01 Oct 2018, 01:58
Forum: 请求帮助
Topic: Re: 新人求助,AHK中VBA方法中的参数不能运行问题
Replies: 1
Views: 168

Re: 新人求助,AHK中VBA方法中的参数不能运行问题

调用 PasteSpecial 或其他任何方法需要加括号,然后参数要按顺序来。 wdPasteText 这样的常量要替换成对应的值。 参数顺序、常量值这些可以通过 Google 搜索。比如搜索 word PasteSpecial -> https://docs.microsoft.com/en-us/office/vba/api/word.selection.pastespecial 如果碰到有些常量没有在文档中列出,则可以这样搜索: wdExtend constant 另外碰到问题时可以先搜索论坛有没有对应的解决方案。比如在 Google 中搜索 site:autohotkey.com "P...
by tmplinshi
30 Sep 2018, 02:23
Forum: 教程资料
Topic: 网页自动化初级教程
Replies: 13
Views: 25828

Re: 网页自动化初级教程

可以打开啊
by tmplinshi
30 Sep 2018, 01:49
Forum: Ask For Help
Topic: How to get the full ACC path for control on cursor? Topic is solved
Replies: 2
Views: 97

Re: How to get the full ACC path for control on cursor? Topic is solved

The function GetAccPath and GetEnumIndex were extracted from AccViewer. #NoEnv #SingleInstance force SetBatchLines, -1 F12:: obj := GetInfoUnderCursor() msgbox % obj.path return GetInfoUnderCursor() { Acc := Acc_ObjectFromPoint(child) if !value := Acc.accValue(child) value := Acc.accName(child) accP...
by tmplinshi
28 Sep 2018, 07:18
Forum: Ask For Help
Topic: Script to pin a tab in Firefox
Replies: 28
Views: 473

Re: Script to pin a tab in Firefox

Thanks TheDewd, that worked. I didn't see the "top line" in the DutchPete's screenshot, so I thought it's not possible. I added more themes support: Default Light Dark Space Fantasy A Light in Space Firefox Quantum Nightly Pastel Gradient #NoEnv SetBatchLines, -1 F1::FF_PinUnpin() ; Tested on FireFo...

Go to advanced search