hide execution from screen Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jerryrig
Posts: 40
Joined: 01 May 2021, 23:31

hide execution from screen

10 May 2021, 08:24

Code: Select all


#SingleInstance,Force
0::
Send #r
Send timedate.cpl
Send {Enter}
return
this will open run
and physically type timedate

is there any way to hide all thoose typings and see final result { which is the date time dialouge box }

thank u
User avatar
mikeyww
Posts: 27366
Joined: 09 Sep 2014, 18:38

Re: hide execution from screen

10 May 2021, 08:30

Code: Select all

Run, timedate.cpl
jerryrig
Posts: 40
Joined: 01 May 2021, 23:31

Re: hide execution from screen

10 May 2021, 08:32

:D
lets take the case of note pad

if i send

Code: Select all

send {Hello world }
it will move cursor throught each letter swiftly ...
is there any way to quickly see the end result .... without cursor cursor moving through each letter in HW
User avatar
mikeyww
Posts: 27366
Joined: 09 Sep 2014, 18:38

Re: hide execution from screen  Topic is solved

10 May 2021, 08:41

Code: Select all

Clipboard := "", Clipboard := "timedate.cpl"
ClipWait, 0
If ErrorLevel {
 MsgBox, 48, Error, An error occurred while waiting for the clipboard. Aborting.
 Return
} Else Send #r
WinWaitActive, Run ahk_class #32770 ahk_exe explorer.exe,, 4
If ErrorLevel
 MsgBox, 48, Error, An error occurred while waiting for the window. Aborting.
Else Send ^v
An alternative is SendInput.
jerryrig
Posts: 40
Joined: 01 May 2021, 23:31

Re: hide execution from screen

10 May 2021, 08:47

i didnt knew about send input ...........
:|
thanks mikeeee

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: bobstoner289, Google [Bot], JnLlnd and 210 guests