Search found 1281 matches

by tmplinshi
Yesterday, 02:28
Forum: 请求帮助
Topic: 请问,ListView的单元格内容中有"`n"换行符,为什么输出时内容还是在一行显示?
Replies: 4
Views: 96

Re: 请问,ListView的单元格内容中有"`n"换行符,为什么输出时内容还是在一行显示?

可以这样:

Code: Select all

Gui, Add, ListView, w600 h300 Grid, col1
	lvCtrl_SetRowHeight(50)
	LV_Add("", "line1`nline2")
Gui, Show
Return

GuiClose:
ExitApp

lvCtrl_SetRowHeight(Height) {
	LV_SetImageList( DllCall( "ImageList_Create", Int,2, Int, Height, Int,0x18, Int,1, Int,1 ), 1 )
}
by tmplinshi
27 Nov 2018, 05:44
Forum: Ask For Help
Topic: disable right click menu on gui
Replies: 2
Views: 75

Re: disable right click menu on gui

gui, add, edit, h0 w0 gui, font, s10 gui +Border +lastfound mainmenuhighH := A_screenheight / 3 mainmenuhighW := A_screenwidth / 3 Gui, Add, ActiveX, x0 y0 w%mainmenuhighW% h%mainmenuhighH% vfeaturedoc, HtmlFile featuredoc.parentWindow.execScript("document.oncontextmenu = document.body.oncontextmen...
by tmplinshi
07 Nov 2018, 00:44
Forum: Forum Issues
Topic: Fixing codeboxes
Replies: 63
Views: 2649

Re: Fixing codeboxes

The prosilver theme has indentation.
by tmplinshi
07 Nov 2018, 00:39
Forum: Forum Issues
Topic: Fixing codeboxes
Replies: 63
Views: 2649

Re: Fixing codeboxes

Thanks, joedf. Now I can disable the Tampermonkey extension.

BTW, the codebox that inside a Spoiler still doesn't have a Expand/collapse. I don't remember if it was the same when the forum haven't updated, but I have this handled with checkChildCodebox function.
by tmplinshi
06 Nov 2018, 11:34
Forum: Forum Issues
Topic: Show/Hide [spoiler] tags not working
Replies: 8
Views: 360

Re: Show/Hide [spoiler] tags not working

Oh, I was using prosilver theme.

Fixed and updated to v0.4:
https://greasyfork.org/scripts/374036-ahk-forum-fix

I have changed it to:
var tagP = (boxes.parentNode.tagName.toLowerCase() == 'pre' ? boxes.parentNode.previousSibling : boxes.previousSibling);
by tmplinshi
06 Nov 2018, 02:59
Forum: Forum Issues
Topic: Fixing codeboxes
Replies: 63
Views: 2649

Re: Fixing codeboxes

Here is a quick fix to adding back the "Expand View", also fixed spoiler can't show/hide issue. Install Tampermonkey chrome extension Install this UserScript: https://greasyfork.org/scripts/374036-ahk-forum-fix The code of the userscript was modified from https://www.phpbbguru.net/community/viewtopi...
by tmplinshi
30 Oct 2018, 10:13
Forum: Ask For Help
Topic: Finding non-used color in a picture?
Replies: 4
Views: 129

Re: Finding non-used color in a picture?

I'd suggest using imagemagick.

http://www.imagemagick.org/discourse-se ... 05#p148114
Run, magick.exe "input.png" -bordercolor white -border 1 -fill none -draw "alpha 0,0 floodfill" -shave 1x1 "output.png"
by tmplinshi
30 Oct 2018, 03:11
Forum: Ask For Help
Topic: Current best practice for embedding video in GUI
Replies: 7
Views: 263

Re: Current best practice for embedding video in GUI

Example of embedding mpv.exe:
by tmplinshi
27 Oct 2018, 15:00
Forum: Ask For Help
Topic: How to extract URL from a button in YouTube or any other webpage in Google Chrome? Topic is solved
Replies: 6
Views: 181

Re: How to extract URL from a button in YouTube or any other webpage in Google Chrome? Topic is solved

"Click right and send e" is not that bad, you can backup and restore the clipboard. Here is a more complex code, but with fewer chance to see the popup menu. #NoEnv SetBatchLines -1 F1::MsgBox % Chrome_GetUrlUnderMouse() Chrome_GetUrlUnderMouse() { clipBackup := ClipboardAll Clipboard := "" MenuSend...
by tmplinshi
25 Oct 2018, 08:17
Forum: Ask For Help
Topic: Download file specified by in the contents of a remote file
Replies: 2
Views: 74

Re: Download file specified by in the contents of a remote file

1. Download text to a variable: https://autohotkey.com/docs/commands/URLDownloadToFile.htm#WHR 2. SetWorkingDir, % A_ScriptDir downloadFile("https://autohotkey.com/download/ahk.zip") ; -> AutoHotkey_1.1.30.00.zip downloadFile("http://nirsoft.net/utils/nircmd.zip", "D:\Downloads\") ; -> D:\Downloads\...
by tmplinshi
19 Oct 2018, 16:28
Forum: Ask For Help
Topic: WinHttpRequest (An error occurred in the secure channel support)
Replies: 3
Views: 143

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: 165
Views: 6205

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

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

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

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...

Go to advanced search