Search found 91 matches

by xuezhe
07 Oct 2017, 18:55
Forum: Ask for Help (v1)
Topic: Web Control
Replies: 0
Views: 419

Web Control

pwb := ComObjCreate("InternetExplorer.Application") pwb.Visible := 1 pwb.Navigate("http://www.123shipin.com/member.php?mod=register") while pwb.ReadyState <> 4 or pwb.busy sleep 10 document:=pwb.document document.getElementById("yohming").value:="username" it works well,but how to control the slide...
by xuezhe
07 Oct 2017, 18:28
Forum: Ask for Help
Topic: AHK_L V1 → AHK_H V2
Replies: 0
Views: 1371

AHK_L V1 → AHK_H V2

it‘s A very important function for me,please modify it .it wroks well in AHK_L.thx. /* ********************************** 验证码识别 v2.0 By:feiyue ********************************** 为了解决:http://www.123shipin.com/register.php http://zxxnlts2017x.zsd.px.teacher.com.cn/login/ 使用说明:先按F1选择验证码范围,然后F4识别,先自动生成字...
by xuezhe
07 Oct 2017, 05:37
Forum: Ask for Help
Topic: AHK_L V1 → AHK_H V2 Topic is solved
Replies: 2
Views: 2412

Re: AHK_L V1 → AHK_H V2 Topic is solved

thx very much.
by xuezhe
06 Oct 2017, 23:30
Forum: Ask for Help
Topic: AHK_L V1 → AHK_H V2 Topic is solved
Replies: 2
Views: 2412

AHK_L V1 → AHK_H V2 Topic is solved

The following functions work very well in AHK_L V1, but them work wrong in AHK_H V2, please Change them to AHK_H V2 CRC32 Msgbox % CRC32("test") ;返回d87f7e0c CRC32(string, encoding = "UTF-8") { chrlength := (encoding = "CP1200" || encoding = "UTF-16") ? 2 : 1 length := (StrPut(string, encoding) - 1) ...
by xuezhe
06 Oct 2017, 04:05
Forum: Ask for Help
Topic: how to change it to AHK_H V2 from AHK_L
Replies: 2
Views: 1710

how to change it to AHK_H V2 from AHK_L

test := RegExMatches("12_567", "\d+") Msgbox % test[1] "," test[2] ; --> 12,567 test := RegExMatches("12_567", "\d(\d+)", 1) ; 取得子匹配 1 的结果 Msgbox % test[1] "," test[2] ; --> 2,67 RegExMatches(ByRef Haystack, NeedleRegEx, SubPat:="") { arr := [], startPos := 1 while ( pos := RegExMatch(Haystack, Nee...
by xuezhe
05 Oct 2017, 04:30
Forum: Ask for Help (v1)
Topic: how to catch the cookie
Replies: 4
Views: 1818

Re: how to catch the cookie

你真是太厉害啦。非常感谢。
by xuezhe
25 Sep 2017, 09:32
Forum: Ask for Help (v1)
Topic: how to catch the cookie
Replies: 4
Views: 1818

Re: how to catch the cookie

thanks.
I want to set WebRequest.AllowAutoRedirect := false ,but it doesn't works.
by xuezhe
24 Sep 2017, 04:08
Forum: Ask for Help (v1)
Topic: how to catch the cookie
Replies: 4
Views: 1818

how to catch the cookie

#NoEnv #SingleInstance force url:="http://www.duxiu.com/loginhl.jsp?send=true&UserName=shr&PassWord=shr" WebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1") WebRequest.Open("GET",url) WebRequest.SetRequestHeader("Referer",url) WebRequest.SetRequestHeader("Accept-Language","zh-cn") WebRequest.S...
by xuezhe
20 Feb 2016, 01:05
Forum: Ask for Help (v1)
Topic: How to get the event of Edit of Notepad.
Replies: 0
Views: 604

How to get the event of Edit of Notepad.

WM_COMMAND:= 0x111 OnMessage(WM_COMMAND,"MsgHandler") MsgHandler(wParam, lParam, msg, hwnd) { msg:=WM_COMMAND ControlGet,hwnd, Hwnd,, Edit1, ahk_class Notepad EN_SETFOCUS := 0x100 ; http://msdn.microsoft.com/en-us/library/bb761685 EN_KILLFOCUS := 0x200 ;~ xn := NumGet(wParam, 0, "short") ;~ yn := N...
by xuezhe
13 Feb 2016, 06:16
Forum: Ask for Help (v1)
Topic: Count rows in a textfile
Replies: 22
Views: 6007

Re: Count rows in a textfile

Code: Select all

ControlGet,count,LineCount,,EditControl,WinTitle,WinText
Msgbox % count
by xuezhe
13 Feb 2016, 00:18
Forum: 教程资料
Topic: 字符串排序之应用
Replies: 1
Views: 17193

Re: 字符串排序之应用

好像排版出错啊。页码不对呢。 d:\1\0C73455F2E19ECE5E903095930199CE33yhiahzU~ahzU79~04~1,2,3,4,5,8,9.pdf d:\1\B9DF7166549AC8737AC402DC5F132D5B3yhiahzU~ahzU79~04~1-15.pdf d:\1\D3E0FF0E0DA73972F43A8DB89BD540153yhiahzU~ahzU79~04~116-165.pdf d:\1\72EF1017BB29B0302F7E57419E8999D83yhiahzU~ahzU79~04~16-65.pdf d:\1\E736B0D...
by xuezhe
10 Feb 2016, 09:56
Forum: 请求帮助
Topic: 请问不用sendinput怎么获取选中的文字?
Replies: 6
Views: 6847

Re: 请问不用sendinput怎么获取选中的文字?

ControlGet,string,Selected,,Edit1,ahk_class Notepad ;记事本编辑框里选择的文本赋予string

你要举个窗口的例子,这样我们好处理。也可以运行。
by xuezhe
10 Feb 2016, 02:31
Forum: Ask for Help (v1)
Topic: c# - PostMessage
Replies: 5
Views: 4113

Re: c# - PostMessage

jNizM wrote:commands/MouseClick.htm or commands/Click.htm do not work for it?
I wish it workes at the background
by xuezhe
10 Feb 2016, 02:25
Forum: Ask for Help (v1)
Topic: WM_LBUTTONDBLCLK
Replies: 2
Views: 1079

WM_LBUTTONDBLCLK

Code: Select all

WM_LBUTTONDBLCLK := 0x0203
 
MAKEPARAM(l, h)
        {
            return (l & 0xffff) | (h << 0x10)
        }
 
PostMessage,WM_LBUTTONDBLCLK  ,0,MAKEPARAM(9,6),,ahk_class IEFrame
it doesn't work .who help me ?
by xuezhe
10 Feb 2016, 02:24
Forum: Ask for Help (v1)
Topic: c# - PostMessage
Replies: 5
Views: 4113

Re: c# - PostMessage

Code: Select all

WM_LBUTTONDBLCLK := 0x0203

MAKEPARAM(l, h)
        {
            return (l & 0xffff) | (h << 0x10)
        }

PostMessage,WM_LBUTTONDBLCLK  ,0,MAKEPARAM(9,6),,ahk_class IEFrame
it doesn't work.who help me ?
by xuezhe
08 Feb 2016, 22:31
Forum: Ask for Help (v1)
Topic: how to get the word at the cursor position
Replies: 8
Views: 3980

Re: how to get the word at the cursor position

now,I make it to following: ControlGet,count,CurrentLine,,Edit1, ahk_class Notepad ControlGet,text,Line,% count,Edit1, ahk_class Notepad ControlGet,count,CurrentCol,,Edit1, ahk_class Notepad RegExMatch(SubStr(text,1,count-1),"([^,,\s\.\t]*$)",str) RegExMatch(SubStr(text,count),"^[^,,\s,\.\t]*",strin...
by xuezhe
08 Feb 2016, 20:51
Forum: Ask for Help (v1)
Topic: how to get the word at the cursor position
Replies: 8
Views: 3980

Re: how to get the word at the cursor position

@AlphaBravo thx.but it only gets the last word.
by xuezhe
08 Feb 2016, 20:45
Forum: Ask for Help (v1)
Topic: how to get the word at the cursor position
Replies: 8
Views: 3980

Re: how to get the word at the cursor position

@SifJar yeah,right.I want to design a gui for Grammar tips in Emeditor.

Go to advanced search