Search found 5113 matches

by jeeswg
Today, 09:23
Forum: Ask For Help
Topic: Writing function that won't hit #Warn
Replies: 1
Views: 23

Re: Writing function that won't hit #Warn

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
Yesterday, 20:47
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 74
Views: 1919

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
Yesterday, 20:38
Forum: Offtopic
Topic: Your Favourite Scripts and Functions: Discussion
Replies: 0
Views: 30

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
Yesterday, 20:37
Forum: Offtopic
Topic: Your Favourite Scripts and Functions
Replies: 0
Views: 34

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
Yesterday, 19:55
Forum: Offtopic
Topic: resources for learning assembly language
Replies: 0
Views: 30

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, stack overflow/stack underflow, LIFO/push/pop [videos (by HackUCF)] x86 Assembly Crash Course - YouTube https://www.y...
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: 66

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: 66

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: 792

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: 99

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: 71

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: 71

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.)
by jeeswg
11 Oct 2018, 21:52
Forum: Ask For Help
Topic: iniRead UTF-8
Replies: 12
Views: 135

Re: iniRead UTF-8

- Well some system or other was needed! - I thought it was alright. - I liked the brevity of UTF-8. How it let you store Unicode characters whilst hardly increasing the file size of an ASCII/mostly ASCII text file (instead of doubling it like UTF-16 does). - I liked the simplicity of UTF-16. - By re...
by jeeswg
11 Oct 2018, 20:29
Forum: Ask For Help
Topic: clipboard
Replies: 5
Views: 57

Re: clipboard

{Left}

List of Keys (Keyboard, Mouse and Joystick) | AutoHotkey
https://autohotkey.com/docs/KeyList.htm
by jeeswg
11 Oct 2018, 20:19
Forum: Ask For Help
Topic: clipboard
Replies: 5
Views: 57

Re: clipboard

Code: Select all

;more forwards compatible:
Send, % "{Tab 3}" Clipboard "{Tab}{Enter}"

;also:
Send, {Tab 3}%Clipboard%{Tab}{Enter}
Cheers.
by jeeswg
11 Oct 2018, 20:14
Forum: Ask For Help
Topic: iniRead UTF-8
Replies: 12
Views: 135

Re: iniRead UTF-8

Great example User. Cheers. Btw, out of interest, does that situation happen to you often, or just when you create a list of the first 65535 Unicode characters? Either way, it's an absolutely valid concern, thanks for pointing it out.
by jeeswg
11 Oct 2018, 18:19
Forum: Ask For Help
Topic: iniRead UTF-8
Replies: 12
Views: 135

Re: iniRead UTF-8

- Huh? AHK handles ANSI and UTF-16 LE. My functions handle UTF-8 (if you have a comment starting with a semicolon as the first line). (Having a blank line as the first line, or starting the file with a dummy section that you never use, also work.) - You could experiment with FileRead/FileAppend or A...
by jeeswg
11 Oct 2018, 17:48
Forum: Ask For Help
Topic: generate a 'random' number
Replies: 2
Views: 68

generate a 'random' number

Has anyone written a function to generate a pseudo-random number in AutoHotkey? E.g. a short one that is reasonably good. Or a conversion of the C++ code that AutoHotkey uses. Or anything else? Thanks. An interesting link. flat assembler - Fast and small Multiplicative Random number generator https:...

Go to advanced search