Search found 5119 matches

by jeeswg
Today, 12:27
Forum: Ask For Help
Topic: How to perform a find ?
Replies: 2
Views: 24

Re: How to perform a find ?

I haven't tested it, but perhaps something like this: ;AutoHotkey-scripts/ms office constants (all).ahk at master · jeeswg/AutoHotkey-scripts · GitHub ;https://github.com/jeeswg/AutoHotkey-scripts/blob/master/ms office constants (all).ahk ;TextRange.Expand Method (Publisher) | Microsoft Docs ;https:...
by jeeswg
Today, 06:03
Forum: Forum Issues
Topic: forum listings not updated
Replies: 7
Views: 263

Re: forum listings not updated

Just collecting a round-up of some issues. [forum number changed from 5 to 76] Ask For Help - AutoHotkey Community https://autohotkey.com/boards/viewforum.php?f=76 [post count incorrect][could be incorrect for other threads] Will AutoHotkey v2 Syntax Be More Confusing For Newbies? - AutoHotkey Commu...
by jeeswg
Yesterday, 18:17
Forum: Ask For Help
Topic: Manipulate an Explorer window found by COM Shell.Application Topic is solved
Replies: 5
Views: 59

Re: Manipulate an Explorer window found by COM Shell.Application Topic is solved

See JEE_ExpWinSetDir, here:
Explorer window interaction (folder windows/Desktop, file/folder enumeration/selection/navigation/creation) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=35041
by jeeswg
Yesterday, 17:19
Forum: Ask For Help
Topic: Weird error on loading script
Replies: 4
Views: 49

Re: Weird error on loading script

Is there an invisible character here: Sle[HERE]ep? E.g. a CR or an LF.
by jeeswg
Yesterday, 14:54
Forum: Ask For Help
Topic: Manipulate an Explorer window found by COM Shell.Application Topic is solved
Replies: 5
Views: 59

Re: Manipulate an Explorer window found by COM Shell.Application Topic is solved

The key thing is to get the hWnd. Cheers.

Code: Select all

for oWin in ComObjCreate("Shell.Application").Windows
	WinMinimize, % "ahk_id " oWin.HWND
Btw in your script you'd probably need curly braces, to put both lines into the same code block. You could use SoundBeep or MsgBox etc to confirm this.
by jeeswg
Yesterday, 14:41
Forum: Ask For Help
Topic: Writing function that won't hit #Warn Topic is solved
Replies: 3
Views: 41

Re: Writing function that won't hit #Warn Topic is solved

- Looks good. I would use ret:="" to make it more forwards compatible. - In theory you should use local by itself, to make all variables local, or individually specify each variable inside in the function as local (excluding the parameter variables). - For a folder location, this might be useful: Do...
by jeeswg
Yesterday, 09:23
Forum: Ask For Help
Topic: Writing function that won't hit #Warn Topic is solved
Replies: 3
Views: 41

Re: Writing function that won't hit #Warn Topic is solved

In AHK v1.1.27+, you can add 'local' to the top of each function, to prevent 'local same as global' variable name warnings.
Warning: This local variable has the same name as a global variable.
by jeeswg
14 Oct 2018, 20:47
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 74
Views: 1956

Re: [Request]: Official Library & Wrapper

I would find individual lists more useful than a collective list. I welcome all to contribute. Your Favourite Scripts and Functions - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=17&t=57652 If you had a voting system, that would make a collective list more interesting. Btw here...
by jeeswg
14 Oct 2018, 20:38
Forum: Offtopic
Topic: Your Favourite Scripts and Functions: Discussion
Replies: 0
Views: 41

Your Favourite Scripts and Functions: Discussion

This is a place to discuss anything re. this thread:
Your Favourite Scripts and Functions - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 17&t=57652
by jeeswg
14 Oct 2018, 20:37
Forum: Offtopic
Topic: Your Favourite Scripts and Functions
Replies: 0
Views: 45

Your Favourite Scripts and Functions

Please post links to your favourite scripts and functions. One post per user. If you want to discuss something, do not discuss it here, discuss it at this thread: Your Favourite Scripts and Functions: Discussion - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=17&t=57653 You may ...
by jeeswg
14 Oct 2018, 19:55
Forum: Offtopic
Topic: resources for learning assembly language
Replies: 0
Views: 65

resources for learning assembly language

It would be interesting to hear of any recommended resources for learning assembly language. Thanks. key words: instructions, stack, registers/flags further terms: prologue/epilogue further terms (stack): stack overflow/stack underflow, LIFO, push/pop further terms (order of operands): Intel syntax/...
by jeeswg
13 Oct 2018, 20:00
Forum: Ask For Help
Topic: Refesh the desktop? Topic is solved
Replies: 3
Views: 49

Re: Refesh the desktop? Topic is solved

Tested on Windows 7, the Desktop window is one of these:
Program Manager ahk_class Progman
ahk_class WorkerW

%A_Desktop% would give this:
C:\Users\me\Desktop

Btw the Desktop folder open as an Explorer window:
Desktop ahk_class CabinetWClass

Cheers.
by jeeswg
13 Oct 2018, 11:20
Forum: Ask For Help
Topic: Unicode Hotstrings
Replies: 6
Views: 68

Re: Unicode Hotstrings

Perhaps: open the file in Notepad and save as UTF-8.
by jeeswg
13 Oct 2018, 11:15
Forum: Ask For Help
Topic: why is the script skipping two first letters?
Replies: 4
Views: 48

Re: why is the script skipping two first letters?

- Input, UserInput, V, {PgDn} This will pause the script until you press PgDn. - When you press PgDn, UserInput will contain the string you typed, and ErrorLevel will contain 'EndKey:PgDn'. - So, checking for whether PgDn was pressed seems redundant, you would only reach that line, if you'd pressed ...
by jeeswg
13 Oct 2018, 10:57
Forum: Ask For Help
Topic: Unicode Hotstrings
Replies: 6
Views: 68

Re: Unicode Hotstrings

Try saving your script as UTF-8 with a BOM.
Any of these variants should work. Cheers.

Code: Select all

::zoe::Zoë
::zoe::Zo{U+EB}
::Zoe::Zoë
::Zoe::Zo{U+EB}
by jeeswg
13 Oct 2018, 05:02
Forum: Scripts and Functions
Topic: list Recent Items (My Recent Documents) (Start Menu)
Replies: 8
Views: 796

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

AFAIK no. See the RegRead function in the source code (script_registry.cpp) to see what it does. I would suggest starting a new question in Ask For Help if you want to know more.
by jeeswg
12 Oct 2018, 17:09
Forum: Ask For Help
Topic: Passing variables to second script
Replies: 9
Views: 101

Re: Passing variables to second script

Just in case you weren't aware, use .Length() to get the arg count. Also .Count() (in v1.1.29+).

Code: Select all

vArg1 := A_Args.1
vArgCount := A_Args.Length()
MsgBox, % vArg1 "`r`n" vArgCount
by jeeswg
12 Oct 2018, 12:34
Forum: Ich brauche Hilfe
Topic: Warum "Error: ELSE with no matching IF" ?
Replies: 4
Views: 75

Re: Warum "Error: ELSE with no matching IF" ?

Ich habe Google Translate benutzt. Ich mache die Übersetzung auch umgekehrt, als Scheck. Ich weiß, dass Sätze wie "Prost" und "Ach Gott" möglicherweise falsch übersetzt werden, also verwende ich nur einen pro Post. [I used Google Translate. I do the translation in reverse also, as a check. I know th...
by jeeswg
12 Oct 2018, 11:49
Forum: Ich brauche Hilfe
Topic: Warum "Error: ELSE with no matching IF" ?
Replies: 4
Views: 75

Re: Warum "Error: ELSE with no matching IF" ?

Hier ist die Erklärung. Es sieht so aus, als ob es einen Makro verwendet, um den Befehl zu konvertieren, oh Liebes. [Here is the explanation. It looks like it uses a macro to convert the command, oh dear.] ;before: WinGetActiveStats, Titel, Breite, Höhe, X, Y ;after: WinGetTitle,Titel,A WinGetPos,X,...
by jeeswg
12 Oct 2018, 07:14
Forum: Ask For Help
Topic: generate a 'random' number
Replies: 2
Views: 68

Re: generate a 'random' number

- Thanks Helgef (and HotKeyIt), I'll take a look when I can.
- I'd still be interested in other approaches, including simple but reasonably good ones. (Normally when I need random numbers, the level of randomness is not critical.)

Go to advanced search