Search found 1223 matches

by FanaticGuru
Today, 14:21
Forum: Ask For Help
Topic: Protecting AHK code against piracy
Replies: 7
Views: 159

Re: Protecting AHK code against piracy

There is no easy way to do what you want. The ironic things is that any anti-piracy code that did a decent job would be far more valuable than 99.9% of the AHK code that people want to protect. Some of the compiling and obfuscation tools available will give the casual user problems. If your code is...
by FanaticGuru
Yesterday, 14:42
Forum: Ask For Help
Topic: Protecting AHK code against piracy
Replies: 7
Views: 159

Re: Protecting AHK code against piracy

There is no easy way to do what you want. The ironic things is that any anti-piracy code that did a decent job would be far more valuable than 99.9% of the AHK code that people want to protect. Some of the compiling and obfuscation tools available will give the casual user problems. If your code is ...
by FanaticGuru
Yesterday, 13:04
Forum: Ask For Help
Topic: Find next empty cell in Excel worksheet column
Replies: 4
Views: 46

Re: Find next empty cell in Excel worksheet column

Try this :) oSheet.Range("B:B").Find("*",,,,, 2).Offset(1, 0).Value := clipboard ; xlPrevious = 2 It is important to realize that the "Find" method will not work if the column is completely empty. I use something like this to handle that: Column := 2 xlApp := ComObjActive("Excel.Application") xlCel...
by FanaticGuru
07 Dec 2018, 14:02
Forum: Bug Reports
Topic: Hotstring Bug?
Replies: 11
Views: 312

Re: Hotstring Bug?

Looks buggy. Out of this: :X:T1::MisHostrings() Hotstring(":X:T2", MisHostrings) Hotstring(":X:T3", MisHostrings()) Hotstring(":X:T4", "MisHostrings") Hotstring(":X:T5", "MisHostrings()") Only T1 shows the MsgBox. See auto execute . I don't believe that was meant as a literal working example. T2, T...
by FanaticGuru
06 Dec 2018, 16:58
Forum: Ask For Help
Topic: Create a floating window liket this here Topic is solved
Replies: 2
Views: 90

Re: Create a floating window liket this here Topic is solved

i found a pretty cool script, and i want to create a "Floating window" like this But i understand nothing from it xD can somebody "encode" it that i can create my own window? Or do you know scripts like this here? I have no idea what part of that script you think is cool and that you want to copy. ...
by FanaticGuru
06 Dec 2018, 14:27
Forum: Bug Reports
Topic: Hotstring Bug?
Replies: 11
Views: 312

Re: Hotstring Bug?

Looks buggy. Out of this: :X:T1::MisHostrings() Hotstring(":X:T2", MisHostrings) Hotstring(":X:T3", MisHostrings()) Hotstring(":X:T4", "MisHostrings") Hotstring(":X:T5", "MisHostrings()") Only T1 shows the MsgBox. I agree. I can't get the "X" option to work when creating a hotstring with the Hotstr...
by FanaticGuru
28 Nov 2018, 17:11
Forum: Scripts and Functions
Topic: [Class] WinHook
Replies: 17
Views: 787

Re: [Class] WinHook

Something odd happened following the last update. When I run it now, none of the examples work. Same behavior on Win7 Pro 64-bit SP1 and Win10 Pro with all updates (different computers of course). November 27, 2018—KB4467682 (OS Build 17134.441) on Windows 10 Pro, works fine for me. I had a similar...
by FanaticGuru
25 Nov 2018, 16:58
Forum: Scripts and Functions
Topic: [Class] WinHook
Replies: 17
Views: 787

Re: [Class] WinHook

Updated on First Post Update: 2018 11 23 Static RegisterCallBack Added Report method Added Remove method Return Index or Handle from Add method Use Index or Handle to Remove or Unhook Clean up Array of Hooks when Unhooked or Removed DetectHiddenWindows On Return value from user function Returning v...
by FanaticGuru
21 Nov 2018, 17:54
Forum: Scripts and Functions
Topic: Hotkey Help - Display Active AHK Hotkeys and Hotstrings
Replies: 42
Views: 16263

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Updated in First Post Change Log: Update 2018 11 21 Improved Find command location. Can dock and undock with the location being remembered. Will also save location between sessions if option turned on through the settings. Making the Find dialog a child window of the Help dialog had a lot of limita...
by FanaticGuru
21 Nov 2018, 14:22
Forum: AutoHotkey v2 Development
Topic: Library Functions with "ahk2" Extension
Replies: 3
Views: 237

Re: Library Functions with "ahk2" Extension

Maybe it woduld be good if we can select the extension ahk registers for itself when we install the program. I would also reccomend the AHK-EXE-SWAPPER and just use .ahk for all ahk files. Yea, I thought it would be nice if you could set the extension some way even if within the script with somethi...
by FanaticGuru
21 Nov 2018, 13:23
Forum: Scripts and Functions
Topic: [Class] WinHook
Replies: 17
Views: 787

Re: [Class] WinHook

Some notes, WinHook.Shell.Message doesn't consider what is returned from the user's function, see What the Function Should Return . If the function returns a non-zero integer, that should probably be returned directly. In WinHook.Event.Add , you only need to call registercallback ones, for example,...
by FanaticGuru
20 Nov 2018, 20:05
Forum: AutoHotkey v2 Development
Topic: Library Functions with "ahk2" Extension
Replies: 3
Views: 237

Library Functions with "ahk2" Extension

I just started using AutoHotkey v2. I plan to continue using both v1 and v2 for quite awhile as I slowly transition. I have both v1 and v2 installed and I set things up to use the ahk2 extension for the v2 scripts. Got it all working with editing the register so that ahk2 scripts run properly and Wi...
by FanaticGuru
19 Nov 2018, 21:04
Forum: Ask For Help
Topic: Detecting and moving a window with multiple monitors
Replies: 1
Views: 99

Re: Detecting and moving a window with multiple monitors

You might try something like this: Loop { IfWinExist, Breeze Systems Photobooth { WinGetTitle, Title, Breeze Systems Photobooth if Title contains 1.jpg WinMove, A, , 1600, 0 else WinMove, A, , 0, 0 ; back to first screen if Title contains printing_confirmed.jpg { soundbeep Gui, Show GoSub, anzeigen ...
by FanaticGuru
19 Nov 2018, 20:39
Forum: Scripts and Functions
Topic: [Class] WinHook
Replies: 17
Views: 787

[Class] WinHook

This is a class to make working with Window Shell Hooks and Window Event Hooks easier. These type hooks can be set manually with DllCall("RegisterShellHookWindow"...) and DllCall("SetWinEventHook"...) but it is rather complicated. [Class] WinHook ; [Class] WinHook ; Fanatic Guru ; 2018 11 23 ; ; Cla...
by FanaticGuru
19 Nov 2018, 19:54
Forum: Ask For Help
Topic: How to appear a msgbox when I activate specific window? Topic is solved
Replies: 4
Views: 215

Re: How to appear a msgbox when I activate specific window? Topic is solved

Here is a class I created called WinHook that makes working with Window Shell Hooks and Window Event Hooks much easier. WinHook.Shell.Add("Created",,, "NOTEPAD.EXE",1) ; Notepad Window Created Created(Win_Hwnd, Win_Title, Win_Class, Win_Exe, Win_Event) { MsgBox Created WinGet, PID, PID, ahk_id %Win_...
by FanaticGuru
16 Nov 2018, 17:19
Forum: Ask For Help
Topic: Comparing large list of strings to user input
Replies: 11
Views: 274

Re: Comparing large list of strings to user input

object := {other: "This is a test", another: "This is another test", different: "Totally different one"} usrinput := "other" if (Object.HasKey(usrinput) = true){ display := object(usrinput) MsgBox % display }else{ MsgBox, It didn't work :( } It is normally not worth the trouble to seperately check ...
by FanaticGuru
12 Nov 2018, 12:38
Forum: Scripts and Functions
Topic: Hotkey Help - Display Active AHK Hotkeys and Hotstrings
Replies: 42
Views: 16263

Re: FIND BOX issues

Let me begin by saying your new FIND function is awesome. Your code is to be admired. I also think your script should be showcased. I do, however, have a few problems/issues/suggestions as per the FIND function. And, yes, I realize it is new, so you may have already considered some of things I have...
by FanaticGuru
09 Nov 2018, 18:59
Forum: Scripts and Functions
Topic: Hotkey Help - Display Active AHK Hotkeys and Hotstrings
Replies: 42
Views: 16263

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Thanks for the update, FG. I believe this code is missing from the page at the link on page 1 of this topic. I added it back in and it works: AHKScripts(ByRef Array) { DetectHiddenWindows, % (Setting_A_DetectHiddenWindows := A_DetectHiddenWindows) ? "On" : WinGet, AHK_Windows, List, ahk_class AutoH...
by FanaticGuru
09 Nov 2018, 16:30
Forum: Ask For Help
Topic: Excel COM - pull variable from other function variable??
Replies: 2
Views: 126

Re: Excel COM - pull variable from other function variable??

So the last part, when saving. I give the user the option to select saving their file as a .xlsx and .xlsm, but my problem is that I don't know what to set the SaveAs FileFormat variable as? I'm not sure if this gets recorded in the fileToSave variable in some way, although I suspect that it does. ...
by FanaticGuru
09 Nov 2018, 15:44
Forum: Scripts and Functions
Topic: Hotkey Help - Display Active AHK Hotkeys and Hotstrings
Replies: 42
Views: 16263

Re: Hotkey Help - Display Active AHK Hotkeys and Hotstrings

Updated in First Post Change Log: Version 2.94 (2018-10-22) Added a "Find" command to find text within the Help dialog. When the Help dialog is active, Control+f will bring up the Find box. This is done through a class called SearchEdit which is written in a generic way that could be used with othe...

Go to advanced search