Search found 710 matches

by WalkerOfTheDay
31 Jan 2024, 04:42
Forum: Ask for Help (v2)
Topic: Correct syntax of filemove using variable name Topic is solved
Replies: 1
Views: 221

Re: Correct syntax of filemove using variable name Topic is solved

Nevermind I should have read the docs better.

The destination folder was not empty, so I need to add ,1 to the filemove

FileMove A_LoopFileName, Destination, 1
by WalkerOfTheDay
31 Jan 2024, 04:11
Forum: Ask for Help (v2)
Topic: Correct syntax of filemove using variable name Topic is solved
Replies: 1
Views: 221

Correct syntax of filemove using variable name Topic is solved

Hi guys, I'm trying to do something very simple, but apparently I have something wrong in my syntax. I'm trying to move some files to a subfolder if they match my matchlist in the csv file. Below FileMove is throwing this error which doesn't seem very helpfull: Error: Failed Specifically: 1 010: Fac...
by WalkerOfTheDay
30 Oct 2023, 09:46
Forum: Ask for Help (v2)
Topic: Why is reload not working here ?
Replies: 2
Views: 353

Why is reload not working here ?

Hi guys, I have something strange happening what I cannot explain. Perhaps one of you could shed some light on the subject. I seems like the reload in below snippet doesn't reset the script completely causing an error message if I run it a second time. I was alway under the impression Reload would s...
by WalkerOfTheDay
30 Oct 2023, 05:23
Forum: Ask for Help (v2)
Topic: Invalid variable declaration ? Topic is solved
Replies: 4
Views: 736

Re: Invalid variable declaration ? Topic is solved

According to the list of expression operators , ++ is not defined as an assignment operator as += is. Any assignment operator can be used Oke thank you. Excuse my ignorance, but when I replace ++ by += I get this error: Error: Expected a String but got a Func. #Requires AutoHotkey v2.0 Persistent g...
by WalkerOfTheDay
30 Oct 2023, 04:34
Forum: Ask for Help (v2)
Topic: Invalid variable declaration ? Topic is solved
Replies: 4
Views: 736

Invalid variable declaration ? Topic is solved

Hi, I'm still transitioning to V2 and now and then I run into thing I don't understand, like below example. Why is Global Line++ throwing an error ? In this case ? I declared the variable as global at the top of the script, so what causes the error ? #Requires AutoHotkey v2.0 Global Line := 1 ^2:: {...
by WalkerOfTheDay
30 Oct 2023, 04:05
Forum: Ask for Help (v2)
Topic: Remove only the last blank line from clipboard Topic is solved
Replies: 8
Views: 993

Re: Remove only the last blank line from clipboard Topic is solved

So I did some testing, and both the RegExReplace versions as the Rtrim versions seem to be doing the job. I'm going for the Rtrim version because I really do not understand the regex version. I've looked at the documentation before, but I'm finding it quite intimidating. Thanks for your help guys
by WalkerOfTheDay
27 Oct 2023, 12:33
Forum: Ask for Help (v2)
Topic: Remove only the last blank line from clipboard Topic is solved
Replies: 8
Views: 993

Re: Remove only the last blank line from clipboard Topic is solved

Although three scripts have been posted, I believe that none of them match the description, which is to delete the single blank line in the string that is followed by no additional blank lines in the string. I took a guess in thinking that the need was actually to delete the final individual line i...
by WalkerOfTheDay
27 Oct 2023, 10:04
Forum: Ask for Help (v2)
Topic: Remove only the last blank line from clipboard Topic is solved
Replies: 8
Views: 993

Remove only the last blank line from clipboard Topic is solved

Hi, I'm am having some problems removing the last blank line from the clipboard. See below example, the clipboard will hold a text like this. How do I get rid of the last blank line in this text ? I tried playing with SubStr , StrReplace , and Rtrim but I cannot seem to get it working. Any pointers ...
by WalkerOfTheDay
26 Oct 2023, 09:09
Forum: Ask for Help (v2)
Topic: How to get values from these arrays ?
Replies: 7
Views: 841

Re: How to get values from these arrays ?

Great stuff guys ! I think I'm going to use flyingDman 's example to build my script. Let me explain what I'm trying to achieve. For work I have to manually fill out forms for customs purposes on the DHL website. In our ERP system (SAP Business One), I have created an SQL query that lists all the in...
by WalkerOfTheDay
26 Oct 2023, 01:57
Forum: Ask for Help (v2)
Topic: How to send € to the CMD-window Topic is solved
Replies: 25
Views: 2539

Re: How to send € to the CMD-window Topic is solved

WalkerOfTheDay wrote: ahk_exe WindowsTerminal.exe
WindowsTerminal.exe is not the same as cmd.exe, they are different applications.
Well, in Windows 11 WindowsSpy is showing me this (Windows Terminal.exe):
by WalkerOfTheDay
25 Oct 2023, 12:17
Forum: Ask for Help (v2)
Topic: How to get values from these arrays ?
Replies: 7
Views: 841

Re: How to get values from these arrays ?

Thanks guys. I will review your code tomorrow since I don't have access to my pc right now.
by WalkerOfTheDay
25 Oct 2023, 10:09
Forum: Ask for Help (v2)
Topic: How to send € to the CMD-window Topic is solved
Replies: 25
Views: 2539

Re: How to send € to the CMD-window Topic is solved

I can't seem to get it to work with ControlSend either, but this seems to work:

Code: Select all

#Requires AutoHotkey v2.0

WinActivate ("ahk_exe WindowsTerminal.exe")
Send "€"
by WalkerOfTheDay
25 Oct 2023, 09:47
Forum: Ask for Help (v2)
Topic: How to get values from these arrays ?
Replies: 7
Views: 841

How to get values from these arrays ?

Hi, I'm really struggling with below code, perhaps someone can help me out ? What is the correct syntax to show the country on the first line of the examples text (Utopia) ?? If you want to test the code, please copy below text to clipboard and then press CTRL-1, after it finishes, press CTRL-2 I'm ...
by WalkerOfTheDay
02 Jun 2023, 03:30
Forum: Ask for Help (v2)
Topic: Working with multiple users at the same time to a exe-compiled file
Replies: 1
Views: 217

Re: Working with multiple users at the same time to a exe-compiled file

I think it depends on your script. For example, if your code is doing file writes it might lead to issues because the file(s) would be locked.
That being said, I have written multiple scripts that work simultaniously for multiple users.

I would just give it a try.
by WalkerOfTheDay
01 Jun 2023, 05:37
Forum: Ask for Help (v2)
Topic: Send text to Word
Replies: 4
Views: 556

Re: Send text to Word

Even with the V2 code, I would replace the ALT-TAB which is unreliable. Something like this: myGui := Gui() myGui.Add("Text", "vVar1", "Bla bla").OnEvent("Click", Go1) myGui.Add("Text", "vVar2", "Bla bla2").OnEvent("Click", Go2) myGui.Title := "Window" myGui.Show() Go1(*) { WinActivate("ahk_exe WINW...
by WalkerOfTheDay
01 Jun 2023, 04:42
Forum: Ask for Help (v2)
Topic: Send text to Word
Replies: 4
Views: 556

Re: Send text to Word

Instead of using ALT-TAB, you could use WinActivate.

Also, this is V1 code, so you asked the question in the wrong section.
by WalkerOfTheDay
03 May 2023, 06:36
Forum: Ask for Help (v2)
Topic: Adjust text inside a button control? Topic is solved
Replies: 13
Views: 1399

Re: Adjust text inside a button control? Topic is solved

Okay. I did not get that that was what he meant.

I wouldn't know either how to deal with that.
by WalkerOfTheDay
03 May 2023, 06:26
Forum: Ask for Help (v2)
Topic: Adjust text inside a button control? Topic is solved
Replies: 13
Views: 1399

Re: Adjust text inside a button control? Topic is solved

I think the idea is to right-align text within a button control, though I do not know a way to do that. Someone here may know. There are some posts about how to determine the character width based on the font and font size, so you might be able to use that approach to compute the amount of space ne...
by WalkerOfTheDay
03 May 2023, 05:09
Forum: Ask for Help (v2)
Topic: Adjust text inside a button control? Topic is solved
Replies: 13
Views: 1399

Re: Adjust text inside a button control? Topic is solved

It's still not clear to me what you need. Do you want all buttons to be left alligned ? In that case you could add Left in the options: #Requires AutoHotkey v2.0.2 #SingleInstance Force MyGui := Gui() MyGui.Add("Button", "w250 left", " More than one word button name.") ;Looks bad for my use MyGui.Ad...
by WalkerOfTheDay
03 May 2023, 04:18
Forum: Ask for Help (v2)
Topic: Adjust text inside a button control? Topic is solved
Replies: 13
Views: 1399

Re: Adjust text inside a button control? Topic is solved

No sure if this is what you mean, but you can use the h option to set the height. In this example I've set it to 40: #Requires AutoHotkey v2.0.2 #SingleInstance Force MyGui := Gui() MyGui.Add("Button", "w250 h40", "More than one word button name.") ;Looks bad for my use MyGui.Add("Button", "wp h40",...

Go to advanced search