Search found 11 matches

by digidings
02 Mar 2020, 13:11
Forum: Ich brauche Hilfe
Topic: AHK & Arduino (Serielle Kommunikation)
Replies: 1
Views: 828

Re: AHK & Arduino (Serielle Kommunikation)

Hallo Gucky_87, der indirekt verlinkte Beitrag https forums.adafruit.com /viewtopic.php?f=25&t=20177&p=112840&hilit=autohotkey#p105118 (Broken Link for safety) enthält eine auch für höhere COMPorts (>=10) lauffähige Version durch folgenes Code-Fragment: SERIAL_Port_Temp1_Len := StrLen(SERIAL_Port_Te...
by digidings
22 Oct 2019, 10:50
Forum: Ask For Help
Topic: Regex help: Match everything after
Replies: 3
Views: 271

Re: Regex help: Match everything after

Another solution with look-behind assertion:

Code: Select all

^!V::              ;Ctrl-Alt-V 'Special Paste'

Haystack := Clipboard
Needle := "(?<=:)\s*(?<Keep>.+)$"

RegExMatch(Haystack, Needle, TextTo)
Clipboard := TextToKeep

Send, ^V
return
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: 501

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: 560

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: 660

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: 660

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: 854

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: 787

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: 672

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: 629

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: 6258

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