Search found 1208 matches

by FanaticGuru
12 Apr 2014, 12:25
Forum: Ask For Help
Topic: Sleep till Excel is loaded
Replies: 4
Views: 900

Re: Sleep till Excel is loaded

can While-statement be used with SetTitleMatchMode, 3 to avoid this problem and match only an exact title? It can be fooled by stuff like naming a notepad text file "Microsoft Excel" etc. which will create a window called "Microsoft Excel - Notepad" but should work for general use. FG Yes, unless y...
by FanaticGuru
11 Apr 2014, 16:30
Forum: Ask For Help
Topic: Sleep till Excel is loaded
Replies: 4
Views: 900

Re: Sleep till Excel is loaded

This While-statement will cause AHK to sleep until it finds a window with "Microsoft Excel" in the title. While !WinExist("Microsoft Excel") Sleep 100 MsgBox Excel is Open It can be fooled by stuff like naming a notepad text file "Microsoft Excel" etc. which will create a window called "Microsoft Ex...
by FanaticGuru
07 Apr 2014, 19:09
Forum: Ask For Help
Topic: Problem with WORD script when using three key combination
Replies: 6
Views: 1315

Re: Problem with WORD script when using three key combinatio

The key history highlights the issue.] I should have thought to use the key history to see what is going on better. Notice how the modifiers are being released after the alt key was sent. It seems the control up event was disrupting the menu. This seems to occur because {lalt} is the first key in t...
by FanaticGuru
07 Apr 2014, 16:34
Forum: Ask For Help
Topic: Problem with WORD script when using three key combination
Replies: 6
Views: 1315

Re: Problem with WORD script when using three key combinatio

It is somewhat academic at this point as a one second delay is probably tolerable for this type of script but if this was a more time critical application here is an example of implicitly checking if keys are pressed down and sleeping until they are all released. ^+1:: while GetKeyState("Ctrl") or G...
by FanaticGuru
07 Apr 2014, 12:44
Forum: Ask For Help
Topic: Problem with WORD script when using three key combination
Replies: 6
Views: 1315

Re: Problem with WORD script when using three key combinatio

Some times I have better luck in situations like this to use the "UP" option with the hotkey to cause it to fire when the buttons are released UP and not when they are pressed down. ^+1 UP:: You have to be careful about your script sending keys while you are still holding down modifier keys like Alt...
by FanaticGuru
07 Apr 2014, 12:38
Forum: Ask For Help
Topic: Get "copied" text
Replies: 5
Views: 1696

Re: Get "copied" text

@ FanaticGuru ok, got yours to work. I just needed to move the dictionary creation part so that it now looks like this: ^!b:: Text := ComObjCreate("Scripting.Dictionary") Text.item("z.B.") := "z. B." Text.item("z.b.") := "z. B." Text.item("z. B.") := "z. B." Text.item("z. b.") := "z. B." Text.item(...
by FanaticGuru
04 Apr 2014, 14:05
Forum: Ask For Help
Topic: Get "copied" text
Replies: 5
Views: 1696

Re: Get "copied" text

Here is my approach. I used ComObjCreate("Scripting.Dictionary") to get around the limitation that normal object keys are not case sensitive. Text := ComObjCreate("Scripting.Dictionary") Text.item("z.B.") := "z. B." Text.item("z.b.") := "z. B." Text.item("z. B.") := "z. B." Text.item("z. b.") := "z....
by FanaticGuru
03 Apr 2014, 20:18
Forum: Ask For Help
Topic: Multiple checkboxes
Replies: 30
Views: 3976

Re: Multiple checkboxes

Knowing when to use the %% and when not is really the trickiest thing to remember in AHK. I would prefer that everywhere expect an expression and literal text always needing to be "quoted". Yes!!! It trips me up all the time. Some kind of consistency would be nice (specially for us relative newbies...
by FanaticGuru
03 Apr 2014, 19:04
Forum: Ask For Help
Topic: Multiple checkboxes
Replies: 30
Views: 3976

Re: Multiple checkboxes

But newname := SubStr(Name, %startpos%, %length%) doesn't work. I have not looked at your script but in the above you do not need the %%. newname := SubStr(Name, startpos, length) Knowing when to use the %% and when not is really the trickiest thing to remember in AHK. It is plagued by some legacy ...
by FanaticGuru
03 Apr 2014, 17:04
Forum: Scripts and Functions
Topic: [Library] GuiVar - Use Gui as Variable Between AHK Scripts
Replies: 44
Views: 7271

[Library] GuiVar - Use Gui as Variable Between AHK Scripts

[Library] GuiVar I needed one script to be able to share a variable with multiply other scripts. Some ways this could be done are by saving the information to a file and then having all the scripts access that file. Or it could possible be done with PostMessage but that is fairly complicated. Or al...
by FanaticGuru
03 Apr 2014, 13:09
Forum: Ask For Help
Topic: Can't get Send to work...
Replies: 12
Views: 1451

Re: Can't get Send to work...

Thanks for that response. But, on further investigation, the left shift and left alt must be pressed for Win8.1 to swap in/out of high contrast mode. So that sent me on another dozen attempts to have AHK send out that key sequence. Still no luck though. From what I understand Windows blocks the sim...
by FanaticGuru
02 Apr 2014, 15:02
Forum: Ask For Help
Topic: Multiple checkboxes
Replies: 30
Views: 3976

Re: Multiple checkboxes

"a msgbox at the top of a script and display a var named path it contains nonsense" I see what you mean. I tried to "empty" the path var with path := "" immediately before the msgbox command but it still contains nonsense. "Path" is an environment variable. There are many environment variables that...
by FanaticGuru
31 Mar 2014, 14:51
Forum: Ask For Help
Topic: Question about AHK signatures
Replies: 6
Views: 981

Re: Question about AHK signatures

Looking at my function above, I see that my programming techniques have improved in the 9 months since I wrote that. Below is a version that uses ByRef which is probably a better way of coding it since the array does not have to be defined before calling the function. ;[Function] AHK_Scripts ; Fanat...
by FanaticGuru
31 Mar 2014, 12:20
Forum: Ask For Help
Topic: Question about AHK signatures
Replies: 6
Views: 981

Re: Question about AHK signatures

A script I wrote at the link below contains a function called AHK_Scripts that will return information about all the AutoHotkey scripts currently running. Hotkey Help - Help Dialog for Currently Running AHK Scripts Here is just the function: ;[Function] AHK_Scripts ; Fanatic Guru ; 2013 06 20 ; ; Fu...
by FanaticGuru
28 Mar 2014, 12:22
Forum: Ask For Help
Topic: help with this script
Replies: 6
Views: 660

Re: help with this script

doh!! i had to erase my message cause i was going to suggest there is an array solution ! An array solution seems the simplest to me. Months := ["January","February","March","April","May","June","July","August","September","October","November","December"] Yr = 2015 Mth = 01 MsgBox % Mth " - " Yr "`...
by FanaticGuru
26 Mar 2014, 17:21
Forum: Scripts and Functions
Topic: [Function] GuiButtonIcon
Replies: 24
Views: 6322

Re: [Function] GuiButtonIcon

It looks like the image list facility is designed around icons. Can your script be adapted to place any picture file on a button? I know PNGs can be done. Just make sure the PNG is where it will be found or include the full path. Also choose an index of 0. GuiButtonIcon(Icon, "C:\Users\Guru\Desktop...
by FanaticGuru
25 Mar 2014, 20:08
Forum: Scripts and Functions
Topic: AHK Startup (Consolidate AHK Scripts' Tray Icons)
Replies: 67
Views: 29394

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

Updated Script on First Page Change Log (2014-03-25): Commented Out this code ; Shortcut Trick to Get Windows 7 to Update Hidden Tray Send {LWin Down}b{LWin Up}{Enter}{Escape} Win+B is a keyboard shortcut in Windows 7 to the little up arrow in the Tray Notification area, then {Enter} opens the hidd...
by FanaticGuru
25 Mar 2014, 16:57
Forum: Scripts and Functions
Topic: [Function] GuiButtonIcon
Replies: 24
Views: 6322

Re: [Function] GuiButtonIcon

Doesn't the following essentially do the same thing using the native Gui commands? Gui, Add, Picture, x%x_location% y%y_location% w-1 h10 hwndPicHandle gGuiCall, %A_ScriptDir%\263.ico The width and height parameters can adjust the rendered size. The only thing missing is flagging a missing icon fil...
by FanaticGuru
25 Mar 2014, 14:15
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 760
Views: 247604

Re: SciTE4AutoHotkey v3.0.05 [Updated March 23 2014]

It seems the arrow keys are blocked in some cases such as if you have a wrapped text and the cursor is at previous row column 1 (or home) down arrow gets stuck at the wrap. I have experienced this also. Basically if you hold Shift+DownArrow to attempt to highlight a section of text, if you encounte...
by FanaticGuru
24 Mar 2014, 20:19
Forum: Scripts and Functions
Topic: AHK Startup (Consolidate AHK Scripts' Tray Icons)
Replies: 67
Views: 29394

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

Is it possible to disable/comment out the "Script lines most recently executed..." window that pops up when Startup completes? Thanks! I do not get any pop up like that. That sounds like one of your scripts has the command ListLines somewhere in it. That is a command that is generally only used for...

Go to advanced search