Search found 2688 matches

by wolf_II
08 Jul 2019, 16:01
Forum: Ask For Help
Topic: Passing variables/values between scripts
Replies: 5
Views: 929

Re: Passing variables/values between scripts

Not sure if this alternative is acceptable, but with ComObjCreate("HTMLfile") you get access to write and read to "JavaScript arrays". Obj := ComObjCreate("HTMLfile") Obj.Write("<script></script>") _JS := Obj.parentWindow _JS.Var1 := [11, 22, 33] Var2 := _JS.Var1 MsgBox, % Var2[1] MsgBox, % Var2[2] ...
by wolf_II
08 Jul 2019, 15:28
Forum: Ask For Help
Topic: Simple Load/Save Character Dialog Topic is solved
Replies: 4
Views: 736

Re: Simple Load/Save Character Dialog Topic is solved

RunWait temp.exe
When temp.exe is done, the variables which were available in temp.exe are lost, I think.

You might be better off with Ini-files.
by wolf_II
07 Jul 2019, 19:43
Forum: Ask For Help
Topic: Run paint with only letters
Replies: 2
Views: 451

Re: Run paint with only letters

Try this:

Code: Select all

:*:ppp::
    Run, mspaint.exe
return
I hope that helps.
by wolf_II
07 Jul 2019, 11:50
Forum: Offtopic
Topic: utilities/websites to test a PC's speed
Replies: 3
Views: 1423

Re: utilities/websites to test a PC's speed

I would recommend to write an algorithm with fixed outcome. eg: add up all primes below 2,000/20,000/200,000/2,000,000.
You can go as high as you want, but I expect around 100,000 is enough.
Test the script on both PC, the faster PC will need less time.
by wolf_II
06 Jul 2019, 23:03
Forum: Ask For Help
Topic: Checked Radio Won't Update GUI Winset Transparent Topic is solved
Replies: 5
Views: 800

Re: Checked Radio Won't Update GUI Winset Transparent Topic is solved

last improvement: get rid of New . not needed. without it, you can easily move my line to between the blocks. only thing your missing is this: GuiThreads get LastFound window set automatically, AHK does it for us. Falling into the same procedure, AHK does not set the LastFound window, we do it ourse...
by wolf_II
06 Jul 2019, 22:01
Forum: Ask For Help
Topic: Checked Radio Won't Update GUI Winset Transparent Topic is solved
Replies: 5
Views: 800

Re: Checked Radio Won't Update GUI Winset Transparent Topic is solved

second attempt: makes use of your "falling through" setup: just one line added to the brginning of the block: Gui, Main: New, +LastFound Gui,Main: Add, Radio, x5 y160 %Trans1% Group vTrans1 gTransSet, 0 Gui,Main: Add, Radio, x45 y160 %Trans2% vTrans2 gTransSet, 10 ; ... should work for all Values, o...
by wolf_II
06 Jul 2019, 21:44
Forum: Ask For Help
Topic: Checked Radio Won't Update GUI Winset Transparent Topic is solved
Replies: 5
Views: 800

Re: Checked Radio Won't Update GUI Winset Transparent Topic is solved

I added a line before your block, and three lines after. Is that what you are after? Gui, Main: New, HWNDhGui Gui,Main: Add, Radio, x5 y160 %Trans1% Group vTrans1 gTransSet, 0 Gui,Main: Add, Radio, x45 y160 %Trans2% vTrans2 gTransSet, 10 Gui,Main: Add, Radio, x5 y183 %Trans3% vTrans3 gTransSet, 25 G...
by wolf_II
06 Jul 2019, 20:10
Forum: Ask For Help
Topic: Can AHK draw a GUI from BottomRight to TopLeft? Topic is solved
Replies: 4
Views: 697

Re: Can AHK draw a GUI from BottomRight to TopLeft? Topic is solved

Thank you Wolf, That did help out! Here's what I was able to do with your suggestion.
I'm glad to have been able to nudge you in the right direction, You made a full step out of that. Way to go. :D
But in terms of performance, teadrinker's script is miles ahead and shows us the way!!
by wolf_II
06 Jul 2019, 13:49
Forum: AutoHotkey v2 Development
Topic: async method ?
Replies: 11
Views: 2262

Re: async method ?

Try this: #Persistent SetTimer, WorkerThread, -1 WorkerThread: ToolTip, WorkerThread at work sleep, 2000 ToolTip, WorkerThread done return I hope that helps. This is AHK v1 code! AHK v2 does not yet offer multithreading, As far as I know. If your question is not aimed at me, ignore please and sorry....
by wolf_II
06 Jul 2019, 13:44
Forum: Ask For Help
Topic: Can AHK draw a GUI from BottomRight to TopLeft? Topic is solved
Replies: 4
Views: 697

Re: Can AHK draw a GUI from BottomRight to TopLeft? Topic is solved

maybe try this:

Code: Select all

	If ((X2 <= -1) AND (Y2 <= -1)) ;Left & Up
	{   Y2 *= -1, x2 *=-1
        Gui, 1: Show, NA x%Xpos% y%Ypos% H%Y2% W%X2%, Horizontal ;EndPoint
		SoundBeep, 500, 10
		Sleep, 5
	}
I hope that helps.
by wolf_II
06 Jul 2019, 13:08
Forum: Ask For Help
Topic: SendMessage to a Toolbar
Replies: 7
Views: 813

Re: SendMessage to a Toolbar

I see. But this is above and beyond me. I can only imagine some acc library might help.
Forum user Jeeswg and many others have more experience using the acc library. Wait for better advice, I guess.
Sorry, and good luck again. :thumbup:
by wolf_II
06 Jul 2019, 12:41
Forum: Ask For Help
Topic: SendMessage to a Toolbar
Replies: 7
Views: 813

Re: SendMessage to a Toolbar

more explicit: Sendmessage will interpret all the parameters as documented. Your original script did not have a WinTitle parameter. adding a comma there, has shifted Sierra to be interpreted as the WinTitle parameter. I hope to have made that a bit more clear. Now we know the control of the correct ...
by wolf_II
06 Jul 2019, 12:08
Forum: Ask For Help
Topic: SendMessage to a Toolbar
Replies: 7
Views: 813

Re: SendMessage to a Toolbar

try

Code: Select all

SendMessage, 0x1330, 0, 0,, Sierra
changes: empty control parameter, Sierra is now WinTitle.

Most likely, you need to start again trying to find the correct WinTitle, or use LastFoundWindow
ahk_exe would be a good candidate

Better yet: find the correct control as well. Good Luck :)
by wolf_II
06 Jul 2019, 11:08
Forum: Ask For Help
Topic: Triggerin Actions with Hotstrings instead of Hotkeys Topic is solved
Replies: 8
Views: 1235

Re: Triggerin Actions with Hotstrings instead of Hotkeys Topic is solved

I found this in documentation: https://www.autohotkey.com/docs/Hotstrings.htm#intro
@ gregster Thx for sharing, I was not aware of the x option, which is on the same page :)
by wolf_II
06 Jul 2019, 10:54
Forum: Ask For Help
Topic: Triggerin Actions with Hotstrings instead of Hotkeys Topic is solved
Replies: 8
Views: 1235

Re: Triggerin Actions with Hotstrings instead of Hotkeys Topic is solved

Hotstrings will not interpret AHK command like that. The commands must be on separate lines to achieve that:

Code: Select all

::test::
    MsgBox Hotstring "test" detected
return
by wolf_II
06 Jul 2019, 08:34
Forum: Ask For Help
Topic: Is it possible to limit the visible menus
Replies: 2
Views: 383

Re: Is it possible to limit the visible menus

Try this: (option +Break ) example on how to use Loop, 30 { if Mod(A_Index-1, 6) = 0 Menu, MainMenu, Add, #%A_Index%, Handler, +Break else Menu, MainMenu, Add, #%A_Index%, Handler } F1:: Menu, MainMenu, Show Handler: return This does not display any files, this is an example to demonstrate the use o...
by wolf_II
05 Jul 2019, 22:39
Forum: Ask For Help
Topic: screen buttons to launch AHK scripts?
Replies: 5
Views: 850

Re: screen buttons to launch AHK scripts?

you can do a new Toolbar like this: Choose a folder, put your favorite scripts in there.
20190706053524.png
20190706053524.png (54.99 KiB) Viewed 844 times
by wolf_II
05 Jul 2019, 21:27
Forum: Ask For Help
Topic: [solved] TrayTip not working anymore with Win 10 (1903) Topic is solved
Replies: 27
Views: 3305

Re: [solved] TrayTip not working anymore with Win 10 (1903) Topic is solved

lexikos Thx for tuning in. I do not know where the settings are stored or what causes them to become corrupt. This settles my mind. I will stop looking for settings. I honestly don't even know for sure, if ClassicShell was the culprit and uninstalling that was the solution, I now realize it could h...
by wolf_II
05 Jul 2019, 20:06
Forum: Ask For Help
Topic: [solved] TrayTip not working anymore with Win 10 (1903) Topic is solved
Replies: 27
Views: 3305

Re: TrayTip not working anymore with Win 10 (1903) Topic is solved

I changed the accepted answer to what started my penny :D

Jo, thanks for the Flash-drive tip and the download link, this will be very useful to me. :)
by wolf_II
05 Jul 2019, 19:06
Forum: Ask For Help
Topic: A_Now versus FileGetTime() timestamps
Replies: 11
Views: 1514

Re: A_Now versus FileGetTime() timestamps

I have not tested my script recently, I used to have some problems with TrayTip, which are gone now.
If have problems with my class, please come back, and paste a script of yours, and I can now start to test again.
There is an Init() function in there that might not be of interest to you.

Go to advanced search