Logout and Auto-login Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
rc76
Posts: 153
Joined: 07 Nov 2020, 01:45

Logout and Auto-login

24 May 2024, 04:47

Hi,

There are times my screen resolution got wierd so i need to log out and log back in again

Is there anyway ahk can help me to perform log out and log back in?

I found log out is:

Code: Select all

; Logoff current user
  Run, rundll32.Exe user32.dll LockWorkStation

  ; disconnect current remote session
  run tsdiscon
How about log back in?
rc76
Posts: 153
Joined: 07 Nov 2020, 01:45

Re: Logout and Auto-login

29 May 2024, 21:21

Dear @mikeyww , will you have any advice for this potential solution? Thank you so much mikeyww! :)
User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: Logout and Auto-login  Topic is solved

29 May 2024, 22:02

Hello,

To my knowledge, login cannot be automated because that would represent a significant security risk. Others may know more.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: macromint, peter_ahk, Rauvagol, Spawnova, wineguy and 302 guests