Search found 9 matches

by digidings
15 May 2019, 08:06
Forum: Ask For Help
Topic: Load DDL (dropdownlist) with .ini file contents Topic is solved
Replies: 2
Views: 69

Re: Load DDL (dropdownlist) with .ini file contents Topic is solved

you should replace the newline-characters with the pipe-character, e.g.: Gui, Add, DDL, xs+10 ys+100 vReferalVar w250, % StrReplace(SampleVar,"`n","|") if there is an empty line after the preferred Default, this line will be initially selected in the DDL e.g. ReferalVar = (lTrim text from line 1 is ...
by digidings
11 Feb 2019, 08:59
Forum: Ask For Help
Topic: odd or even
Replies: 3
Views: 180

Re: odd or even

Code: Select all

arr := ["hello", "world", "test", "Autohotkey" ]

loop % arr.Count()
{
	if (A_index & 1) ; Check LSB: if set it's odd
		msgbox % "odd " A_index " : " arr[A_index]
	else
		msgbox % "even " A_index " : " arr[A_index]
}
by digidings
06 Feb 2019, 14:48
Forum: Ask For Help
Topic: Circumvent screen lock timeout - script fails
Replies: 3
Views: 210

Re: Circumvent screen lock timeout - script fails

I am using this when working via Remote Desktop on an external computer. The script runs on my home PC...
by digidings
03 Feb 2019, 06:53
Forum: Ask For Help
Topic: Circumvent screen lock timeout - script fails
Replies: 3
Views: 210

Re: Circumvent screen lock timeout - script fails

To avoid the screensaver I had a script moving an existing window once per minute by one pixel to the left on even minutes and one pixel to the right on odd minutes. But for me the following much simpler solution works: ; some keyboard input every minute.: SetTimer SimKeyboardInput, 60000 return Sim...
by digidings
19 Nov 2018, 07:51
Forum: Ask For Help
Topic: GUI checkbox multiple entries Topic is solved
Replies: 3
Views: 360

Re: GUI checkbox multiple entries Topic is solved

how about a standard solution with loops ? MaxParts := 19, PartsPerRow := 3, xSpace := 20, ySpace := 30, width := 60 Gui Add, Groupbox, % "xm w" . PartsPerRow * (width + xSpace) . " h" . ySpace * (1+ Floor(MaxParts / PartsPerRow)) + 30 , Backing Mesh Loop % MaxParts { Gui Add, CheckBox, % ((Mod(A_In...
by digidings
20 Oct 2018, 10:28
Forum: Ask For Help
Topic: SetTimer & function calls, I need help finding the errors
Replies: 5
Views: 307

Re: SetTimer & function calls, I need help finding the errors

Your subroutine L_ProcessExist also executes L_ProcessClose , because of the missing return statement. Try this: global CloseAfter_ms := 120000 ; 120 seconds V_Process := "ExecPubg.exe" ProcessExist(Name){ Process,Exist,%Name% if (ErrorLevel > 0){ SetTimer,L_ProcessClose,% -CloseAfter_ms SetTimer,L_...
by digidings
11 Jul 2018, 07:54
Forum: Ask For Help
Topic: GUI
Replies: 3
Views: 229

Re: GUI

Hi, you might try this ... #SingleInstance, force #NoEnv countries := ["Albania", "Austria", "Belgium" ; add more countries here ... , "Zimbabwe"] for a,country in countries { Gui, add, Button, w120 h40 vBt_%country% gCheckCountry, % country } Gui show return CheckCountry: ; which Gui-Element has fi...
by digidings
14 May 2018, 03:46
Forum: Ich brauche Hilfe
Topic: Hotkey mit #
Replies: 2
Views: 279

Re: Hotkey mit #

Hallo Argonaut, Versuche es mal mit dem virtuellen KeyCode für das Zeichen '#' z.B. !+vkBF::MsgBox Alt+Umschalt+'#' wurde gedrückt. Diese MsgBox mit Deinem Code ersetzen ... Wenn das nicht klappt, musst Du den KeyCode für Deine Tastatur zuerst ermitteln, dazu starte folgendes Script: #InstallKeybdHo...
by digidings
22 Jan 2018, 17:10
Forum: Scripts and Functions
Topic: MoveTogether()
Replies: 36
Views: 3132

Re: MoveTogether()

Nice code! :bravo:

... just a small modification in the function MoveTogether so that when Shift is held down it's possible to move a single window out of the group e.g. for rearranging ...

Code: Select all

While GetKeyState("LButton") and !GetKeyState("Shift") {
cheers :thumbup:

Go to advanced search