Search found 1293 matches

by tmplinshi
15 Jan 2019, 20:53
Forum: Ask For Help
Topic: WinMenuSelectItem and ControlSend not working with Cisco Webex Meetings
Replies: 19
Views: 278

Re: WinMenuSelectItem and ControlSend not working with Cisco Webex Meetings

run script as admin, and try..

Code: Select all

F12::ControlSend, ahk_parent ,^m, Cisco Webex Meetings
by tmplinshi
15 Jan 2019, 06:29
Forum: Ask For Help
Topic: Excel SaveAs (noob question)
Replies: 5
Views: 74

Re: Excel SaveAs (noob question)

Code: Select all

xlFound := ComObjCreate("Excel.Application")
; wfound := xlFound.ActiveSheet
wfound := xlFound.Workbooks.Add ; <-----
savePath := A_WorkingDir "\Found.xlsx"
wfound.ActiveSheet.Range("A1").Value := "dsffasdsadf"
wfound.SaveAs(Savepath)
wfound.Close()
by tmplinshi
12 Jan 2019, 22:07
Forum: Ask For Help
Topic: Is it possible to create a wrapper for uploading to CloudApp?
Replies: 4
Views: 140

Re: Is it possible to create a wrapper for uploading to CloudApp?

TXShooter wrote:
12 Jan 2019, 19:36
Do I need to provide the credentials enclosed in quotes when setting the API?
Yes.
api := New CloudApp("your email", "your password")
by tmplinshi
12 Jan 2019, 13:19
Forum: Ask For Help
Topic: Is it possible to create a wrapper for uploading to CloudApp?
Replies: 4
Views: 140

Re: Is it possible to create a wrapper for uploading to CloudApp?

Just wrote one :) CloudApp.ahk /* Requires: CreateFormData.ahk - https://gist.github.com/tmplinshi/8428a280bba58d25ef0b BinArr.ahk - https://gist.github.com/tmplinshi/a97d9a99b9aa5a65fd20 Jxon.ahk (by Coco) - https://www.autohotkey.com/boards/viewtopic.php?t=627 Supported methods: CreateBookmark(nam...
by tmplinshi
12 Jan 2019, 12:26
Forum: Scripts and Functions
Topic: CreateFormData - Create "multipart/form-data" for http post (Updated:2019-01-13)
Replies: 22
Views: 7814

Update on 1.30 (2019-01-13) - The file parameters are now placed at the end of the retData

Update on 1.30 (2019-01-13) - The file parameters are now placed at the end of the retData There was an api that requires the file parameter to be the last part of the body, so I made that changes to the script. I found it also helps HTTP Debugger to display the multipart body as plain text instead...
by tmplinshi
11 Jan 2019, 02:14
Forum: Scripts and Functions
Topic: WSO (WindowSystemObject)
Replies: 1
Views: 162

Re: WSO (WindowSystemObject)

Wow, this component can do so many things. Thanks for posting! wso := ComObjCreate("Scripting.WindowSystemObject") Form := Wso.CreateForm(0, 0, 300, 100) Form.CenterControl() Button := Form.CreateButton(10, 10, 75, 25, "Close") Button.OnClick := Func("ButtonClick") Form.Show() Wso.Run() ButtonClick(...
by tmplinshi
07 Jan 2019, 07:15
Forum: Ask For Help
Topic: How do I get the texts or souce of a webpage into a variable without writing to a file? Topic is solved
Replies: 15
Views: 335

Re: How do I get the texts or souce of a webpage into a variable without writing to a file? Topic is solved

Try whr.WaitForResponse() . I get another error though: ---------------------------------------------------------------------------------- Error: 0x80072EE7 - Source: WinHttp.WinHttpRequest Description: The server name or address could not be resolved ------------------------------------------------...
by tmplinshi
04 Jan 2019, 11:52
Forum: Scripts and Functions
Topic: Chrome Automation with TagUI
Replies: 13
Views: 869

Re: Chrome Automation with TagUI

Intersting. Thanks for posting. TagUI is a command line tool, no installation is needed, just download https://raw.githubusercontent.com/tebelorg/Tump/master/TagUI_Windows.zip and unzip it to anywhere. The usage is tagui flow_filename [options] To see the list of options, run tagui without parameter...
by tmplinshi
22 Dec 2018, 09:54
Forum: 请求帮助
Topic: 请问如何检测最后按下的键并执行相应操作? Topic is solved
Replies: 2
Views: 289

Re: 请问如何检测最后按下的键并执行相应操作? Topic is solved

有两个错误。 1. if 语法错误 AHK 中的 if 有两种写法。 第一种就是你代码中那样,这是 AHK 1.0.x 旧版本遗留下来的写法。 if A_priorkey != lbutton or A_priorkey != enter 但是这句代码并不是你以为的那样,它的意思其实是:如果 A_priorkey 不等于 lbutton or A_priorkey != enter 。可运行以下代码验证一下就知道了: s := "lbutton or s = enter" if s = lbutton or s = enter msgbox 是的,s 等于【lbutton or s = ent...
by tmplinshi
17 Dec 2018, 00:22
Forum: Scripts and Functions
Topic: AHK HTML Editor test (W.I.P.)
Replies: 20
Views: 856

Re: AHK HTML Editor test (W.I.P.)

Nice!

BTW, this also works:

Code: Select all

Gui, Add, Button, Default w80, Bold
Gui, Add, ActiveX, w980 h640 vWB, about:Bold Me
Gui, Show

doc := WB.Document
doc.DesignMode := "On"
return

ButtonBold:
	doc.execCommand("Bold")
return

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

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

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: 98
Views: 4342

Re: Fixing codeboxes

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

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

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: 98
Views: 4342

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

Go to advanced search