Search found 5265 matches

by jeeswg
26 minutes ago
Forum: Forum Issues
Topic: Fixing codeboxes
Replies: 54
Views: 1328

Re: Fixing codeboxes

Thanks joedf. :thumbup: I can now update my signature.

before:
homepage | tutorials
[code boxes are currently not working 100%]
[click the 'Reply with quote' button on a post to see the full indented text]

after:
homepage | tutorials | wish list
by jeeswg
33 minutes ago
Forum: Ask For Help
Topic: Use custom font in activeX htmlfile
Replies: 15
Views: 125

Re: Use custom font in activeX htmlfile

This example uses X-UA-Compatible with an ActiveX control, just in case it's useful. ;Shell.Explorer theme? - AutoHotkey Community ;https://autohotkey.com/boards/viewtopic.php?f=5&t=38291&p=206257#p206257 Gui, Add, ActiveX, w400 h500 vwb hwndhwb, about:<!DOCTYPE html><meta http-equiv='MSThemeCompati...
by jeeswg
Today, 09:15
Forum: Ask For Help
Topic: vTabIndex and SendMessage
Replies: 7
Views: 135

Re: vTabIndex and SendMessage

Is this what you want? Cheers.

Code: Select all

a:: ;focus 1st tab (1-based index)
vTabIndex := 1
SendMessage, 0x1330, % vTabIndex-1,, SysTabControl322, A ;TCM_SETCURFOCUS := 0x1330
return
by jeeswg
Today, 05:39
Forum: Ask For Help
Topic: Use custom font in activeX htmlfile
Replies: 15
Views: 125

Re: Use custom font in activeX htmlfile

- I usually use it like this. You could try IE=11 also. oHTML := ComObjCreate("HTMLFile") ;vHtml := "<meta http-equiv=" Chr(34) "X-UA-Compatible" Chr(34) " content=" Chr(34) "IE=edge" Chr(34) ">" vHtml := "<meta http-equiv=" Chr(34) "X-UA-Compatible" Chr(34) " content=" Chr(34) "IE=9" Chr(34) ">" oH...
by jeeswg
Today, 05:06
Forum: Ask For Help
Topic: Use custom font in activeX htmlfile
Replies: 15
Views: 125

Re: Use custom font in activeX htmlfile

Maybe something like this will help:
vHtml = <meta http-equiv="X-UA-Compatible" content="IE=9">
vHtml = <meta http-equiv="X-UA-Compatible" content="IE=edge">
by jeeswg
Yesterday, 10:15
Forum: Ask For Help
Topic: Best way to avoid Global declaration Plague from ruining the main script?
Replies: 5
Views: 110

Re: Best way to avoid Global declaration Plague from ruining the main script?

- The one problem you can have is that if you declare a variable inside a function as local, that makes all other variables global. What I do is add 'local' to every function that I write, and then specify 'global' inside a function, for any global variables. - Any variable that I intend to be globa...
by jeeswg
11 Nov 2018, 02:32
Forum: Ask For Help
Topic: #Warn: get StdOut from another script
Replies: 7
Views: 114

Re: #Warn: get StdOut from another script

- Thanks CyL0N, I'll take a look. - Thanks lexikos. - It looks like OutputDebug will be the way to go, so that one script can handle all errors. - I'm currently using DebugView, (it gathers text in a listview control,) but I'd like to remove the dependency on it. This script is almost complete: retr...
by jeeswg
11 Nov 2018, 00:30
Forum: Ask For Help
Topic: #Warn: get StdOut from another script
Replies: 7
Views: 114

Re: #Warn: get StdOut from another script

- Thanks for the ideas.
- I had thought of ExecScript and RunWaitOne, however, those require that the script that monitors another script, also launches that script.
- So, if it's possible, a monitor script that can retrieve the StdOut from a pre-existing script, would be useful.
by jeeswg
10 Nov 2018, 18:34
Forum: Wish List
Topic: OnWarn
Replies: 2
Views: 123

Re: OnWarn

- Ah yes, those initial messages would be missed. - I'll have to perfect this: retrieve OutputDebug text - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=58069 - And/or resolve this: #Warn: get StdOut from another script - AutoHotkey Community https://autohotkey.com/boards/vi...
by jeeswg
10 Nov 2018, 18:08
Forum: Ask For Help
Topic: #Warn: get StdOut from another script
Replies: 7
Views: 114

#Warn: get StdOut from another script

- Has anybody set #Warn to StdOut mode, and been able to retrieve that output from another script? - Can this be done via AttachConsole and GetStdHandle? As in this scipt. (I couldn't get it to work.) Thanks. GitHub - joedf/LibCon.ahk: LibCon - AutoHotkey Library For Console Support https://github.c...
by jeeswg
09 Nov 2018, 23:38
Forum: Ask For Help
Topic: Double quote symbols appear as @ symbols in Command Prompt window
Replies: 12
Views: 480

Re: Double quote symbols appear as @ symbols in Command Prompt window

I believe that Send {Text} was added as a consequence of this script and/or others at the time. Thanks being to lexikos for the quick response. It uses the same technique: WM_CHAR.
by jeeswg
09 Nov 2018, 23:26
Forum: Ask For Help
Topic: vTabIndex and SendMessage
Replies: 7
Views: 135

Re: vTabIndex and SendMessage

- You should share your full script, or explain what you're trying to do.
- Maybe this is what you need, in case the variable's value is blank when you start the script.

Code: Select all

if (vTabIndex < 1) || (vTabIndex = "")
	vTabIndex := 1
by jeeswg
09 Nov 2018, 12:45
Forum: Ask For Help
Topic: vTabIndex and SendMessage
Replies: 7
Views: 135

Re: vTabIndex and SendMessage

You probably want this:

Code: Select all

if (vTabIndex < 1)
	vTabIndex := 1
If that doesn't work, you could explain further about what you want to do.
by jeeswg
08 Nov 2018, 09:12
Forum: Ask For Help
Topic: vTabIndex and SendMessage
Replies: 7
Views: 135

Re: vTabIndex and SendMessage

Here's some code for TCM_SETCURFOCUS, and a commented out line for TCM_SETCURSEL, for testing. Does this not work? q:: vTabIndex := 1 SendMessage, 0x1330, % vTabIndex-1,, SysTabControl322, A ;TCM_SETCURFOCUS := 0x1330 ;SendMessage, 0x130C, % vTabIndex-1,, SysTabControl322, A ;TCM_SETCURSEL := 0x130C...
by jeeswg
08 Nov 2018, 08:59
Forum: Ask For Help
Topic: How to get Thread Id?
Replies: 6
Views: 198

Re: How to get Thread Id?

- AFAIK I've never received an email from AutoHotkey. So either I've always used the default settings, or I switched if off from the beginning.
- I tested with SetTimer, and got the same thread ID as for hotkeys also. Cheers.
by jeeswg
07 Nov 2018, 21:48
Forum: Ask For Help
Topic: How to get Thread Id?
Replies: 6
Views: 198

Re: How to get Thread Id?

Like this?
MsgBox, % DllCall("GetCurrentThreadId", UInt)
by jeeswg
07 Nov 2018, 09:45
Forum: Forum Issues
Topic: Fixing codeboxes
Replies: 54
Views: 1328

Re: Fixing codeboxes

I've updated my post here, I'll use it to keep a summary of issues. Cheers.
Fixing codeboxes - Page 2 - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 34#p247734
by jeeswg
07 Nov 2018, 04:02
Forum: Ask For Help
Topic: On-screen signal to show that a given script is running
Replies: 2
Views: 53

Re: On-screen signal to show that a given script is running

This might be useful. Cheers.
cover window region - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=35259
by jeeswg
06 Nov 2018, 22:57
Forum: Ask For Help
Topic: generate a 'random' number Topic is solved
Replies: 9
Views: 275

Re: generate a 'random' number Topic is solved

- Here is an attempt at recreating the AHK v2 Random and RandomSeed functions (equivalent to the AHK v1 Random command). q:: ;recreate Random and RandomSeed vSeed := 1337 Random,, % vSeed JEE_RandomSeed(vSeed) vMin := 0, vMax := 2147483647 vMin := -2147483648, vMax := 2147483647 vMin := 0.0, vMax :=...
by jeeswg
06 Nov 2018, 17:53
Forum: Ask For Help
Topic: generate a 'random' number Topic is solved
Replies: 9
Views: 275

Re: generate a 'random' number Topic is solved

At various times for various reasons I've tried to recreate some of the built-in AHK functions (written in C++) as standard AHK functions.

AutoHotkey via DllCall: AutoHotkey functions as custom functions - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=37871

Go to advanced search