AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AutoHotkey.dll
Goto page Previous  1, 2, 3 ... 17, 18, 19 ... 34, 35, 36  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4653
Location: AHK Forum

PostPosted: Mon Jul 19, 2010 11:08 am    Post subject: Reply with quote

I will check on weekend, not sure what it is.
For the moment you'll need to use this
Code:
Result := AHKDLLObj.ahktextdll("MsgBox Hello")

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink


Last edited by HotKeyIt on Mon Jul 19, 2010 2:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
Guest_AutoHotkey_L
Guest





PostPosted: Mon Jul 19, 2010 1:03 pm    Post subject: Reply with quote

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 Smile
Back to top
HotKeyIt



Joined: 18 Jun 2008
Posts: 4653
Location: AHK Forum

PostPosted: Fri Jul 23, 2010 6:59 pm    Post subject: Reply with quote

Fixed calling DynaCall( object , ....)
_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4653
Location: AHK Forum

PostPosted: Fri Aug 06, 2010 12:00 am    Post subject: Reply with quote

I changed ahkgetvar accidentially in H20 so it was not possible to get var pointer, this is fixed now.
Code:
pVar:=getVar(var)
;for dll
dll.ahkgetvar("var",1)

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4653
Location: AHK Forum

PostPosted: Thu Aug 12, 2010 8:37 pm    Post subject: Reply with quote

Revision 22 wrote:
- Merged with AutoHotkey_L Revision 53 (COM, X64 support and more)
- new exported function ahkExec used to temporarily run some code, accepts also several lines of code
- ahktextdll will add #Pesistent when launched without parameters
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 Wink
Back to top
View user's profile Send private message
Rapte_Of_Suzaku



Joined: 29 Feb 2008
Posts: 900
Location: Vault 7

PostPosted: Fri Aug 13, 2010 8:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
HotKeyIt



Joined: 18 Jun 2008
Posts: 4653
Location: AHK Forum

PostPosted: Fri Aug 13, 2010 8:58 pm    Post subject: Reply with quote

You need to use FindFunc which is a build in function.

EDIT:
Just checked with AutoHotkey_L and it happens there as well I think it is because it is not compatible but I am not sure, you might want to post the question in LowLevel thread or AutoHotkey_L thread.
_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
Rapte_Of_Suzaku



Joined: 29 Feb 2008
Posts: 900
Location: Vault 7

PostPosted: Fri Aug 13, 2010 10:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
HotKeyIt



Joined: 18 Jun 2008
Posts: 4653
Location: AHK Forum

PostPosted: Fri Aug 13, 2010 11:26 pm    Post subject: Reply with quote

I should have checked as well Embarassed
_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4653
Location: AHK Forum

PostPosted: Sun Aug 15, 2010 9:23 am    Post subject: Reply with quote

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 Wink
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4653
Location: AHK Forum

PostPosted: Sat Aug 21, 2010 12:01 am    Post subject: Reply with quote

Merged AutoHotkey_L55
_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4653
Location: AHK Forum

PostPosted: Tue Aug 24, 2010 8:56 pm    Post subject: Reply with quote

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 Wink
Back to top
View user's profile Send private message
bool APIENTRY
Guest





PostPosted: Thu Aug 26, 2010 2:40 pm    Post subject: Reply with quote

does this dll wraps up ahk.exe in it
Back to top
HotKeyIt



Joined: 18 Jun 2008
Posts: 4653
Location: AHK Forum

PostPosted: Thu Aug 26, 2010 4:39 pm    Post subject: Reply with quote

bool APIENTRY wrote:
does this dll wraps up ahk.exe in it
What do you mean Question

EDIT:
AutoHotkey_H.dll and AutoHotkey_H.exe have all functionality of AutoHotkey_L. Additional functionality/changes like DynaCall, MemoryLoadLibrary, multi-thread support for Input... can be found in helpfile/online (see related section)
_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
cyberstorm



Joined: 15 Dec 2009
Posts: 12

PostPosted: Sat Aug 28, 2010 6:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... 17, 18, 19 ... 34, 35, 36  Next
Page 18 of 36

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group