Skip to content

Commit 64bf319

Browse files
committed
version 5
1 parent bf22731 commit 64bf319

7 files changed

+51
-12
lines changed

ahkmingw_win.cbp

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
<Add library="libversion.a" />
2626
<Add library="libws2_32.a" />
2727
<Add library="libuuid.a" />
28-
<Add library="GdiPlus.lib" />
28+
<Add library="GdiPlus" />
2929
<Add directory="lib" />
30+
<Add directory="C:\user\CodeBlocks\MinGW\lib" />
3031
</Linker>
3132
</Target>
3233
<Target title="Release">

ahkmingw_win.depend

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
1252477430 "
4545

46-
1252041773 l:\source\ahkmingw\defines.h
46+
1253396502 l:\source\ahkmingw\defines.h
4747
"stdafx.h"
4848
<pshpack1.h>
4949
<pshpack4.h>
@@ -146,7 +146,7 @@
146146
"application.h"
147147
"util.h"
148148

149-
1253340158 source:l:\source\ahkmingw\exports.cpp
149+
1253394324 source:l:\source\ahkmingw\exports.cpp
150150
"stdafx.h"
151151
"globaldata.h"
152152
"application.h"
@@ -174,7 +174,7 @@
174174
"globaldata.h"
175175
"window.h"
176176

177-
1251585310 source:l:\source\ahkmingw\keyboard_mouse.cpp
177+
1253394324 source:l:\source\ahkmingw\keyboard_mouse.cpp
178178
"stdafx.h"
179179
"keyboard_mouse.h"
180180
"globaldata.h"
@@ -322,7 +322,7 @@
322322
"resource.h"
323323
<winresrc.h>
324324

325-
1252485585 source:l:\source\ahkmingw\script.cpp
325+
1253396817 source:l:\source\ahkmingw\script.cpp
326326
"stdafx.h"
327327
"script.h"
328328
"globaldata.h"
@@ -497,7 +497,7 @@
497497
"var.h"
498498
"globaldata.h"
499499

500-
1253337172 source:l:\source\ahkmingw\window.cpp
500+
1253394325 source:l:\source\ahkmingw\window.cpp
501501
"stdafx.h"
502502
"window.h"
503503
"util.h"

ahkmingw_win.layout

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
22
<CodeBlocks_layout_file>
3-
<ActiveTarget name="DebugDll" />
3+
<ActiveTarget name="Debug" />
44
<File name="AutoHotkey.cpp" open="0" top="0" tabpos="1">
55
<Cursor position="0" topLine="22" />
66
</File>
7-
<File name="AutoHotkeyx.cpp" open="1" top="1" tabpos="1">
7+
<File name="AutoHotkeyx.cpp" open="1" top="0" tabpos="1">
88
<Cursor position="13732" topLine="373" />
99
</File>
1010
<File name="application.cpp" open="0" top="0" tabpos="0">
@@ -13,6 +13,9 @@
1313
<File name="application.h" open="0" top="0" tabpos="0">
1414
<Cursor position="6765" topLine="116" />
1515
</File>
16+
<File name="defines.h" open="1" top="0" tabpos="2">
17+
<Cursor position="15316" topLine="235" />
18+
</File>
1619
<File name="exports.cpp" open="0" top="0" tabpos="1">
1720
<Cursor position="2089" topLine="46" />
1821
</File>
@@ -34,8 +37,8 @@
3437
<File name="keyboard_mouse.h" open="0" top="0" tabpos="0">
3538
<Cursor position="10657" topLine="231" />
3639
</File>
37-
<File name="script.cpp" open="0" top="0" tabpos="2">
38-
<Cursor position="541098" topLine="10839" />
40+
<File name="script.cpp" open="1" top="1" tabpos="3">
41+
<Cursor position="541199" topLine="10839" />
3942
</File>
4043
<File name="script.h" open="0" top="0" tabpos="0">
4144
<Cursor position="119762" topLine="2325" />

bin/ahkmingwhost.ahk

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ahkdll := DllCall("LoadLibrary", "str", A_ScriptDir . "\ahkmingw.dll")
2+
msgbox % "loading dll" . ErrorLevel
3+
result := DllCall(A_ScriptDir . "\ahkmingw.dll\ahkdll", "str", "send.ahk", "str"
4+
, "", "str", "", "cdecl")
5+
return
6+
7+
q::ExitApp
8+

bin/send.ahk

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
; #InstallKeybdHook
2+
; #UseHook
3+
; SendMode Input
4+
5+
#IfWinActive emacs
6+
a::
7+
msgbox test
8+
return
9+
10+
#IfWinActive
11+
12+
F4::
13+
sendevent, a
14+
return
15+
16+
17+
F5::
18+
send, a
19+
return
20+
21+
F6::
22+
sendplay, a
23+
return
24+
25+
26+

defines.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ GNU General Public License for more details.
3333
#endif
3434

3535
#define NAME_P "AutoHotkey"
36-
#define NAME_VERSION "1.0.47.06MINGW-0.3"
36+
#define NAME_VERSION "1.0.47.06MINGW-0.5"
3737
#define NAME_PV NAME_P " v" NAME_VERSION
3838

3939
// Window class names: Changing these may result in new versions not being able to detect any old instances

script.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -10849,7 +10849,8 @@ __forceinline ResultType Line::Perform() // __forceinline() currently boosts per
1084910849
SendKeys(ARG1, false, SM_PLAY);
1085010850
return OK;
1085110851
case ACT_SENDEVENT:
10852-
SendKeys(ARG1, false, SM_EVENT);
10852+
// SendKeys(ARG1, false, SM_EVENT);
10853+
SendKeys(ARG1, false, SM_EVENT, 0, 1); // ahkx N11 todo: move to BIF, put sendevent as it was
1085310854
return OK;
1085410855

1085510856
case ACT_CLICK:

0 commit comments

Comments
 (0)