Search found 5164 matches

by jeeswg
16 Oct 2018, 17:43
Forum: AutoHotkey v2 Development
Topic: <> no longer acceptable as a comparison operator
Replies: 48
Views: 1367

Re: <> no longer acceptable as a comparison operator

I came across this post completely coincidentally, the second result when you type 'AutoIt operators' into Google. Does AutoIT have != or NOTEQUAL logical operator - AutoIt General Help and Support - AutoIt Forums https://www.autoitscript.com/forum/topic/135282-does-autoit-have-or-notequal-logical-o...
by jeeswg
16 Oct 2018, 17:29
Forum: AutoHotkey v2 Development
Topic: Suggestion: Binary Integers
Replies: 4
Views: 83

Re: Suggestion: Binary Integers

- The Format function accepts octal, good point. Once you add a letter to Format, there's no turning back. So even though I think adding b for binary might be a good idea, I'm cautious. (Dec to/from Base functions, like I mentioned, would definitely be welcome.) - I use bin, dec, hex regularly, but ...
by jeeswg
16 Oct 2018, 16:03
Forum: AutoHotkey v2 Development
Topic: Suggestion: Binary Integers
Replies: 4
Views: 83

Re: Suggestion: Binary Integers

- I have said that 0b... would be nice to match 0x... which we already have.
- Is it especially common? I know that Java and Python support it, but not C++.
- I would definitely like something like BaseToDec and DecToBase (in some form). Out of interest, do you actually use 0b... that often? Thanks.
by jeeswg
16 Oct 2018, 15:37
Forum: Ask For Help
Topic: InBuf function currently 32-bit only (machine code binary buffer searching)
Replies: 21
Views: 2249

Re: InBuf function currently 32-bit only (machine code binary buffer searching)

It was relatively easy to alter the function so that it didn't call itself. Although, it seemed difficult at the time. I guess it was just one of those random things I wasn't too familiar with, or, I thought there must be some special reason for the function to call itself. Cheers. InBuf function cu...
by jeeswg
16 Oct 2018, 14:37
Forum: Ask For Help
Topic: best AutoHotkey machine code functions
Replies: 3
Views: 438

Re: best AutoHotkey machine code functions

- The function by itself works a little like an RNG.
- Wow, so you wrote a machine code function in pure ASM after all. A function to return a specified number. :thumbup:
- Anything more to say about it? Cheers.
by jeeswg
16 Oct 2018, 12:27
Forum: Ask For Help
Topic: How to perform a find ? Topic is solved
Replies: 4
Views: 92

Re: How to perform a find ? Topic is solved

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://docs.microsoft.com/en-u...
by jeeswg
16 Oct 2018, 06:03
Forum: Forum Issues
Topic: forum listings not updated
Replies: 8
Views: 346

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
15 Oct 2018, 18:17
Forum: Ask For Help
Topic: Manipulate an Explorer window found by COM Shell.Application Topic is solved
Replies: 5
Views: 80

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
15 Oct 2018, 17:19
Forum: Ask For Help
Topic: Weird error on loading script
Replies: 4
Views: 62

Re: Weird error on loading script

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

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
15 Oct 2018, 14:41
Forum: Ask For Help
Topic: Writing function that won't hit #Warn Topic is solved
Replies: 3
Views: 59

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
15 Oct 2018, 09:23
Forum: Ask For Help
Topic: Writing function that won't hit #Warn Topic is solved
Replies: 3
Views: 59

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

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

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

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

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

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

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

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

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}

Go to advanced search