 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
|
| Back to top |
|
 |
Guest_AutoHotkey_L Guest
|
Posted: Mon Jul 19, 2010 1:03 pm Post subject: |
|
|
| HotKeyIt wrote: | I will check on weekend, not sure what it.
For the moment you'll need to use this | Code: | | Result := AHKDLLObj.ahktextdll("MsgBox Hello") |
|
Thanks for the advice, that seems to work.
I hope you have luck with your upcoming investigation  |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
Posted: Thu Aug 12, 2010 8:37 pm Post subject: |
|
|
| Code: | dll:=AhkdllObject(),dll.ahktextdll() ;will automatically add #Persistent
exe:=AhkExported()
dll.ahkExec("a=AutoHotKey") ;will temporarily execute given code
dll.ahkExec("StringTrimLeft,a,a,4`nStringTrimRight,a,a,3")
exe.ahkExec("MsgBox % dll.ahkgetvar.a") |
_________________ AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun  |
|
| Back to top |
|
 |
Rapte_Of_Suzaku
Joined: 29 Feb 2008 Posts: 900 Location: Vault 7
|
Posted: Fri Aug 13, 2010 8:53 pm Post subject: |
|
|
I just updated from 1.0.48.05.L51H17 and have found a very strange bug that seems to involve long scripts and LowLevel_init()
This script works:
| Code: | LowLevel_init()
<861 blank lines in between>
InputBox,a,,,,,,,,,,a |
but this script crashes:
| Code: | LowLevel_init()
<862 blank lines in between>
InputBox,a,,,,,,,,,,a |
but this script works:
| Code: | LowLevel_init()
<862 blank lines in between>
InputBox,a,,,,,,,,,100 |
and this script crashes:
| Code: | LowLevel_init()
<1000 blank lines in between>
InputBox,a,,,,,,,,,100 |
this script crashes:
| Code: | LowLevel_init()
<1006 blank lines in between>
x:=1 |
this script does not crash:
| Code: | LowLevel_init()
<1005 blank lines in between>
x:=1 |
Note that the first 2 scripts are setting a default string for the input box, while the 3rd is setting the timeout. Not that I have any clue why that should matter.
The LowLevel_init() call dies in __getFirstFunc(). I think the specific line it dies on is: | Code: | | if (NumGet(pArg+0,0,"uchar") != 0) ; pArg->type != ARG_TYPE_NORMAL | . |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
|
| Back to top |
|
 |
Rapte_Of_Suzaku
Joined: 29 Feb 2008 Posts: 900 Location: Vault 7
|
Posted: Fri Aug 13, 2010 10:35 pm Post subject: |
|
|
Thanks for the lead, I'll ask in the other thread. I'm trying to avoid using the built-in versions because it makes it harder to support multiple builds... but I have some workarounds I can try.
EDIT:
Oops, the latest LowLevel.ahk works fine. My fault for not checking on that earlier. It has a specific fix for L53+. |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
Posted: Sun Aug 15, 2010 9:23 am Post subject: |
|
|
| Update H23 wrote: | - DllCall will now always search for W and A functions first, this is due to some functions do not have A suffix e.g.
Process32First and Process32FirstW
- when empty string is passed to ahkdll function, it will run in text mode same as ahktextdll so it will run
"#Persistent".
- ahkLabel second parameter is called nowait now so when 0 (default) AutoHotkey will wait for code to finish execution,
because using PostMessage times out often when CPU is under load. |
EDIT:
Merged AutoHotkey_L54 _________________ AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun  |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
Posted: Tue Aug 24, 2010 8:56 pm Post subject: |
|
|
| Update H24 wrote: | | Changed Input to append variable when it is changed while Input in progress | Live Input example | Code: | dll:=AhkDllObject()
GlobalVarsScript("Input",1024)
dll.ahktextdll(GlobalVarsScript() "Input,Input,,{Escape}`nDllCall(A_AhkPath ""\ahkExec"",""Str"",""ExitApp"")")
SetTimer,Update,1000
Loop {
ToolTip % Input
Sleep, 50
}
Update:
Input:=A_Hour ":" A_Min ":" A_Sec
Return |
_________________ AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun  |
|
| Back to top |
|
 |
bool APIENTRY Guest
|
Posted: Thu Aug 26, 2010 2:40 pm Post subject: |
|
|
| does this dll wraps up ahk.exe in it |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4653 Location: AHK Forum
|
|
| Back to top |
|
 |
cyberstorm
Joined: 15 Dec 2009 Posts: 12
|
Posted: Sat Aug 28, 2010 6:57 pm Post subject: |
|
|
Bug:
| simple script for tests wrote: | text =
(
text1
/*
some text
in comments
tags
*/
text2
)
MsgBox,% text |
As you can see, when MsgBox "alert" text -- '*/' disappears
p.s.
this bug in Autohotkey_L and Autohotkey_H |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|