AutoHotkey Community

It is currently May 27th, 2012, 5:49 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 563 posts ]  Go to page Previous  1 ... 15, 16, 17, 18, 19, 20, 21 ... 38  Next
Author Message
 Post subject:
PostPosted: July 19th, 2010, 12:08 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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 July 19th, 2010, 3:26 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2010, 2:03 pm 
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 :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 23rd, 2010, 7:59 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Fixed calling DynaCall( object , ....)

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 6th, 2010, 1:00 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2010, 9:37 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 13th, 2010, 9:53 pm 
Offline

Joined: February 29th, 2008, 8:36 pm
Posts: 901
Location: Vault 7
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
.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 13th, 2010, 9:58 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 13th, 2010, 11:35 pm 
Offline

Joined: February 29th, 2008, 8:36 pm
Posts: 901
Location: Vault 7
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+.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 14th, 2010, 12:26 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
I should have checked as well :oops:

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 15th, 2010, 10:23 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 21st, 2010, 1:01 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Merged AutoHotkey_L55

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 24th, 2010, 9:56 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 26th, 2010, 3:40 pm 
does this dll wraps up ahk.exe in it


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 26th, 2010, 5:39 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
bool APIENTRY wrote:
does this dll wraps up ahk.exe in it
What do you mean :?:

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:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 28th, 2010, 7:57 pm 
Offline

Joined: December 15th, 2009, 1:48 pm
Posts: 12
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 563 posts ]  Go to page Previous  1 ... 15, 16, 17, 18, 19, 20, 21 ... 38  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group