Search found 1282 matches

by RussF
Yesterday, 14:46
Forum: Ask for Help (v1)
Topic: Can't edit script
Replies: 3
Views: 217

Re: Can't edit script

Jasper wrote:my script isn't working!
... doesn't tell us anything.

Code: Select all

while (GetKeyState("v", "P"))
... should work just fine.
Jasper wrote:my_code_and_you_need_not_to_read_it
... will be why you probably won't get any more replies. Without context and exact behavior, no one can help you.

Russ
by RussF
Yesterday, 14:40
Forum: Ask for Help (v2)
Topic: Send menu item to other function?
Replies: 5
Views: 177

Re: Send menu item to other function?

You forgot the asterisk.

Code: Select all

chosenSwitch(var,*)
Russ
by RussF
08 May 2024, 14:58
Forum: Ask for Help (v2)
Topic: Progressive removal of text in Text Control?
Replies: 5
Views: 346

Re: Progressive removal of text in Text Control?

Try this Steve: #SingleInstance #Requires AutoHotkey v2+ ; disappearing text experiment guiTitle := 'Color Change' str := 'the quick brown fox jumps over' mg := Gui(, guiTitle) mg.SetFont('s16 cBlue','Consolas') sBlue := mg.Add('text', 'w400', str) mg.Show() #hotif WinActive(guiTitle) Space:: { sBlu...
by RussF
08 May 2024, 14:09
Forum: Ask for Help (v1)
Topic: Question regarding --> DllCall("DeleteObject", "Ptr", hBM)
Replies: 6
Views: 717

Re: Question regarding --> DllCall("DeleteObject", "Ptr", hBM)

1) I would say that once you are done with it, you can delete it.

2) See Freeing Objects. Either way should work.

Russ
by RussF
08 May 2024, 13:35
Forum: Ask for Help (v1)
Topic: Question regarding --> DllCall("DeleteObject", "Ptr", hBM)
Replies: 6
Views: 717

Re: Question regarding --> DllCall("DeleteObject", "Ptr", hBM)

In your first example, you are returning hBM from the function call, so you probably don't want to delete it before you return it. hBM is one of the arguments in the second example - I can't say what the overall effect of deleting it to the system would be. I guess my question is why? Are you experi...
by RussF
08 May 2024, 12:40
Forum: Ask for Help (v1)
Topic: Question regarding --> DllCall("DeleteObject", "Ptr", hBM)
Replies: 6
Views: 717

Re: Question regarding --> DllCall("DeleteObject", "Ptr", hBM)

Anything after a Return will not be executed.

Russ
by RussF
06 May 2024, 13:36
Forum: Off-topic Discussion
Topic: Antivirus Deleted our .ahk files (and AutoHotkey.exe)
Replies: 2
Views: 516

Re: Antivirus Deleted our .ahk files (and AutoHotkey.exe)

I got my first AV hit ever on AHK from Bitdefender (our managed AV system) at the end of March when I downloaded V2.0.12 . It did not quarantine them, just notified me as suspicious. I've honestly never heard of Defender actually deleting files (especially scripts, which are just text files.) It sho...
by RussF
06 May 2024, 11:35
Forum: Ask for Help (v2)
Topic: Append to script that is also #Included? Topic is solved
Replies: 2
Views: 183

Re: Append to script that is also #Included? Topic is solved

Try this:

Code: Select all

FileAppend("new text`n", A_ScriptDir "\included script.ahk")
Russ
by RussF
02 May 2024, 11:21
Forum: Ask for Help (v1)
Topic: Need help with a project
Replies: 4
Views: 468

Re: Need help with a project

Also... From https://www.autohotkey.com/docs/v1/Concepts.htm#names Although a variable name may consist entirely of digits, this is generally used only for incoming command line parameters. Such numeric names cannot be used in expressions because they would be seen as numbers rather than variables. ...
by RussF
02 May 2024, 10:23
Forum: Ask for Help (v1)
Topic: save and close Excel2010
Replies: 17
Views: 1330

Re: save and close Excel2010

flyingDman I don't disagree with you at all. While I am nowhere near your level of expertise with COM and may struggle coming up with the command structure I need, I CAN infer from context what a given command does and can usually edit it to my needs. Reading the room, the OP seemed clearly intimid...
by RussF
02 May 2024, 08:31
Forum: Ask for Help (v1)
Topic: save and close Excel2010
Replies: 17
Views: 1330

Re: save and close Excel2010

Now to see if I can incorporate the 'save to USB' code .... We simply need to incorporate flyingDman 's code above without the line that closes Excel. #Requires AutoHotkey v1.1.33+ ; Microsoft Excel - Book1.xlsx SetTitleMatchMode 2 WinActivate, ahk_class XLMAIN send ^s sleep 1000 ; adjust as necess...
by RussF
02 May 2024, 06:09
Forum: Ask for Help (v1)
Topic: save and close Excel2010
Replies: 17
Views: 1330

Re: save and close Excel2010

So, if we are to understand you correctly, Copying to a USB drive is no longer a priority because you are doing it 'your own way'. All you really want to do is save an open Excel spreadsheet - and double-clicking a desktop icon is easier to you than clicking File->Save in Excel or pressing Ctrl-S (w...
by RussF
29 Apr 2024, 09:09
Forum: Ask for Help (v1)
Topic: Swap left CTRL with left WIN in Win 11 - sometimes stuck
Replies: 1
Views: 208

Re: Swap left CTRL with left WIN in Win 11 - sometimes stuck

I believe your question was answered by @mikeyww when you posted it here in the V2 section two days ago. The solution posted should work in either version.

Russ
by RussF
23 Apr 2024, 13:33
Forum: Ask for Help (v2)
Topic: SendInput to Notepad++ not working if clipboard is empty
Replies: 2
Views: 173

Re: SendInput to Notepad++ not working if clipboard is empty

When I open Notepad++, the files that I had open when I closed it last are opened again and the tab for the last file used is highlighted. That is where the focus is, not in the edit window. Pasting anything to the tab will do nothing. That is why you must first click into the edit window. That bein...
by RussF
23 Apr 2024, 06:50
Forum: Ask for Help (v1)
Topic: Translation hotkey
Replies: 6
Views: 239

Re: Translation hotkey

I created the following script based on a function by teadrinker to access Google translate. My wife needed something to translate her weekly newsletter for the non-English speaking parents of some of her students. It's currently set up to translate English to Spanish, but is easily modified - just ...
by RussF
23 Apr 2024, 06:30
Forum: Ask for Help (v1)
Topic: End a process run by another user Topic is solved
Replies: 3
Views: 287

Re: End a process run by another user Topic is solved

If your organization is dependent on Sharepoint, I don't think it is a process that you should just indiscriminately kill, especially when in use by others logged in to the device. My first recourse would be to contact Rocket Software and find out exactly why it won't run with Sharepoint. It may not...
by RussF
22 Apr 2024, 13:25
Forum: Ask for Help (v2)
Topic: MsgBox not working
Replies: 1
Views: 89

Re: MsgBox not working

Try:

Code: Select all

If (result = "Yes")
Russ
by RussF
22 Apr 2024, 12:42
Forum: Ask for Help (v2)
Topic: Hotkey doesn't work Topic is solved
Replies: 2
Views: 114

Re: Hotkey doesn't work Topic is solved

In Windows 10 (and 11, I assume) - in Settings->Ease of Access->Keyboard->Print Screen Shortcut
you can map the PrtScn key to open screen snipping - no need for AHK (unless you don't want that hotkey).

Russ
by RussF
17 Apr 2024, 14:41
Forum: Wish List
Topic: Notify if not UTF-8? -- [Update: Not possible, me thinks]
Replies: 15
Views: 1083

Re: Notify if not UTF-8?

I would second that Steve. I have seen this issue pop up numerous times here in the past. Given the worldwide use of AHK whose languages use many characters that we in the USA do not, it would make sense for the launcher and compiler to analyze the source file for proper encoding.

Russ
by RussF
17 Apr 2024, 10:06
Forum: Ask for Help (v2)
Topic: disable touchpad Topic is solved
Replies: 6
Views: 208

Re: disable touchpad Topic is solved

marypoppins_1 , FWIW, I personally can't stand touchpads. I always use a mouse with my laptop because I found that when I was typing, my hand or thumb would accidentally brush across the touchpad and often the cursor would end up halfway across the screen. Most newer laptops have a settings panel f...

Go to advanced search