topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 6:14 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ralphkru [ switch to compact view ]

Pages: [1]
1
Post New Requests Here / Re: Sending user-supplied text
« on: June 14, 2012, 12:49 AM »
Sendinput.  I thought I'd read everything relating to Send.  Missed that.  This looks good.  I'll test it tomorrow, when I may have more questions.  Thanks very much.

2
Post New Requests Here / Re: Sending user-supplied text
« on: June 13, 2012, 11:35 PM »
Right.  I am, in fact, using a program that allows me to do that kind of thing (http://www.sector-se.../software/controlpad), but I'm really interested in trying to learn how to use AHK.  If something useful comes out of this, that would be frosting on the cake.

This program I stole straight out of the docs:
InputBox, UserInput, Phone Number, Please enter a phone number., , 640, 480
if ErrorLevel
    MsgBox, CANCEL was pressed.
else
    MsgBox, You entered "%UserInput%"
This works fine and the variable containing the user's input does half of what I want.  Instead of the 2nd Msg Box, I want to send a sentence like Your phone number is %UserInput% to Word or Notepad or some other app.  I've tried replacing the 2nd MsgBox line with a Send command.  That didn't work.  I tried assigning a hotkey to the script, so I could actually be sitting in my target app when I called the script up.  That didn't work.  I've been looking at WinActivate, but I'm not sure how to use that.  Mainly, I'm not sure if the problem is in the script (syntax) or that I'm lacking a command.

3
Post New Requests Here / Re: Sending user-supplied text
« on: June 12, 2012, 10:16 PM »
Good suggestion.  I did look at Autoit before I got into AHK_L.  The learning curves seemed pretty similar.  But there were some AHK scripts (real simple ones) that I could figure out just by looking at them.  That's what made me decide to try AHK.  Autoit's syntax seems a tad more formal, if that's the word I want.  I'll stick with AHK for a while longer anyway, but thanks.

Here's a question out of the command help.  For InputBox they show InputBox, OutputVar [, Title, Prompt, HIDE, Width, Height, X, Y, Font, Timeout, Default].  I assume the [ ] brackets mean the commands, I guess I mean parameters, are optional.  The question is, from the examples they show, you have to put a comma followed by a space for every one of those parameters you don't want to use.  That is, if you want to include parameter #1 and 3, but not #2, you have to put the comma+space between 1 and 3.  Correct?  And if you don't want to use any parameters after #3, you can just stop?

4
Post New Requests Here / Re: Sending user-supplied text
« on: June 12, 2012, 09:39 PM »
Yeah, I'm doing that.  Don't always understand everything I'm reading.  Looking for examples in other people's scripts of how those commands are used.

5
Post New Requests Here / Sending user-supplied text
« on: June 12, 2012, 01:08 AM »
Prime newby to AHK and programming of any sort.  I think this question is ground-level basic.  I would like to send text to an application (say Word), with part of the text being a value I supply.  For instance, I might want to put in an identification number of some sort off of a list of such numbers.  Real basic data entry.  I've read about AHK's Input box, but, frankly, didn't understand it very well.  Anybody explain this in easy level tech words?  Thanks. 

Pages: [1]