Search found 146 matches

by aaffe
16 Nov 2018, 09:50
Forum: Ask For Help
Topic: Regwrite doest work
Replies: 10
Views: 581

Re: Regwrite doest work

; Prompt to 'Run as Admin', i.e. show UAC dialog
If Not A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+
ExitApp
}
RegWrite, REG_DWORD, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System , VerboseStatus, 00000001
Msgbox Writing to registry now
by aaffe
17 Oct 2018, 07:01
Forum: Skripte und Funktionen
Topic: Groß nach Interpunktion/Nicht auslösen innerhalb eines Wortes
Replies: 1
Views: 422

Re: Groß nach Interpunktion/Nicht auslösen innerhalb eines Wortes

Hotstring Options: ? (question mark): The hotstring will be triggered even when it is inside another word; that is, when the character typed immediately before it is alphanumeric. For example, if :?:al::airline is a hotstring, typing "practical " would produce "practicairline ". Use ?0 to turn this ...
by aaffe
11 Sep 2018, 23:37
Forum: Scripts and Functions
Topic: Window Spy (My Edit on the already made script)
Replies: 14
Views: 1977

Re: Window Spy (My Edit on the already made script)

Perhaps this script should be added in the ahk Installation?
by aaffe
17 Aug 2018, 01:18
Forum: Ask For Help
Topic: case command?
Replies: 4
Views: 291

Re: case command?

Thank you. I know the Workaround with IFs, but I think a real case command would be better. But there isnt one as you wrote. Thanks for your answers!
by aaffe
16 Aug 2018, 08:19
Forum: Ask For Help
Topic: case command?
Replies: 4
Views: 291

case command?

One Question, perhaps I have forgotten About the possibility to do this:
Do we alreade have an case-command in ahk?
Like:

Code: Select all

case a in
1) do xyz
2) do zzz
Default) do Nothing
end case
by aaffe
09 Aug 2018, 23:17
Forum: Gaming
Topic: Two keys in one button that that also do 2 different functions.
Replies: 2
Views: 255

Re: Two keys in one button that that also do 2 different functions.

dont know if I did understand you wright….
untested:

Code: Select all

#IfWinActive, Fortnite
*RButton::
 Send {RButton}
 KeyWait, RButton
 Return
 *RButton Up::
 Send {RButton}
 Return
 #IfWinActive
 
Btw: Theres an extra ask for help Question for games.
by aaffe
13 Apr 2018, 00:47
Forum: Ask For Help
Topic: Sending file with spaces to script
Replies: 5
Views: 347

Re: Sending file with spaces to script

I already have a solution. But to know for you: I mark several Folders and files in Explorer -> click mouse button right -> send to -> my script.
by aaffe
12 Apr 2018, 08:24
Forum: Ask For Help
Topic: Sending file with spaces to script
Replies: 5
Views: 347

Re: Sending file with spaces to script

Ok, I made a Workaround by checking if the file exists, if not I add the next Parameter: paramtmp:="" verz:="" for n,parameter in A_Args { If (paramtmp!="") param:=paramtmp . " " . parameter else param:=parameter IfNotExist,%param% { paramtmp:=param continue } paramtmp:="" Loop,%param%,1,0 { param:=...
by aaffe
12 Apr 2018, 08:04
Forum: Ask For Help
Topic: Sending file with spaces to script
Replies: 5
Views: 347

Re: Sending file with spaces to script

I cant. I do it via Explorer. Mark the files and Folders and then send them to the script.
by aaffe
12 Apr 2018, 07:25
Forum: Ask For Help
Topic: Sending file with spaces to script
Replies: 5
Views: 347

Sending file with spaces to script

Hallo, I have this script: for n, arg in A_Args { msgbox %arg% } Exitapp If the path of the file which I send to my script has spaces in it, I dont get the real file Name as arg but just until the first space. The rest is another arg. Does someone know how to fix to get a filename with spaces as one...
by aaffe
27 Sep 2017, 05:46
Forum: Wish List
Topic: ahk still continued?
Replies: 14
Views: 2171

Re: ahk still continued?

ok thanks.
by aaffe
27 Sep 2017, 04:59
Forum: Wish List
Topic: ahk still continued?
Replies: 14
Views: 2171

ahk still continued?

Hallo, please dont see this as rude, I am only interested if ahk will be still developed in the future. In the last year I think there were at almost bugs fixed, but not really new funtionality of ahk developed. Is ahk still in active developement? Thank you and please dont misunderstand this questi...
by aaffe
08 Jun 2017, 05:49
Forum: Ask For Help
Topic: "AND,OR" for "if var in seq" Topic is solved
Replies: 9
Views: 1477

Re: "AND,OR" for "if var in seq" Topic is solved

Code: Select all

foo:="1,2,3"
bar:="Hwnd,Qt5,Window"

WinGetClass,C,A
full:=foo . "," . bar
if C in %full%
    doFoo()
by aaffe
12 May 2017, 01:14
Forum: Ask For Help
Topic: Delete lines from CSV File Topic is solved
Replies: 14
Views: 1522

Re: Delete lines from CSV File Topic is solved

Hy Bobo,
welcome back. I thought you wanted to program via C# oder C++ instead of AHK. At last your name was Bobo3 I think...?
Are you now programming via autohotkey again? Or just looking a bit here?
by aaffe
11 May 2017, 03:01
Forum: Ask For Help
Topic: Delete lines from CSV File Topic is solved
Replies: 14
Views: 1522

Re: Delete lines from CSV File Topic is solved

Untested:

Code: Select all

csv_org:="d:\test.csv"
csv_copy:="d:\test_copy.csv"

Loop,Read,%csv_org%,%csv_copy%
{
	If A_INDEX in 1,2
		continue
	FileAppend,%A_LoopReadLine%`n
}
FileMove,%csv_copy%,%csv_org%,1
by aaffe
10 May 2017, 07:48
Forum: Ask For Help
Topic: Name a varialbe depending on its content
Replies: 1
Views: 326

Name a varialbe depending on its content

I want to build a var thats named like its content. But this here doesnt work: Loop,%0% { inhalt:=%A_INDEX% stringReplace,inhalt,inhalt,`",,All If (Substr(inhalt,1,1)="-") { StringSplit,out,inhalt,: StringReplace,out2,out2,- %out2%:=out1 } e.g. Inhalt is: -from:test@test.de i want a var named from w...
by aaffe
04 May 2017, 03:39
Forum: Scripts and Functions
Topic: My abandoned GUI creator
Replies: 5
Views: 1593

Re: My abandoned GUI creator

Very cool, thanks for sharing!
by aaffe
28 Apr 2017, 08:29
Forum: Ask For Help
Topic: Ctrl seems to stay pressed
Replies: 11
Views: 1078

Re: Ctrl seems to stay pressed

I don't think my suggestion applies to your case. It might not matter, but consider this, For standard modifier keys, normal hotkeys typically work as well or better than "custom" combinations. For example, <+s:: is recommended over LShift & s::. That is, try ^Space:: instead of Ctrl & Space:: . I ...
by aaffe
28 Apr 2017, 07:59
Forum: Ask For Help
Topic: Ctrl seems to stay pressed
Replies: 11
Views: 1078

Re: Ctrl seems to stay pressed

Show your code. Very hard to tell without seeing some code. I suspect that you are doing something like ^Space::a but not appreciating that what this actually does when you hit Ctrl+Space is RELEASE ctrl, send A, then hold Ctrl again (Because you asked AHK to send a, not CTRL+a). If using syntax li...

Go to advanced search