Search found 1602 matches

by tmplinshi
22 Aug 2020, 22:58
Forum: Ask for Help (v1)
Topic: how to create this text "REC" in a GUI
Replies: 16
Views: 4233

Re: how to create this text "REC" in a GUI

Gui, -Caption +AlwaysOnTop +Owner +LastFound +E0x20 ;0x20 = WS_EX_CLICKTHROUGH Gui, Margin, 8, 0 Gui, Color, 000000 GuiAddText("s75 , arial", "cWhite y-4" , "[ ]") GuiAddText("s150 Bold, arial", "cRed xp+32 y-49" , "•") GuiAddText("s60 Bold, arial", "cWhite x+1 yp+64", "REC") Gui, Show, NoActivate ...
by tmplinshi
22 Aug 2020, 01:13
Forum: Ask for Help (v1)
Topic: Custom progress bar Topic is solved
Replies: 14
Views: 4146

Re: Custom progress bar Topic is solved

although Margin is different from what I understand from the manual.. If you add more than 1 controls, you'll have a better understanding. Gui, Margin, 100, 50 Gui, Add, Button, , a Gui, Add, Button, x+10, b Gui, Add, Button, xm y+10, c Gui, Add, Button, x+10, d Gui, Show MoveGUI() function actuall...
by tmplinshi
21 Aug 2020, 08:01
Forum: Ask for Help (v1)
Topic: how to create this text "REC" in a GUI
Replies: 16
Views: 4233

Re: how to create this text in a GUI

Gui, -Caption +AlwaysOnTop +Owner +LastFound +E0x20 ;0x20 = WS_EX_CLICKTHROUGH Gui, Margin, 10, 0 Gui, Color, 000000 GuiAddText("s75 , arial", "cWhite y-5" , "[ ]") GuiAddText("s135 Bold, arial", "cRed xp+34 y-37" , "•") GuiAddText("s60 Bold, arial", "cWhite x+3 yp+52", "REC") Gui, Show, NoActivate...
by tmplinshi
19 Aug 2020, 20:54
Forum: Ask for Help (v1)
Topic: Custom progress bar Topic is solved
Replies: 14
Views: 4146

Re: Custom progress bar Topic is solved

Hello, try: Gui, -Caption +AlwaysOnTop +Owner Gui, Margin, 0, 0 Gui, Add, Progress, vProgress1 -Smooth w250 h18 Disabled Gui, Add, Text, xp wp hp BackgroundTrans gMoveGUI +HWNDhText Gui, Show GuiControl,, Progress1, 50 ChangeCursor(hText) Return MoveGUI() { ; WM_NCLBUTTONDOWN := 0xA1, HT_CAPTION := ...
by tmplinshi
10 Jul 2020, 20:34
Forum: 请求帮助
Topic: 求教一个简单的regex问题
Replies: 2
Views: 6086

Re: 求教一个简单的regex问题

Code: Select all

str =
(
# this is comment 1
# this is comment 2
# this is comment n
variable <- 123
)

RegExMatch(str, "`am)^(?!#).+$", match)
MsgBox, % match

RegExMatch(str, "`am)^[^#]+$", match)
MsgBox, % match
`a 识别任何形式的换行, 比如 `r, `n, `r`n
m 表示只匹配单行
by tmplinshi
26 Jun 2020, 02:30
Forum: 请求帮助
Topic: 请教如何实现Ctrl+C与Ctrl+C+C功能不同 Topic is solved
Replies: 3
Views: 71722

Re: 请教如何实现Ctrl+C与Ctrl+C+C功能不同 Topic is solved

试试这样: ~^c:: if IsDoubleClick() ToolTip(StrLen(Clipboard),,,, 2000) Return IsDoubleClick() { static doubleClickTime := DllCall("GetDoubleClickTime") KeyWait, % LTrim(A_ThisHotkey, "~") return (A_ThisHotKey = A_PriorHotKey) && (A_TimeSincePriorHotkey <= doubleClickTime) } ToolTip(Text := "", X := "", ...
by tmplinshi
10 Jun 2020, 07:44
Forum: 请求帮助
Topic: 右击托盘图标 Topic is solved
Replies: 6
Views: 69779

Re: 右击托盘图标 Topic is solved

你好,

你需要调用 TrayIcon_Button 这个函数, 而不是去修改它.

Code: Select all

#Include TrayIcon.ahk ; 或者完整路径 D:\Desktop\TrayIcon.ahk

TrayIcon_Button("Shadowsocks.exe", "R")
点击弹出的右键菜单可参考这个脚本:
https://github.com/tmplinshi/RegSsHotkey/blob/master/Lib/RegisterShadowsocksHotkey.ahk
by tmplinshi
08 Jun 2020, 05:23
Forum: Ask for Help (v1)
Topic: an HTTP GET or POST call to URL
Replies: 38
Views: 36014

Re: an HTTP GET or POST call to URL

BoBo The simple answer to the question How to generate access token using refresh token through google drive API? : If you are using web api then you should make a http POST call to URL : https://www.googleapis.com/oauth2/v4/token with following request body client_id: <YOUR_CLIENT_ID> client_secre...
by tmplinshi
07 Feb 2020, 07:57
Forum: Ask for Help (v1)
Topic: an HTTP GET or POST call to URL
Replies: 38
Views: 36014

Re: an HTTP GET or POST call to URL

Yes. There will be errors like timeout, etc..
by tmplinshi
06 Feb 2020, 23:23
Forum: Ask for Help (v1)
Topic: WinHttp post request
Replies: 7
Views: 5705

Re: WinHttp post request

There are mainly 3 types of POST data. application/x-www-form-urlencoded example body: name=admin&shoesize=12 application/json example body: {"name":"admin", "shoesize":12} multipart/form-data It's normally used for uploading binary file. CreateFormData is only used for this type. The body is a json...
by tmplinshi
06 Feb 2020, 23:11
Forum: Ask for Help (v1)
Topic: an HTTP GET or POST call to URL
Replies: 38
Views: 36014

Re: an HTTP GET or POST call to URL

You can make an HTTP GET or HTTP POST request, according to its API . GET request whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("GET", "https://se-1.cellsynt.net/sms.php?username=demo&password=test123&destination=0046700123123&originatortype=numeric&originator=46700456456&charset=UTF-8&...
by tmplinshi
21 Dec 2019, 00:48
Forum: Ask for Help (v1)
Topic: Revo Uninstaller commandline Topic is solved
Replies: 6
Views: 2359

Re: Revo Uninstaller commandline Topic is solved

I just installed "Revo Uninstaller Pro", executing RevoCmd.exe /? output this: RevoCmd.png There are no /export /all /html options. These options are coming from RevoUninPro.exe , not RevoCmd.exe . RunWait, "C:\Program Files\VS Revo Group\Revo Uninstaller Pro\RevoUninPro.exe" /export "d:\test.html" ...
by tmplinshi
20 Dec 2019, 12:23
Forum: Ask for Help (v1)
Topic: Revo Uninstaller commandline Topic is solved
Replies: 6
Views: 2359

Re: Revo Uninstaller commandline Topic is solved

Code: Select all

run,  cmd /k "C:\Program Files\VS Revo Group\Revo Uninstaller Pro\RevoCmd.exe" /export "c:\test.html" /all /html
See if there is any error messages in the cmd window.
by tmplinshi
17 Dec 2019, 16:02
Forum: Ask for Help (v1)
Topic: In your opinion, what's the best way to create a custom ListView?
Replies: 5
Views: 1132

Re: In your opinion, what's the best way to create a custom ListView?

An example using XCGUI
screenshot.png
screenshot.png (311.01 KiB) Viewed 671 times
Source
by tmplinshi
15 Dec 2019, 08:05
Forum: Ask for Help (v1)
Topic: Can you please share a working Binary to Base64 Encode function? Topic is solved
Replies: 4
Views: 2275

Re: Can you please share a working Binary to Base64 Encode function? Topic is solved

Works fine here. The following example will encode AutoHotkey.exe to base64, and then decode it to ahkCopy.exe . I've also tried a command line tool base64 , it can decode it back. b64 := Base64Enc_FromFile(A_AhkPath) Base64Dec_ToFile(b64, "ahkCopy.exe") Run, cmd /c echo MsgBox hello | ahkCopy.exe *...
by tmplinshi
11 Dec 2019, 01:11
Forum: Ask for Help (v1)
Topic: Video to Gif, Command Prompt Correct Syntax Topic is solved
Replies: 2
Views: 715

Re: Video to Gif, Command Prompt Correct Syntax Topic is solved

The pipe symbol is the syntax of the batch language, you need to run the command in cmd.exe.

Code: Select all

Runwait, cmd /c "%FFMPeg%" %gif_param%
by tmplinshi
10 Dec 2019, 08:18
Forum: Ask for Help (v1)
Topic: textbox inside a menu
Replies: 2
Views: 615

Re: textbox inside a menu

Like this? lv.png Gui, -Caption +ToolWindow Gui, Font, s12, Arial Gui, Margin, 0, 0 Gui, Add, Edit, w200 gInputChanged vkw, Gui, Add, ListView, y+-1 w200 h200 +HWNDhLV -Hdr AltSubmit gLvEvent, Items Loop, 10 { LV_Add("", "Item-" A_Index) } LV_ModifyCol(1, 179) lvCtrl_SetRowHeight(30) lvCtrl_SetWindo...
by tmplinshi
08 Dec 2019, 12:06
Forum: Ask for Help (v1)
Topic: convert InternetFileRead() to unicode Topic is solved
Replies: 24
Views: 6557

Re: convert InternetFileRead() to unicode Topic is solved

@teadrinker Not sure if you can just check the OS version.

Code: Select all

if (A_OSVersion ~= "10\.\d+\.\d+")
	headers := "Accept-Encoding: gzip, deflate, br"
else
	headers := "Accept-Encoding: gzip, deflate"
by tmplinshi
07 Dec 2019, 13:35
Forum: Ask for Help (v1)
Topic: convert InternetFileRead() to unicode Topic is solved
Replies: 24
Views: 6557

Re: convert InternetFileRead() to unicode Topic is solved

Works fine here (OS: Win10). I think that's because your system doesn't support decoding Brotli (br). MsgBox % GetContentEncoding("https://www.youtube.com/") ; br MsgBox % GetContentEncoding("https://www.autohotkey.com/boards/") ; gzip GetContentEncoding(Url) { whr := ComObjCreate("WinHttp.WinHttpRe...

Go to advanced search