Search found 91 matches

by xuezhe
17 Oct 2017, 22:09
Forum: Ask for Help
Topic: AHK_L V1 → AHK_H V2
Replies: 8
Views: 3616

Re: AHK_L V1 → AHK_H V2

thx.
by xuezhe
17 Oct 2017, 00:24
Forum: Ask for Help
Topic: AHK_L V1 → AHK_H V2
Replies: 8
Views: 3616

AHK_L V1 → AHK_H V2

I try to change it from AHK_L v1 to AHK_H v2 .some error happens.Could you help me to complete this.thx. https://github.com/Drugoy/Autohotkey-scripts-.ahk/blob/master/Libraries/Acc.ahk the fllowing ahk is also not work in AHK_H V2 ,but works well in AHk_L If ConnectedToInternet() Msgbox "online" els...
by xuezhe
14 Oct 2017, 21:03
Forum: Ask for Help (v1)
Topic: how to get the message of notepad.exe
Replies: 5
Views: 1263

Re: how to get the message of notepad.exe

teadrinker wrote:Yes, this rule doesn't work for WH_KEYBOARD_LL and WH_MOUSE_LL.
ahk_h v2 ,it contains a autohotkey.dll.Can it get the message of Notepad.exe.


the following ahk can work ?
https://autohotkey.com/boards/viewtopic.php?f=6&t=830
by xuezhe
14 Oct 2017, 20:54
Forum: Ask for Help (v1)
Topic: how to get the message of notepad.exe
Replies: 5
Views: 1263

Re: how to get the message of notepad.exe

but the following ahk can work. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #Persistent SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. SetFormat...
by xuezhe
14 Oct 2017, 20:29
Forum: 请求帮助
Topic: 求助 mouseclick 失效 Topic is solved
Replies: 3
Views: 9247

Re: 求助 mouseclick 失效 Topic is solved

这软件不是干坏事用的吧。如果是干坏事就算了。防止骚扰电话。
by xuezhe
14 Oct 2017, 20:06
Forum: Ask for Help (v1)
Topic: how to get the message of notepad.exe
Replies: 5
Views: 1263

how to get the message of notepad.exe

hwnd:=ProcessExist("Notepad.exe") ;if exist,return ahk_pid or return 0 hwnd:=format("0x{:X}",hwnd) WH_GETMESSAGE := 3 hooker:=DllCall("SetWindowsHookEx", "int",WH_GETMESSAGE, "Uint", RegisterCallback("Navigate", "Fast"), "Uint", DllCall("GetModuleHandle", "Uint", 0), "Uint",hwnd) Return Navigate(nC...
by xuezhe
13 Oct 2017, 08:57
Forum: Ask for Help (v1)
Topic: the code of message
Replies: 3
Views: 848

Re: the code of message

thx.
by xuezhe
13 Oct 2017, 08:30
Forum: Ask for Help (v1)
Topic: the code of message
Replies: 3
Views: 848

the code of message

https://msdn.microsoft.com/en-us/library/bb761637(v=vs.85).aspx I couldn't find the code of message from the page. EN_SETFOCUS := 0x100 EN_KILLFOCUS := 0x200 EN_CHANGE:= LBN_DBLCLK LBN_ERRSPACE LBN_KILLFOCUS LBN_SELCANCEL LBN_SELCHANGE LBN_SETFOCUS BN_CLICKED BN_DISABLE BN_DOUBLECLICKED BN_HILITE BN...
by xuezhe
11 Oct 2017, 19:07
Forum: Ask for Help (v1)
Topic: problem of Shell.Explorer
Replies: 3
Views: 798

Re: problem of Shell.Explorer

thx. the problem has been solved. #SingleInstance force #NoTrayIcon #NoEnv ;#Warn ComObjError(false) ;关闭对象错误提示 #SingleInstance Force SetWorkingDir %A_ScriptDir% global web Gui Add, ActiveX, x24 y96 w640 h328 vweb, Shell.Explorer web.Silent := true ComObjConnect(web, web_events) ; 连接WB事件到WB_events类对象...
by xuezhe
11 Oct 2017, 08:23
Forum: Ask for Help (v1)
Topic: problem of Shell.Explorer
Replies: 3
Views: 798

problem of Shell.Explorer

#SingleInstance Force SetWorkingDir %A_ScriptDir% Gui Add, ActiveX, x24 y96 w640 h328 vweb, Shell.Explorer Gui Add, Edit, x48 y32 w514 h21 vedit1, Edit Gui Add, Button, x584 y32 w75 h23 gclick, > Gui Show, w698 h487, Window Return GuiEscape: GuiClose: ExitApp click: web.Navigate("http://mail.126.co...
by xuezhe
10 Oct 2017, 03:47
Forum: Ask for Help
Topic: how to use the function of the main thread in thread1
Replies: 7
Views: 3082

Re: how to use the function of the main thread in thread1

Yes, main exe has no variable var1: var1:="this is a test" thread:=AhkThread(" ( Sleep 500 exe:=AhkExported() exe.ahkFunction("test",var,var1) MsgBox exe.ahkgetvar("var1") ;retun null )") thread.ahkassign("var","2") While thread.ahkReady() Sleep 100 test(var,ByRef var1) { MsgBox var var1:=var*3 Msg...
by xuezhe
09 Oct 2017, 20:34
Forum: Ask for Help
Topic: how to use the function of the main thread in thread1
Replies: 7
Views: 3082

Re: how to use the function of the main thread in thread1

in ahk_h v1 you will need exe.ahkFunction(""test"",var """") thread:=AhkThread(" ( sleep 5000 test:= var*3 MsgBox test exe:=AhkExported() exe.ahkFunction("test",var "") )") thread.ahkassign("var","2") While(thread.ahkgetvar("test") =="") { Sleep 1000 } MsgBox thread.ahkgetvar("test") test(var) { Re...
by xuezhe
09 Oct 2017, 18:57
Forum: Ask for Help
Topic: how to use the function of the main thread in thread1
Replies: 7
Views: 3082

Re: how to use the function of the main thread in thread1

thx. it works well in ahk_h v2.
by xuezhe
09 Oct 2017, 18:54
Forum: Ask for Help (v1)
Topic: how to control the slider of HTML document
Replies: 8
Views: 1415

Re: how to control the slider of HTML document

IE9 For XP is no exist.Could you to make your ahk support in xp?
by xuezhe
08 Oct 2017, 19:21
Forum: Ask for Help
Topic: how to use the function of the main thread in thread1
Replies: 7
Views: 3082

how to use the function of the main thread in thread1

Code: Select all


thread:=AhkThread("
(
sleep 5000 
test:= var*3
MsgBox test
test(var)
)")
thread.ahkassign("var","2") 
While(thread.ahkgetvar("test") =="")
{
   Sleep 1000
}
MsgBox thread.ahkgetvar("test") 

test(var)
{
Return 1
}

error
noexistent function
by xuezhe
08 Oct 2017, 04:12
Forum: Ask for Help (v1)
Topic: how to control the slider of HTML document
Replies: 8
Views: 1415

Re: how to control the slider of HTML document

thx,but it doesn't work.
newscreen779718.jpg
newscreen779718.jpg (43.48 KiB) Viewed 1067 times

Go to advanced search