Packing and scripting
Moderators: Hacker, petermad, Stefan2, white
- XPEHOPE3KA
- Power Member
- Posts: 854
- Joined: 2006-03-03, 18:23 UTC
- Location: Saint-Petersburg, Russia
I'm still playing with ahk, and I've got lots of questions to do, but I think this topic isn't perfect for that... Do you think I can post them here in this forum or I'd better go somewhere else (an ahk dedicated forum... but they don't know TC!)
Anyway, I have a question
I was trying to get the text of the gui element TMyPanel2 (at the very left of the command line, it shows the current folder)
I used the command
GuiControlGet, myvar,, TMyPanel2
to store it in a var (myvar) but it doesn't work... why? Maybe I should say something about ClassNN?
Anyway, I have a question
I was trying to get the text of the gui element TMyPanel2 (at the very left of the command line, it shows the current folder)
I used the command
GuiControlGet, myvar,, TMyPanel2
to store it in a var (myvar) but it doesn't work... why? Maybe I should say something about ClassNN?
snaggy,
HTH
Roman
You don't need to do anything in TC, AHK captures the hotkey before TC sees it.if TC has a default hotkey, for example CTRL + F9, that I'll never use and I'd like to remap to a ahk function, what should I do?
Code: Select all
$^F9::
DoSomething
Return
I currently don't have the time to check why your version isn't working, but to get the current dir I use the following code (from Automatic directory-specific configuration / actions):I was trying to get the text of the gui element TMyPanel2 (at the very left of the command line, it shows the current folder)
Code: Select all
#IfWinActive, ahk_class TTOTAL_CMD
$<#LShift::
WinGetText, Text, A
Loop, Parse, Text, `n
{
If A_Index = 3
{
StringTrimRight, Dir, A_LoopField, 2
Break
}
}
DoSomethingWithDir
Return
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.