| Author |
Message |
Topic: debugging w/ AutoHotkey_L, DBGp, and Notepad++ |
Stanley Krute
Replies: 2
Views: 174
|
Forum: Ask for Help Posted: Mon Jan 04, 2010 8:42 pm Subject: debugging w/ AutoHotkey_L, DBGp, and Notepad++ |
There's a step I missed when writing the instructions:
Go to Plugins, DBGp, Config... and setup file mapping. If you will be running Notepad++ and AutoHotkey on the same system (i.e. not debugging ... |
Topic: debugging w/ AutoHotkey_L, DBGp, and Notepad++ |
Stanley Krute
Replies: 2
Views: 174
|
Forum: Ask for Help Posted: Mon Jan 04, 2010 3:01 am Subject: debugging w/ AutoHotkey_L, DBGp, and Notepad++ |
Howdy
I followed these instructions to set this up:
Usage:
* Launch Notepad++.
* Show the debugger pane via the toolbar or Plugins, DBGp, Debugger.
* Open the script file to be ... |
Topic: appending a string to GUI Edit control -- newline issue |
Stanley Krute
Replies: 11
Views: 392
|
Forum: Ask for Help Posted: Mon Nov 23, 2009 7:20 am Subject: appending a string to GUI Edit control -- newline issue |
Oh I've had fun today exploring this.
One path ate up a bunch of time, ultimately wasn't optimal, but taught me a lot. I implemented a general stack functionality. Then, if I append a string to my ... |
Topic: appending a string to GUI Edit control -- newline issue |
Stanley Krute
Replies: 11
Views: 392
|
Forum: Ask for Help Posted: Mon Nov 23, 2009 12:58 am Subject: appending a string to GUI Edit control -- newline issue |
I've always appended text this way; but the annoying thing is that this moves the cursor to the beginning of the control, so EditPaste has it beat in that respect too.string1 = line1`nline2`nline3`n ... |
Topic: appending a string to GUI Edit control -- newline issue |
Stanley Krute
Replies: 11
Views: 392
|
Forum: Ask for Help Posted: Sun Nov 22, 2009 6:01 pm Subject: appending a string to GUI Edit control -- newline issue |
When working with AHK GUI's Inside your own code.. You really should not use 'Control'
Could you or someone else elaborate on this ? e.g., why this really should not be done ??
thx
== noob s ... |
Topic: appending a string to GUI Edit control -- newline issue |
Stanley Krute
Replies: 11
Views: 392
|
Forum: Ask for Help Posted: Sun Nov 22, 2009 5:59 pm Subject: appending a string to GUI Edit control -- newline issue |
It works for me.string = line1`nline2`nline3`nline4`nline5
StringReplace, string, string, `n, `r`n, All
Gui, Add, Edit, r10 w200
Gui, Show
Sleep,1500
Control, EditPaste, %string%, Edit1, A
... |
Topic: appending a string to GUI Edit control -- newline issue |
Stanley Krute
Replies: 11
Views: 392
|
Forum: Ask for Help Posted: Sun Nov 22, 2009 4:46 pm Subject: Re: appending a string to GUI Edit control -- newline issue |
GuiControl does not have an EditPaste subcommand. I'm about to put it on the Wish List.
That would solve this particular issue quite nicely ! |
Topic: appending a string to GUI Edit control -- newline issue |
Stanley Krute
Replies: 11
Views: 392
|
Forum: Ask for Help Posted: Sun Nov 22, 2009 3:15 am Subject: appending a string to GUI Edit control -- newline issue |
I want to append a string containing newline chars (`n) to an AHK GUI Edit control. I want each of those chars to trigger a new line.
If I write a string using this code
Control, EditPaste, %som ... |
Topic: moving insertion cursor in GUI edit control |
Stanley Krute
Replies: 3
Views: 124
|
Forum: Ask for Help Posted: Sat Nov 21, 2009 11:11 pm Subject: moving insertion cursor in GUI edit control |
The simplest way is to just send (or ControlSend to be more reliable) keys. You can use the arrows to move one character at a time, and also the {Home}, {PgUp}, {PgDn}, and {End} keys.
Aha !! That ... |
Topic: moving insertion cursor in GUI edit control |
Stanley Krute
Replies: 3
Views: 124
|
Forum: Ask for Help Posted: Sat Nov 21, 2009 9:26 pm Subject: moving insertion cursor in GUI edit control |
I have an Edit control in a GUI.
I want to move the insertion cursor around in it.
Specifically, right now, I'd like to at least be able to move it to the end (bottom) of the Edit control's tex ... |
Topic: sweet&simple debugging message templates |
Stanley Krute
Replies: 5
Views: 502
|
Forum: Scripts & Functions Posted: Sat Nov 21, 2009 9:02 pm Subject: sweet&simple debugging message templates |
Here's a variant of the above, but this template's for multiple vars:
if 0 ; set to 1 to debug
{
scratch := ""
scratch := scratch . "Put_Some_Var_Name_Here& ... |
Topic: sweet&simple debugging message templates |
Stanley Krute
Replies: 5
Views: 502
|
Forum: Scripts & Functions Posted: Sat Nov 21, 2009 7:10 pm Subject: sweet&simple debugging message templates |
Here's one of my favorite sweet&simple debugging message templates:
; MsgBox % "[debugging] [line " . A_LineNumber . "]`n`n" . "Put_Some_Var_Name_Here& ... |
Topic: executing a complex command string from a script |
Stanley Krute
Replies: 7
Views: 248
|
Forum: Ask for Help Posted: Fri Nov 20, 2009 1:51 am Subject: executing a complex command string from a script |
Another alternative, if you need you can make a .bat file and then just run it.
if (! FileExist("file.bat")) {
fileappend,
(
echo Hey i ran! See me Run!
cmd ... |
Topic: executing a complex command string from a script |
Stanley Krute
Replies: 7
Views: 248
|
Forum: Ask for Help Posted: Thu Nov 19, 2009 6:13 pm Subject: executing a complex command string from a script |
One thing I would do is use
"ControlSend / ControlSendRaw" instead
of Send (see AHK help for syntax)
This will allow you to send into a window in the background, so your
sent keys wi ... |
Topic: executing a complex command string from a script |
Stanley Krute
Replies: 7
Views: 248
|
Forum: Ask for Help Posted: Thu Nov 19, 2009 9:36 am Subject: executing a complex command string from a script |
Hi
I have a complex run command. The program is named foogoo. The parameter string is long and twisted. Here's the full thing:
foogoo C: "L:\aaa documents by DoxMonger\Cee on Stan-T ... |
| |