Search found 13 matches

by ArkuS
15 Apr 2024, 12:24
Forum: Ask for Help (v1)
Topic: Cmd Hide And Output Topic is solved
Replies: 10
Views: 209

Re: Cmd Hide And Output Topic is solved

@MrDoge Thanks for your continued interest. I updated it, and this line still needs to look like this to work.

Code: Select all

while (cp.Peek()!=="E n t e r   p a s s w o r d :   ") {

This is how it looks if I remove the spaces
Przechwytywanie.PNG
Przechwytywanie.PNG (39.08 KiB) Viewed 92 times
by ArkuS
14 Apr 2024, 23:19
Forum: Ask for Help (v1)
Topic: Cmd Hide And Output Topic is solved
Replies: 10
Views: 209

Re: Cmd Hide And Output/RunCmd Topic is solved

MrDoge wrote:
14 Apr 2024, 23:05
replace "E n t e r p a s s w o r d : " with exactly what it shows, it should be in your Clipboard, so just paste it
at this line:

Code: Select all

while (cp.Peek()!=="E n t e r   p a s s w o r d :   ") {

Thank you very much. Now everything works.
aa.PNG
aa.PNG (4.14 KiB) Viewed 129 times
by ArkuS
14 Apr 2024, 22:57
Forum: Ask for Help (v1)
Topic: Cmd Hide And Output Topic is solved
Replies: 10
Views: 209

Re: Cmd Hide And Output/RunCmd Topic is solved

MrDoge wrote:
14 Apr 2024, 22:42

Code: Select all

while (cp.Peek()!=="E n t e r   p a s s w o r d :   ") {
    ToolTip % Clipboard:=cp.Peek()
    Sleep 100
}
what does the ToolTip or Clipboard show ?

This is exactly what it shows:
11.PNG
11.PNG (17.5 KiB) Viewed 134 times
by ArkuS
14 Apr 2024, 22:30
Forum: Ask for Help (v1)
Topic: Cmd Hide And Output Topic is solved
Replies: 10
Views: 209

Re: Cmd Hide And Output/RunCmd Topic is solved

cp:=new ChildProcess_ConsoleSend("aescrypt.exe -d -o - x.txt.aes") while (cp.Peek()!=="E n t e r p a s s w o r d : ") { Sleep 100 } cp.Reset_Peek() cp.ConsoleSend("apples`r") response:=cp.ReadUntilClosed() AesPassword:=SubStr(response,5) if (InStr(AesPassword, "this_is_the_password")) { MsgBox % "I...
by ArkuS
14 Apr 2024, 17:37
Forum: Ask for Help (v1)
Topic: Cmd Hide And Output Topic is solved
Replies: 10
Views: 209

Re: Cmd Hide And Output/RunCmd Topic is solved

cp:=ChildProcess_ConsoleSend("aescrypt -d -o - x.txt.aes") Sleep 100 prompt:=cp.Read() cp.ConsoleSend("apples`r") Sleep 100 response:=cp.Read() AesPassword:=SubStr(response,5) if (InStr(AesPassword, "this_is_the_password")) { MsgBox "It's Working" } class ChildProcess_ConsoleSend { __New(CmdLine, W...
by ArkuS
13 Apr 2024, 22:22
Forum: Scripts and Functions (v1)
Topic: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 249
Views: 88753

Re: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

Hello, I need to enable the hidden windows command line. Execute the command, enter the password and confirm it. Finally get the output from the console to the variable. Is this doable using RunCmd? The topic I created about this. https://www.autohotkey.com/boards/viewtopic.php?style=17&f=76&t=128671
by ArkuS
12 Apr 2024, 21:04
Forum: Ask for Help (v1)
Topic: Run a command, then run another when closing a process
Replies: 4
Views: 58

Re: Run a command, then run another when closing a process

Try this ChangeResolution(32,1920,1080,60) sleep, 2000 Run, L:\Lightgun\Teknoparrot\TeknoParrotUi.exe,, UseErrorLevel Process, WaitClose, TeknoParrotUi.exe ChangeResolution(32,3840,2160,60) Return ChangeResolution( cD, sW, sH, rR ) { VarSetCapacity(dM,156,0), NumPut(156,2,&dM,36) DllCall( "EnumDispl...
by ArkuS
12 Apr 2024, 19:37
Forum: Ask for Help (v1)
Topic: Run a command, then run another when closing a process
Replies: 4
Views: 58

Re: Run a command, then run another when closing a process

Hey

What resolution do you want to change to after closing the process?
by ArkuS
12 Apr 2024, 19:31
Forum: Ask for Help (v1)
Topic: Cmd Hide And Output Topic is solved
Replies: 10
Views: 209

Cmd Hide And Output Topic is solved

Hello, I need to enable the hidden windows command line. Execute the command, enter the password and confirm it. Finally get the output from the console to the variable. At first I did it like this and it works, but I can't download the output. This method only shows what needs to be done. Run, cmd,...
by ArkuS
14 Dec 2019, 11:26
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 572422

Re: FindText - Capture screen image into text and then find it Topic is solved

feiyue Thanks for devoting time to a newbie like me, but my problem is not ControlClick (ControlClick works in the code to which I gave the link above). My problem is two the same words, which causes FindText to go crazy and choose none of them. As is shown in the image. Bez tytułu.png I tried to a...
by ArkuS
30 Nov 2019, 14:41
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 572422

Re: FindText - Capture screen image into text and then find it Topic is solved

Thanks for the answer, but it's too hard for me. How can SortOK be added to this code to sort? This script selects subtitles in a specific language for a YouTube video. I will add that Findtext only searches in the area where the list of subtitles appears. Text:="|<>**50$53.0003kD0wS0006UG18o00090Y2...
by ArkuS
29 Nov 2019, 23:46
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 572422

Re: FindText - Capture screen image into text and then find it Topic is solved

Hi, can you select the inscription above the green line in the same search area? Above the red line is the same inscription and yet another. By there are two same words the script does not work.
Can you somehow distinguish them?

Bez tytułu.png
Bez tytułu.png (53.71 KiB) Viewed 5451 times

Go to advanced search