Search found 1304 matches

by FanaticGuru
27 Oct 2014, 14:34
Forum: Scripts and Functions
Topic: Independenator (Embed Library Functions and #Include)
Replies: 16
Views: 3488

Re: Independenator (Embed Library Functions and #Include)

I do not want to load the entire library only the functions that are needed from the library I assumed that by "library", you meant a "library" - %A_ScriptDir%\Lib is the "local library", for instance. AutoHotkey loads the entire script file. Ahk2Exe includes the entire script file. Trying to do ot...
by FanaticGuru
25 Oct 2014, 23:25
Forum: Scripts and Functions
Topic: [LIB] TrayIcon - Sean's TrayIcon for Unicode and 64 bit
Replies: 61
Views: 22037

Re: [LIB] TrayIcon - Sean's TrayIcon for Unicode and 64 bit

FG, what's the difference between TrayIcon_Remove and TrayIcon_Delete? Also, what is 'Command identifier associated with the button (cmdID)'? I believe TrayIcon_Remove and TrayIcon_Delete both end up doing the same thing by different means. One uses SendMessage to get it done the other uses a DLL c...
by FanaticGuru
23 Oct 2014, 03:05
Forum: Scripts and Functions
Topic: Independenator (Embed Library Functions and #Include)
Replies: 16
Views: 3488

Re: Independenator (Embed Library Functions and #Include)

Then the script is scanned for custom functions that are not build into AHK and not defined within the script. These it assumes are library functions There's an easier and more reliable way: do the same think Ahk2Exe does. Run AutoHotkey.exe /iLib OutputFilename.ahk Script.ahk . I do not want to lo...
by FanaticGuru
22 Oct 2014, 20:00
Forum: Scripts and Functions
Topic: Independenator (Embed Library Functions and #Include)
Replies: 16
Views: 3488

Re: Independenator (Embed Library Functions and #Include)

UPDATED SCRIPT IN FIRST POST

Change Log: Version 1.03
Tweaked RegEx to fix some issues that could arise with finding certain #include and library functions.

FG
by FanaticGuru
20 Oct 2014, 16:55
Forum: Ask For Help
Topic: Better text extraction from clipboard?
Replies: 4
Views: 797

Re: Better text extraction from clipboard?

Owen wrote:Ta!

However, got what I wanted by:
#^v::
textclip = %clipboard%
clipboard = %textclip%
Send ^v
return

Faster and less added CRs. . . Not sure why it's better, FWIW.
Why not this:

Code: Select all

#^v::
Send ^v
return
or just this
#^v::^v

FG
by FanaticGuru
18 Oct 2014, 19:53
Forum: Ask For Help
Topic: Rest of script won't wait for GUI input
Replies: 10
Views: 1422

Re: Rest of script won't wait for GUI input

If you are expecting the user to only have open one version of your template spreadsheet and then other non-related spreadsheets, you could have your script look through all the open Excel spreadsheets for a specific cells value to identify your AHK spreadsheet. For example if cell A1 contained "AHK...
by FanaticGuru
16 Oct 2014, 18:43
Forum: Gaming
Topic: Suggestions for building a game in AHK
Replies: 5
Views: 1410

Re: Suggestions for building a game in AHK

This is a pretty cool example of a game in AHK. http://www.autohotkey.com/board/topic/54961-ahkroid-classic-game/ I am going to repost the code just in case it gets lost on that site some day. ; heart form for your girl friend... ; formR1:="0,-20,8,-28,20,-28,28,-20,28,-8,16,12,0,28,-16,12,-28,-8,-2...
by FanaticGuru
10 Oct 2014, 01:52
Forum: Scripts and Functions
Topic: [Function] ScrollBox
Replies: 5
Views: 1869

Re: [Function] ScrollBox

Nice :) Can be used for debugging and will also come in handy for built-in help/docs for scripts. I have something similar which dumps the text into the script's main window. No formatting and buttons though... mainly for debugging only. Yea, I had a simpler version without any options or buttons t...
by FanaticGuru
10 Oct 2014, 01:36
Forum: Scripts and Functions
Topic: AHK Startup (Consolidate AHK Scripts' Tray Icons)
Replies: 67
Views: 31412

Re: AutoHotkey Startup (Consolidate AHK Scripts' Tray Icons)

This is an old mystery, that I have finally solved... or at least identified the source. You need to be sure that you are using the latest version which is what is on the first page. You need to make sure these lines stay commented out like they are in the first page script: ; Shortcut Trick to Get...
by FanaticGuru
09 Oct 2014, 18:35
Forum: Scripts and Functions
Topic: [Function] ScrollBox
Replies: 5
Views: 1869

[Function] ScrollBox

ScrollBox Creates a Gui that is used somewhat like MsgBox except that it has scrollbars and is resizable by dragging the corner. It also allows for other formatting options similar to any other Gui but in an easy to use function. ;{ ScrollBox ; Fanatic Guru ; 2016 11 18 ; Version 1.20 ; ; FUNCTION ...
by FanaticGuru
08 Oct 2014, 02:56
Forum: Ask For Help
Topic: Problems with text wrapping
Replies: 3
Views: 497

Re: Problems with text wrapping

I have strings of text to go into a Gui text control of varying length. They all contain two parentheses separated by 7 spaces (Don't know how to show this): ( ) I need to prevent the text wrapping between the parentheses. Using underscores to connect them is not an option - it needs to appear blan...
by FanaticGuru
03 Oct 2014, 14:26
Forum: Ask For Help
Topic: Get order of windows in which they was opened (not Alt+Tab)
Replies: 4
Views: 1132

Re: Get order of windows in which they was opened (not Alt+T

Example of handling the information in an array: WinGet, Window, List if (Window > 0){ Loop, %Window% { aid := Window%A_Index% WinGet, PID, PID, ahk_id %aid% hProc := DllCall("OpenProcess", UInt, PROCESS_QUERY_INFORMATION := 0x400, UInt, 0, UInt, PID, Ptr) DllCall("GetProcessTimes", Ptr, hProc, PtrP...
by FanaticGuru
03 Oct 2014, 13:34
Forum: Ask For Help
Topic: Get order of windows in which they was opened (not Alt+Tab)
Replies: 4
Views: 1132

Re: Get order of windows in which they was opened (not Alt+T

For windows that running in different processes I figured out that I simply could use COM object: To retrieve CreationTime of process, but since I'm not so familiar with AutoHotKey yet, I'm not able to use it for sort array received from WinGet, List Not entirely sure I understand exactly what you ...
by FanaticGuru
03 Oct 2014, 13:04
Forum: Ask For Help
Topic: SOLVED: Need Help With Timer (current time to specific time)
Replies: 4
Views: 1390

Re: SOLVED: Need Help With Timer (current time to specific t

Even though this is solved here is code that does something similar for someone that wanted to have a countdown till they got off work in this thread http://ahkscript.org/boards/viewtopic.php?f=5&t=3566 FutureTime := "17:30:00" ; Each must be two digits and use 24 hour time FutureTime := A_YYYY A_MM...
by FanaticGuru
18 Sep 2014, 00:48
Forum: Ask For Help
Topic: Windows 7 and Win key limitations
Replies: 3
Views: 898

Re: Windows 7 and Win key limitations

Does this work? WinLLock(state=1){ ;TRUE enables Win+L to lock the workstation. FALSE disables the Windows hook, allowing AHK to capture #L RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Policies\System, DisableLockWorkstation, % (state ? 0 : 1) } This is the "tur...
by FanaticGuru
17 Sep 2014, 18:36
Forum: Ask For Help
Topic: Windows 7 and Win key limitations
Replies: 3
Views: 898

Re: Windows 7 and Win key limitations

Windows does not want you to overwrite Win+L. It is hooked in at a low level like Ctrl+Alt+Del, meant to work no matter what other programs are doing, in an uninterruptable way.

So a AHK solution is difficult.

But you can turn this feature off completely in Windows.

FG
by FanaticGuru
12 Sep 2014, 15:12
Forum: Ask For Help
Topic: Problems with Sliders
Replies: 9
Views: 1242

Re: Problems with Sliders

Also another question: Device1Hi=-32768 Device2Hi=-32768 Device3Hi=-32768 Device4Hi=-32768 Device1Lo=-32768 Device2Lo=-32768 Device3Lo=-32768 Device4Lo=-32768 Is there any way of making this more compact? If you are just trying to make all those variable equal to the same thing you can chain them t...
by FanaticGuru
11 Sep 2014, 01:00
Forum: Ask For Help
Topic: Boolean Search as the needle searching a haystack
Replies: 52
Views: 6029

Re: Boolean Search as the needle searching a haystack

but I do want a case sensitive/insensitive option and a whole-word option. The function already had a case-sensitive option. Added a word boundary option for left and right side. SearchBoolean(Haystack, Needle, True, 1, -1) The "True" makes it case-sensitive. The "1" makes the Needle have to have a...
by FanaticGuru
10 Sep 2014, 14:24
Forum: Ask For Help
Topic: Boolean Search as the needle searching a haystack
Replies: 52
Views: 6029

Re: Boolean Search as the needle searching a haystack

Haystack:="hello word Microsoft" Needle := "NOT (Microsoft word)" Should be true. Need more tweaking. Superfluous () were causing problems. NOT Microsoft word worked fine but the unneeded NOT (Microsoft word) did not. Add a check to remove unneeded (). ;~ Haystack := "Hello world, this is a beta te...
by FanaticGuru
10 Sep 2014, 02:06
Forum: Ask For Help
Topic: Boolean Search as the needle searching a haystack
Replies: 52
Views: 6029

Re: Boolean Search as the needle searching a haystack

I know this has pretty much been solved to the satisfaction of the original post but it caught my eye and looked like an interesting parsing exercise. Here is my more concise approach with everything in one function without the dependency of a library function which seems overkill. Haystack := "Hell...

Go to advanced search