| Author |
Message |
Forum: Support Topic: Adding an return/Enter |
| stewcam |
|
Posted: March 22nd, 2010, 7:23 am
|
|
Replies: 5 Views: 539
|
| This topic is old - this post is just in case any other lost soul is struggling for a solution. I have been trying to send text with line breaks to Windows Notepad. Using `r`n usually works but it is not a reliable solution. In the end the only foolproof method I found is to create a temporary text ... |
|
 |
Forum: Suggestions Topic: Bug with ControlGet and application using windowsforms? |
| stewcam |
|
Posted: November 30th, 2008, 8:29 am
|
|
Replies: 9 Views: 2530
|
I'm not familiar with your app, but the following might work:
1. Use MouseClick to focus the checkbox control
2. SendInput Down and Up keys to move to the desired setting
3. SendInput Tab to toggle the existing setting
4. SendInput Enter to finish |
|
 |
Forum: Support Topic: Browse a listbox with arrow keys |
| stewcam |
|
Posted: June 9th, 2008, 12:23 am
|
|
Replies: 8 Views: 1290
|
| Thanks very much, jaco0646. With your example, I have been able to improved and shorten my listbox code: GuiTitle=Test listbox #SingleInstance ignore #NoEnv #IfWinActive ahk_class AutoHotkeyGUI Gui, Add, ListBox, Choose2 R9 W100 vMyVar gMyVar, 1|2|3 Gui, -MinimizeBox Gui, Show,, %GuiTitle% Return En... |
|
 |
Forum: Support Topic: Browse a listbox with arrow keys |
| stewcam |
|
Posted: June 8th, 2008, 2:00 pm
|
|
Replies: 8 Views: 1290
|
| OK, in the end I have come up with some code that works and allows me to: 1. Browse the listbox with arrow keys 2. Select items using the enter key 3. Select items by number 4. Select items by mouse doubleclick If anyone has any refinements to the code below please let me know. GuiTitle=Test listbox... |
|
 |
Forum: Support Topic: Browse a listbox with arrow keys |
| stewcam |
|
Posted: May 25th, 2008, 2:17 am
|
|
Replies: 8 Views: 1290
|
| Thanks, joebodo, I see what you are driving at but I can't seem to get it to work with my listbox. Can anyone help with a more specific example? |
|
 |
Forum: Support Topic: Browse a listbox with arrow keys |
| stewcam |
|
Posted: May 24th, 2008, 11:45 pm
|
|
Replies: 8 Views: 1290
|
| Thanks for your replies. I had tried using A_GuiEvent but I found it also disables listbox selection by letter (e.g., F for First and S for Second). Can you suggest a way in which I could browse using Up and Down while still being able to select listbox items by letter? I suppose hotkeys could be us... |
|
 |
Forum: Support Topic: Browse a listbox with arrow keys |
| stewcam |
|
Posted: May 24th, 2008, 11:28 am
|
|
Replies: 8 Views: 1290
|
| If I have the listbox shown below, how can I adapt the code so as to enable me to browse the listbox items using the Up and Down arrow keys without triggering any action? Gui, Add, ListBox, vProfile gAddProfile AltSubmit, First|Second Gui, Show Return GuiClose: ExitApp AddProfile: Gui, Submit Gui, D... |
|
 |
| Sort by: |