[TC Tool] TC Script Editor
Moderators: white, Hacker, petermad, Stefan2
Have another look at my post .
in the lines after the "PostMessage" command will set the searchpath to c:\ and go back to the search for field.
Of course you'll have to recompile the script. But if you want to modify the script I recommend to associate the AHK extension to Autohotkey. Thus you can run the script and test if it works without conpiling each and every time.
sheepdog
Code: Select all
send, {Tab} c:\+{Tab}
Of course you'll have to recompile the script. But if you want to modify the script I recommend to associate the AHK extension to Autohotkey. Thus you can run the script and test if it works without conpiling each and every time.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
Oh, sorry, I forgot that there is no PostMessage in AutoIt3. See please this thread: http://ghisler.ch/board/viewtopic.php?t=6891I mean how to call TC internal commanders in AutoIt? As like use PostMessage in AutoHotkey.
I switched to Linux, bye and thanks for all the fish!
Yeah! ThisSanskritFritz wrote:See please this thread: http://ghisler.ch/board/viewtopic.php?t=6891
Code: Select all
$hwnd = WinGetHandle("Total Commander")
DllCall("user32.dll", "int", "SendMessage", "hwnd", $hwnd , "int" , 1075 , "int", 690 )
But I found a strang thing. For example:
Code: Select all
$hwnd = WinGetHandle( "Total Commander" )
DllCall( "user32.dll", "int", "SendMessage", "hwnd", $hwnd , "int" , 1075 , "int", 1005 ) ; cm_MoveOnly
Send ( "{BS}" )
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
Yes, you have to wait for the dialog to appear with the WinWait or the WinWaitActive function.Did I miss something?
I switched to Linux, bye and thanks for all the fish!
Sorry, I still have trouble here. This is my script:SanskritFritz wrote:Yes, you have to wait for the dialog to appear with the WinWait or the WinWaitActive function.
Code: Select all
$hwnd = WinGetHandle( "Total Commander" )
DllCall( "user32.dll", "int", "SendMessage", "hwnd", $hwnd , "int" , 1075 , "int", 509 )
; cm_UnpackFiles
If WinWait( "Unpack files" ) Then
Send ( "{BS}" )
Send ( "{ALT down}" )
Send ( "s" )
Send ( "{ALT up}" )
Send ( "{ENTER}" )
Endif
What can I do to deal with this?
It looks like after this lines executed,
DllCall doesn't end itself and hold on itself there. So the following lines can't go on.
Is there a way to solve this problem?
Code: Select all
$hwnd = WinGetHandle( "Total Commander" )
DllCall( "user32.dll", "int", "SendMessage", "hwnd", $hwnd , "int" , 1075 , "int", 509 )
; cm_UnpackFiles
Is there a way to solve this problem?
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
But as you know, there is no PostMessage in AutoIt3.SanskritFritz wrote:2Raymond
You should try PostMessage instead. The difference is, that SendMessage waits for the result, PostMessage returns immediately without waiting. It is possible, that AI3 has problems with the synchronous SendMessage call.
Is there any other way?
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary