create a ahk program to give output through input

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
crypter
Posts: 90
Joined: 15 Dec 2020, 09:57

create a ahk program to give output through input

Post by crypter » 13 Dec 2022, 13:34

the input is a text file with text lines, each text line in the text file can be a outputted result
the program can receive input as text you type then you click a button and it gives a output that exists in a text file as one line
it has a input field edit box where you can type a question
it has a output filed edit box to display the line from the text file that is selected randomly
it can save the log of input and output with a time stamp per line in a text file (a log of questions and answers)
it has a progress bar that counts how many times to get results, like when 50 results are created it`s a 100% progress bar

Code: Select all

Gui,Add,Button,x10 y136 w800 h23,&Answer
Gui,Add,Edit,x10 y103 w800 h23, answer
Gui,Add,Edit,x10 y70 w800 h23, type a question
Gui,Add,ComboBox,x10 y40 w800,Text file source
Gui,Add,Progress,x10 y10 w800 h20 -Smooth,33

Gui,Show
return

GuiEscape:
GuiClose:
    ExitApp
Screenshot 2022-12-13 141141.png
Screenshot 2022-12-13 141141.png (11.23 KiB) Viewed 644 times
crypter
Posts: 90
Joined: 15 Dec 2020, 09:57

Re: create a ahk program to give output through input

Post by crypter » 13 Dec 2022, 15:53

plz help
User avatar
andymbody
Posts: 996
Joined: 02 Jul 2017, 23:47

Re: create a ahk program to give output through input

Post by andymbody » 13 Dec 2022, 15:58

I don't see a question... did I miss it? What would you like help with?
crypter
Posts: 90
Joined: 15 Dec 2020, 09:57

Re: create a ahk program to give output through input

Post by crypter » 13 Dec 2022, 16:03

i need to create this program i described

it`s a request not a question

or my question would be: can someone create this?
crypter
Posts: 90
Joined: 15 Dec 2020, 09:57

Re: create a ahk program to give output through input

Post by crypter » 14 Dec 2022, 08:45

plz help
User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: create a ahk program to give output through input

Post by mikeyww » 14 Dec 2022, 10:41

I agree that you're not asking a question about how something works in AHK. Instead, you want an entire program written for you, and you have provided the project specifications and requirements for your project. This is a bit different from most help requests on the forum, but there are such things posted, and occasionally someone with a lot of free time will hand you a complete working product! (It's a bit of a tough sell in my view.)
User avatar
HiSoKa
Posts: 480
Joined: 27 Jan 2020, 15:43

Re: create a ahk program to give output through input

Post by HiSoKa » 14 Dec 2022, 10:57

maybe i can help you,
But I didn't understand exactly what was required (What program do you want and how does it work).
Please write the steps that the program should deal with.
For example:
1- import the questions from a text file.
2- Matching the answer typed by the user with the correct answer in the text file,
3- save the written question to the text file or what....etc

Please simplify the question and detail the steps, I will try to help you according to my experience :)
User avatar
Smile_
Posts: 859
Joined: 03 May 2020, 00:51

Re: create a ahk program to give output through input

Post by Smile_ » 14 Dec 2022, 11:04

Agree with @HiSoKa, the request is not clear.
User avatar
flyingDman
Posts: 2848
Joined: 29 Sep 2013, 19:01

Re: create a ahk program to give output through input

Post by flyingDman » 14 Dec 2022, 15:52

What is is fascinating, is the purpose of the script. You write a question and the script provides a random answer? In other words, it's like asking a question to a politician! Here is a way to show a random line from a text file (as this possibly is the most challenging part of the script):

Code: Select all

fileread, oVar, test.txt
arr := strsplit(oVar,"`n", "`r")
random, rndm, 1, % arr.maxindex()
msgbox % arr[rndm]
14.3 & 1.3.7
RussF
Posts: 1311
Joined: 05 Aug 2021, 06:36

Re: create a ahk program to give output through input

Post by RussF » 15 Dec 2022, 08:13

image.png
image.png (198.45 KiB) Viewed 397 times
Post Reply

Return to “Ask for Help (v1)”