I need help!!!

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Abrissy
Posts: 1
Joined: 06 Oct 2022, 10:17

I need help!!!

Post by Abrissy » 06 Oct 2022, 10:21

I am doing a script in autohotkey and I have a problem. I logged in to the application but when I start it, a login window and a window with the application start, can anyone help? the code is given at the bottom

Code: Select all

TypePassWord     := "9977"
dobralicencja    := "9977"

gui,2: add, Picture, e x2 y5 h4000 w6000, login.png
gui,2: Margin, 5,5
gui,2: Font, S12, Agency FB
gui,2: font, s15, Cavair dreams
gui,2: add, text, x282 y300, Password
gui,2: add, edit, x280 y330 rl Limit20 w200 h20 0x20 vTypePassWord
gui,2: add, button, x660 y550 w120 h33 0x8000 gDobreHaslo, Login
gui,2: show, w800 h600, SHMod Login - Logowanie

DobreHaslo:
gui, Submit, NoHide+

if ("" . TypePassWord = dobralicencja)
    goto MAIN
else 
    msgbox, 16, Wrong Password,Wrong password, 5
    EXIT


MAIN:
gui, show, w800 h600, SHMod - MAIN
gui, add, Picture, e x2 y5 h4000 w6000, e.png
Last edited by BoBo on 06 Oct 2022, 13:06, edited 1 time in total.
Reason: Added [code][/code]-tags.

User avatar
mikeyww
Posts: 26951
Joined: 09 Sep 2014, 18:38

Re: I need help!!!

Post by mikeyww » 06 Oct 2022, 13:22

Welcome to this AutoHotkey forum!

I would post only scripts that run, unless you have a question about an error message. "e" is not an option for a GUI picture. See documentation for details.

Post Reply

Return to “Ask for Help (v1)”