Search found 4787 matches

by jeeswg
06 Aug 2018, 15:50
Forum: Scripts and Functions
Topic: list Recent Items (My Recent Documents) (Start Menu)
Replies: 5
Views: 638

Re: list Recent Items (My Recent Documents) (Start Menu)

- Here are 2 different ways to get the files in recent order. One via the registry, one via a file loop. (Tested on Windows 7.) - The one disadvantage of the file loop is that sometimes some random old links persist in the folder. q:: ;get recent files in order (via the registry) ;CSIDL_RECENT := 8 ...
by jeeswg
06 Aug 2018, 15:30
Forum: Ask For Help
Topic: Check if variable has something
Replies: 11
Views: 172

Re: Check if variable has something

- I showed a two-liner that does nothing.
- I'm asking for a one-liner that does nothing. What's the best currently available option?
- A do nothing function can be useful for complicated if-else ladders.
by jeeswg
06 Aug 2018, 15:02
Forum: Ask For Help
Topic: Check if variable has something
Replies: 11
Views: 172

Re: Check if variable has something

- I too would like there to be an official 'do nothing' one-liner. - You can use two curly braces: if (foo != "") { } - Or Sleep 0: if (foo != "") Sleep, 0 - If there is something better than Sleep 0 I would like to know. - Alternatively, you might be interested in the 'continue'...
by jeeswg
06 Aug 2018, 14:58
Forum: Ask For Help
Topic: ahk_exe of notepad++ Topic is solved
Replies: 1
Views: 43

Re: ahk_exe of notepad++ Topic is solved

Try this: ControlSend, Scintilla1, % Clipboard, ahk_class Notepad++ In principle your script was correct, however, using the exe name doesn't always get you the main window, there can be multiple windows per exe. When I tried this, it returned a ToolTip window, not the main window. Cheers. q:: WinGe...
by jeeswg
06 Aug 2018, 14:55
Forum: Ask For Help
Topic: changes inside the txt file - a bit specific.
Replies: 5
Views: 68

Re: changes inside the txt file - a bit specific.

- Try this. Cheers. - I use 'Loop, Parse' to loop through each line, and InStr to find the 4th comma in each line. q:: ;insert '00' before 4th comma vText = ;continuation section ( AAMC,1,20180803,1555,62.25,62.25,62.25,62.25,100 AAU,1,20180803,0930,0.65,0.65,0.65,0.65,8681 ) vOutput := ""...
by jeeswg
06 Aug 2018, 11:54
Forum: Ask For Help
Topic: objects: check if a method/property exists
Replies: 13
Views: 208

Re: objects: check if a method/property exists

- What are you saying about the documentation? - Btw I read through all the objects pages this weekend, they're listed here: jeeswg's objects tutorial - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t=29232 - Have you never had any problems trying to read/understand/interp...
by jeeswg
06 Aug 2018, 11:16
Forum: Bug Reports
Topic: if statement influences floating point number
Replies: 13
Views: 213

Re: if statement influences floating point number

- The 'if' line appears to have no effect on the variable. - What does appear to have an effect is how you store the variable in the array. - E.g. here I store the variable as a number and as a string in 2 different keys: oArray := [vNum, "" vNum] q:: vPath := A_Desktop "\z " A_N...
by jeeswg
06 Aug 2018, 10:29
Forum: Ask For Help
Topic: 64-bit Inconsistencies
Replies: 11
Views: 225

Re: 64-bit Inconsistencies

- @Helgef: What are you trying to say about the 2 rules? Those 2 rules are the keys to getting structs to work. - @Alguimist: It would probably be a good idea to state the structs for both of these: MSGBOXPARAMS and MSGBOXDATA structures. For MSGBOXDATA, to state what you have so far. Perhaps there'...
by jeeswg
05 Aug 2018, 18:19
Forum: Ask For Help
Topic: 64-bit Inconsistencies
Replies: 11
Views: 225

Re: 64-bit Inconsistencies

- You can use C++ to retrieve the sizes of named structs or structs with definitions (as x64/x32, Unicode/ANSI). - IIRC a struct's size should be the multiple of the largest item (size 1/2/4/8). And, an item should start at a multiple of its size (so 1/2/4/8). In this context, any structs within a s...
by jeeswg
05 Aug 2018, 12:16
Forum: Scripts and Functions
Topic: [v1] v2's CallbackCreate function for AHK v1.
Replies: 2
Views: 118

Re: [v1] v2's CallbackCreate function for AHK v1.

- Hello Helgef well done. :wave: :clap: - Btw I might include this, or a version of it, in the next update of 'AHK v2 functions for AHK v1', if that's OK. Is that OK? Cheers. commands as functions (AHK v2 functions for AHK v1) - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=37&a...
by jeeswg
05 Aug 2018, 11:29
Forum: Ask For Help
Topic: Help to convert HTML to PDF
Replies: 4
Views: 76

Re: Help to convert HTML to PDF

Perhaps you need to add double quotes around filenames.
by jeeswg
05 Aug 2018, 11:24
Forum: Ask For Help
Topic: open my computer and switch between explorers
Replies: 1
Views: 28

Re: open my computer and switch between explorers

- Interesting, I tried 'Run, explorer.exe' on Windows 7 and it opened the 'Libraries' folder, as you said. - Here is a script to open My Computer. q:: ;show My Computer (tested on Windows 7) Run, ::{20d04fe0-3aea-1069-a2d8-08002b30309d} ;My Computer return - Here are some relevant links. Cheers. CLS...
by jeeswg
05 Aug 2018, 10:29
Forum: Ask For Help
Topic: How can I get the text of the column header of a SysListView32? Topic is solved
Replies: 30
Views: 502

Re: How can I get the text of the column header of a SysListView32? Topic is solved

- Many thanks for your tests. - You would put this at the top of a script to give you admin rights, or right-click a file and choose 'Run as administrator'. if !A_IsAdmin Run, % "*RunAs " (A_IsCompiled ? "" : A_AhkPath " ") """" A_ScriptFullPath &quo...
by jeeswg
05 Aug 2018, 02:19
Forum: Ask For Help
Topic: Why this simple script needs a reload first to work? Topic is solved
Replies: 9
Views: 133

Re: Why this simple script needs a reload first to work? Topic is solved

- Put the is admin check at the top of the script. - The issue is whether the script is run as admin, rather than whether the user is admin. - I've outlined various things to try. There may be other ideas that people can think of. - So it works on Windows 10, but not Windows 7. - If you double-click...
by jeeswg
05 Aug 2018, 01:27
Forum: Ask For Help
Topic: Why this simple script needs a reload first to work? Topic is solved
Replies: 9
Views: 133

Re: Why this simple script needs a reload first to work? Topic is solved

- Possibly you could add it to the Windows Task Scheduler (which I haven't used in years) or make it reopen itself as admin.
by jeeswg
05 Aug 2018, 01:22
Forum: AutoHotkey v2 Development
Topic: AHK V2: Why does auto-execute thread get interrupted by timers...
Replies: 23
Views: 321

Re: AHK V2: Why does auto-execute thread get interrupted by timers...

- Thanks for the interesting info. - I had wondered if the default settings could be set via directives. (Which would be less hacky than commands having a special change-the-defaults role only within the auto-execute section.) - E.g. something like '#Set A_DetectHiddenWindows := 1'. Or perhaps '#Set...
by jeeswg
05 Aug 2018, 00:00
Forum: Gaming
Topic: Any program or script out there that records inputs and delays down to the millisecond?
Replies: 1
Views: 104

Re: Any program or script out there that records inputs and delays down to the millisecond?

Something like this might be useful. vLog := "" VarSetCapacity(vLog, 1000000*2) q:: w:: vLog .= A_TickCount "`t" A_ThisHotkey "`r`n" return e:: vOutput := "" VarSetCapacity(vOutput, StrLen(vLog)*2) Loop, Parse, vLog, `n, `r { oTemp := StrSplit(A_LoopField, &qu...
by jeeswg
04 Aug 2018, 23:50
Forum: Ask For Help
Topic: Why this simple script needs a reload first to work? Topic is solved
Replies: 9
Views: 133

Re: Why this simple script needs a reload first to work? Topic is solved

- You could have one script that sleeps for a long time, then starts another script. - I don't know if there is a problem that if a script starts too early, then any hotkeys aren't registered. Did all of the hotkeys fail? - Also, perhaps you have hotkeys from different scripts interfering with each ...
by jeeswg
04 Aug 2018, 23:14
Forum: Ask For Help
Topic: objects: check if a method/property exists
Replies: 13
Views: 208

Re: objects: check if a method/property exists

- Good points, thanks.
- Btw are there good names for distinguishing between 'MyProperty', 'MyProperty.get' and 'MyProperty.set' in my example above. E.g. properties/sub-properties/methods/sub-methods, something else?
by jeeswg
04 Aug 2018, 16:53
Forum: Ask For Help
Topic: How can I get the text of the column header of a SysListView32? Topic is solved
Replies: 30
Views: 502

Re: How can I get the text of the column header of a SysListView32? Topic is solved

- My JEE_LVGetColOrder/JEE_LVSetColOrder functions should be working fine if anyone would be kind enough to test them.
- Note: save any files before testing on programs.
- Note: perhaps for some programs you must run them as admin.

Go to advanced search