Search found 6714 matches

by jeeswg
14 Sep 2019, 15:15
Forum: Ask For Help
Topic: Get shortcut target without evaluating environment variables
Replies: 7
Views: 680

Re: Get shortcut target without evaluating environment variables

That's great!

I've updated JEE_FileGetShortcut and JEE_FileCreateShortcut, so they should work with both Unicode and ANSI builds of AHK.
by jeeswg
14 Sep 2019, 09:30
Forum: Ask For Help
Topic: Use a variable - API for LO Calc Topic is solved
Replies: 9
Views: 500

Re: Use a variable - API for LO Calc Topic is solved

Some ideas:

Code: Select all

oCells.CellBackColor := 0xFFFF9E
oCells.CellBackColor := "0xFFFF9E"
oCells.CellBackColor := 0xFFFF9E+0
oCells.CellBackColor := "" (0xFFFF9E+0)
Btw it's a bit confusing that you used 8355711.
I.e. there are 2 example colours in your post:
0xFFFF9E = 16777118
0x7F7F7F = 8355711
by jeeswg
12 Sep 2019, 23:21
Forum: Ask For Help
Topic: Formatting Timestamp in Output
Replies: 3
Views: 238

Re: Formatting Timestamp in Output

The code above, if it worked, would output the date now to the A_ variables. But those variables are read-only. I'd do it like this: ;12-hour datestamps with AM/PM FormatTime, vDateM, % A_LoopFileTimeModified, yyyy-MM-dd hh:mm:ss tt FormatTime, vDateA, % A_LoopFileTimeAccessed, yyyy-MM-dd hh:mm:ss t...
by jeeswg
12 Sep 2019, 22:54
Forum: Ask For Help
Topic: Creating a GUI in 1.1.30.03
Replies: 7
Views: 417

Re: Creating a GUI in 1.1.30.03

q, w and e are hotkeys. When you press one of those 3 keys, the variable is set.
That variable then determines what the abc- hotstring outputs.
by jeeswg
12 Sep 2019, 22:50
Forum: Ask For Help
Topic: Formatting Timestamp in Output
Replies: 3
Views: 238

Re: Formatting Timestamp in Output

You can't have : in filenames, so I might use - instead.
Also, you probably want HH (24-hour) not hh (12-hour). HH is easier to sort.

Code: Select all

FormatTime, vDate,, yyyy-MM-dd HH-mm-ss ;24-hour
MsgBox, % vDate

FormatTime, vDate,, yyyy-MM-dd hh-mm-ss tt ;12-hour
MsgBox, % vDate
by jeeswg
12 Sep 2019, 18:23
Forum: Offtopic
Topic: « What's on your mind? »
Replies: 4226
Views: 733522

Re: « What's on your mind? »

Forum relevance: Favourite Shortcut Key? (Soundcheck Question) - Computerphile - YouTube https://www.youtube.com/watch?v=IquufaqHoGc ` (_\ヽ ` \\ .Λ_Λ. ` \( ˇωˇ) F ` > ⌒ヽ A ` / へ\ B ` / / \\ U ` レ ノ ヽ_つ L ` / / O ` / /| U ` ( ( ヽ S ` | |、 \ ! ` | 丿 \ ⌒) ! ` | | ) / ! ` `ノ ) Lノ ` (_/ :mrgreen: :mrgree...
by jeeswg
12 Sep 2019, 18:18
Forum: Ask For Help
Topic: Return string to cmd screen from compiled .exe AHK script Topic is solved
Replies: 4
Views: 293

Re: Return string to cmd screen from compiled .exe AHK script Topic is solved

Perhaps you want this: To write: FileAppend with * (stdout) or ** (stderr): FileAppend - Syntax & Usage | AutoHotkey https://www.autohotkey.com/docs/commands/FileAppend.htm To read: ExecScript example code to receive stdout/stderr: Run / RunWait - Syntax & Usage | AutoHotkey https://www.autohotkey.c...
by jeeswg
12 Sep 2019, 18:07
Forum: Ask For Help
Topic: Dynamic Variable/Function?
Replies: 2
Views: 128

Re: Dynamic Variable/Function?

- AFAIK, I've never had a situation like this, so it's possible that I'd refactor the code to avoid having to do this. (E.g. any function would depend only on variable n1, and n2 and n3 would be irrelevant.) - If I did do this, I might use a function to update the values each time before using the v...
by jeeswg
12 Sep 2019, 17:33
Forum: Ask For Help
Topic: Show text in UTF-8 with MsgBox - possible? Topic is solved
Replies: 9
Views: 597

Re: Show text in UTF-8 with MsgBox - possible? Topic is solved

- What do you see in the MsgBox? - You could provide some sample text as an attachment file. - One possibility is raw UTF-8 data saved as a string, with a UTF-8 BOM. - If you save 'café' as a UTF-8 file with a BOM, you get: café [contents of text file, including BOM][bytes as ANSI characters]...
by jeeswg
12 Sep 2019, 17:20
Forum: Ask For Help
Topic: Detect when address bar on firefox is active
Replies: 4
Views: 370

Re: Detect when address bar on firefox is active

- The problem is usually that Firefox or Chrome change the GUI elements and hence the numbers in the Acc path change. - So far, I haven't had any problems with Acc being 'out of date', in the approximately 10 years that the AHK Acc library has existed. - If I want to discover the Acc path (e.g. 1.2....
by jeeswg
12 Sep 2019, 05:21
Forum: Ask For Help
Topic: Show text in UTF-8 with MsgBox - possible? Topic is solved
Replies: 9
Views: 597

Re: Show text in UTF-8 with MsgBox - possible? Topic is solved

@Albireo: I tested this: FileRead InputTXT, *t *p65001 %NameTXT%.csv on UTF-8 text, with and without a BOM. It read the text correctly. Characters such as åäö would be read as � (Unicode builds) or ? (ANSI builds). If the text file was an *ANSI* text file. But you stated it was UTF-8 data. So, the n...
by jeeswg
11 Sep 2019, 20:52
Forum: Ask For Help
Topic: Show text in UTF-8 with MsgBox - possible? Topic is solved
Replies: 9
Views: 597

Re: Show text in UTF-8 with MsgBox - possible? Topic is solved

Perhaps something like this: q:: ;string to UTF-8 bytes (as string) ;string -> raw UTF-8 data -> UTF-8 bytes (as string) vText := "café" vSize := StrPut(vText, "UTF-8") VarSetCapacity(vUtf8, vSize) vSize := StrPut(vText, &vUtf8, vSize, "UTF-8") MsgBox, % StrGet(&vUtf8, "CP0") ;café return w:: ;UTF-...
by jeeswg
11 Sep 2019, 14:11
Forum: Ask For Help
Topic: How to force WinActivate to activate the NEWEST window?
Replies: 2
Views: 193

Re: How to force WinActivate to activate the NEWEST window?

You could use the function here, to get the date for a process.
Chrome vs Chrome Canary (Processes have same name) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=30369&p=142476#p142476
by jeeswg
11 Sep 2019, 12:00
Forum: Scripts and Functions
Topic: Internet Explorer: JavaScript examples
Replies: 22
Views: 3170

Re: Internet Explorer: JavaScript examples

I've added currentStyle to the list in the OP. On IE, sometimes 'style' will give no result, whereas 'currentStyle' will give a result. How to get an HTML element's style values in javascript? - Stack Overflow https://stackoverflow.com/questions/2664045/how-to-get-an-html-elements-style-values-in-ja...
by jeeswg
09 Sep 2019, 19:23
Forum: Ask For Help
Topic: Working with frames Windows 7 vs Windows 10 Topic is solved
Replies: 6
Views: 341

Re: Working with frames Windows 7 vs Windows 10 Topic is solved

Perhaps you were getting information from the wrong tab. Did you have multiple tabs open in the web browser? You could check tab information such as wb.document.title and wb.document.url. You could mention which function you were using to get the wb object. Some methods assume the control with Class...
by jeeswg
09 Sep 2019, 13:44
Forum: Ask For Help
Topic: operators: unary/binary/ternary
Replies: 3
Views: 193

operators: unary/binary/ternary

For parsing AHK code, it's important to know which operators are unary/binary/ternary. AFAICS this is not stated in the documentation, so I've tried to create a table stating this information. Please notify of any issues. types for AHK v1/v2 operators key: type description p unary operator (prefix o...
by jeeswg
09 Sep 2019, 11:34
Forum: Tips and Tricks
Topic: Run your script under specific UI languages
Replies: 10
Views: 599

Re: Run your script under specific UI languages

Thanks Helgef. :thumbup: I only got 1 language (en-US) when I tried your (AHK v2) script. :cry:
by jeeswg
09 Sep 2019, 09:46
Forum: Tips and Tricks
Topic: Run your script under specific UI languages
Replies: 10
Views: 599

Re: Run your script under specific UI languages

Thanks, great link.
What I meant was, how to find out which languages are already installed.
by jeeswg
09 Sep 2019, 08:19
Forum: Tips and Tricks
Topic: Run your script under specific UI languages
Replies: 10
Views: 599

Re: Run your script under specific UI languages

Interesting. Thanks for sharing. There's a list of languages here: E.g. US = 1033 = 0x0409. Language Codes | AutoHotkey https://www.autohotkey.com/docs/misc/Languages.htm But do you have a way to list the languages available to SetThreadUILanguage? Btw apparently LANGID is of word type, i.e. a UShor...

Go to advanced search