Search found 976 matches

by Albireo
Yesterday, 14:47
Forum: Ask For Help
Topic: How can many GUIs be used simultaneously? Topic is solved
Replies: 4
Views: 157

Re: How can many GUIs be used simultaneously? Topic is solved

Thanks! Gui 2: New, +AlwaysOnTop This was the solution! What is up with this? Gui 2: Show, x%PosX% y%PosY% h190 w250, Programslut! This causes the second window to follow and be placed on top of the main window (with an offset +20) WinGet GuiPid, PID, %A_ScriptName% WinGetPos PosX, PosY, Width, Heig...
by Albireo
Yesterday, 13:57
Forum: Ask For Help
Topic: How can many GUIs be used simultaneously? Topic is solved
Replies: 4
Views: 157

Re: How can many GUIs be used simultaneously? Topic is solved

This AHK-program, works almost as intended. The main window has no problem. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed...
by Albireo
07 Apr 2020, 10:47
Forum: Ask For Help
Topic: GUI handle - one or two or ... GUIs
Replies: 0
Views: 38

GUI handle - one or two or ... GUIs

There are several ways to manage the GUI Not sure if I understand the management of the GUI correctly. Assume that some parts of an AHK program take some time to execute, and the idea is to show information to the user in the meantime. In my case, a program can take 0.1 - 5 seconds to start. (and I ...
by Albireo
07 Apr 2020, 02:47
Forum: Ask For Help
Topic: Listing from an FTP server is failing
Replies: 8
Views: 204

Re: Listing from an FTP server is failing

Have not used FileZilla for FTP (however FTP.ahk) But AHK probably does not support SFTP.

I think SFTP uses port 22 (not port 21 that FTP uses)
by Albireo
06 Apr 2020, 15:17
Forum: Ask For Help
Topic: GuiControl - Change color and size Topic is solved
Replies: 3
Views: 88

GuiControl - Change color and size Topic is solved

Hello! I'm having trouble changing the color and size of the text in a field. Wrote a small test program that creates a text field in red . If the Next button is pressed, the text field should get green text. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #...
by Albireo
06 Apr 2020, 09:29
Forum: Ask For Help
Topic: How to create/open many GUI at same time? Topic is solved
Replies: 3
Views: 117

Re: How to create/open many GUI at same time? Topic is solved

I have tested the small GUI-program. ( I don't understand all functions ) When Numpad1 is pressed a new GUI opens. (OK!) When the new GUI closes, nothing happens. (OK! in some way) When the first GUI is closed, the message Gui 1 closed is shown. (OK!) 1) But I have no idea when this is used or how t...
by Albireo
05 Apr 2020, 15:54
Forum: Ask For Help
Topic: How to create/open many GUI at same time? Topic is solved
Replies: 3
Views: 117

How to create/open many GUI at same time? Topic is solved

One GUI is easy to create. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; E...
by Albireo
05 Apr 2020, 15:42
Forum: Ask For Help
Topic: Make the GUI button disabled / grayed Topic is solved
Replies: 13
Views: 307

Re: Make the GUI button disabled / grayed Topic is solved

Thanks! Now I even got #If WinActive( .. to work in same way :clap: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and rel...
by Albireo
05 Apr 2020, 12:18
Forum: Ask For Help
Topic: Make the GUI button disabled / grayed Topic is solved
Replies: 13
Views: 307

Re: Make the GUI button disabled / grayed Topic is solved

Thanks for the explanation! (and example) I have tried this with a #if solution like this .: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to i...
by Albireo
05 Apr 2020, 05:09
Forum: Ask For Help
Topic: Make the GUI button disabled / grayed Topic is solved
Replies: 13
Views: 307

Re: Make the GUI button disabled / grayed Topic is solved

Thank you Hellbent ! I don't understand what's happens in more "complicated" cases (like mine) the AHK-doc of #If Something like that .: #If WinActive( "ahk_id " GuiHwnd ) ~NumpadEnter:: ~Enter:: GuiControlGet FocusOn, FocusV ... #If (!Flag) NumpadEnter:: Enter:: ... #If (Flag) NumpadEnter:: Enter::...
by Albireo
04 Apr 2020, 09:17
Forum: Ask For Help
Topic: Make the GUI button disabled / grayed Topic is solved
Replies: 13
Views: 307

Re: Make the GUI button disabled / grayed Topic is solved

Thanks! Yes! GuiControl, 1:+Default, ButtOK works in one way. But, now I got another function of the program. My desire is, when the input is correct (123 in this case) and Enter is pressed. A result is created and can be reviewed. (the message Correct number! in this example) The next time Enter is...
by Albireo
04 Apr 2020, 08:32
Forum: Ask For Help
Topic: Make the GUI button disabled / grayed Topic is solved
Replies: 13
Views: 307

Re: Make the GUI button disabled / grayed Topic is solved

...It actually does get focus. Notice that the caret no longer appears in the edit box... Yes, focus is moved from the edit field (but not to the button) If I hit Enter (and the button was active) I wished it was pressed. It works if I press TAB and activate the button - Now the button is pressed w...
by Albireo
04 Apr 2020, 06:13
Forum: Ask For Help
Topic: Make the GUI button disabled / grayed Topic is solved
Replies: 13
Views: 307

Re: Make the GUI button disabled / grayed Topic is solved

Yes! (Thanks) Activating the button is no problem. GuiControl 1: Enable, ButtOK But to focus on the button I got stuck. GuiControl 1: Focus, ButtOK (nothing happens) #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detec...
by Albireo
04 Apr 2020, 05:20
Forum: Ask For Help
Topic: How can many GUIs be used simultaneously? Topic is solved
Replies: 4
Views: 157

How can many GUIs be used simultaneously? Topic is solved

Tried to replace a MsgBox to a GUI instead. (The GUI is easier to handle - in one way) My wish is that e.g. an error message should be placed in front of the main GUI. If the main GUI is moved, the message is moved too. (and I find it more complicated to handle a MsgBox in that way) I have tried to ...
by Albireo
04 Apr 2020, 05:01
Forum: Ask For Help
Topic: Make the GUI button disabled / grayed Topic is solved
Replies: 13
Views: 307

Make the GUI button disabled / grayed Topic is solved

How to make a GUI button disabled? With this instruction the button disappears completely .: Gui Add, Button, hidden vButtOK, OK! #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ;...
by Albireo
27 Mar 2020, 04:07
Forum: Ask For Help
Topic: #Include a file from a variable - is it possible? Topic is solved
Replies: 1
Views: 96

#Include a file from a variable - is it possible? Topic is solved

I want to include a textfile to a AHK-script from a variable like this .: FileName = c:\temp\test.txt #Include FileName But this give the following error .: Line Text: #Includue HeadFile Error: This line does not contain a recognized action. If I try this .: FileName = c:\temp\test.txt #Include %Fil...
by Albireo
26 Mar 2020, 07:31
Forum: Ask For Help
Topic: Create an array from a CSV-file Topic is solved
Replies: 9
Views: 343

Re: Create an array from a CSV-file Topic is solved

Excuse my bad English (I interpreted univocal as numbers only) It should be translated into an unique field :oops: After a few changes, the program looks like this. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #Warn ; Enable warnings to assist with detectin...
by Albireo
26 Mar 2020, 06:34
Forum: Ask For Help
Topic: Create an array from a CSV-file Topic is solved
Replies: 9
Views: 343

Re: Create an array from a CSV-file Topic is solved

Thanks Odlanir ! This solution with the headers is much better. In this case, only numbers in the first field work! (but is not optimal) Thought wrong! error handling is performed later (maybe this way) User = 420 aUser := GetUserInfo(allUser) If !aUser[User] MsgBox % User " - NOT Exist! `n- " aUser...
by Albireo
26 Mar 2020, 05:23
Forum: Ask For Help
Topic: Create an array from a CSV-file Topic is solved
Replies: 9
Views: 343

Re: Create an array from a CSV-file Topic is solved

You can also build an Object dinamically ( without hardcoding the field names ) The only drawback is that the key ( first field ) must be univocal. str= ( "UserNumber","HeadTwo","HeadThree","HeadFour" ; Header "100","user info","0","20191001" "318","Some Text","1","" "905","Why Not","1","" ) UserAr...

Go to advanced search