Search found 2510 matches

by wolf_II
Today, 06:42
Forum: Ask For Help
Topic: How to call JS code in a script?
Replies: 9
Views: 188

Re: How to call JS code in a script?

teadrinker wrote:
Today, 06:35
wolf_II, you don't need to create the window. You get WebBrowser object which is more heavy than htmlfile object.
OK, I see, thanks. I will change my approach. Currently I am tempted by "ease-of-use" maybe caused by habit. (Never used JS outside of canvas)
@afe: please ignore my posts.
by wolf_II
Today, 06:21
Forum: Ask For Help
Topic: How to call JS code in a script?
Replies: 9
Views: 188

Re: How to call JS code in a script?

Code: Select all

a1 := 1
a2 := 2
a3 := "function s(a,b){return a+b};"

HTML := "<script>" a3 "</script>"
Gui, Add, ActiveX, vWB, about:<!DOCTYPE html>
WB.Document.Open(), WB.Document.Write(HTML), WB.Document.Close()
MsgBox, % WB.Document.parentWindow.s(a1, a2)
by wolf_II
Yesterday, 15:01
Forum: Ask For Help
Topic: How to call JS code in a script?
Replies: 9
Views: 188

Re: How to call JS code in a script?

here is an example script, which uses ActiveX: JS = function JS(x, y) { alert("x: " + x + "\ny: " + y) } HTML := "<script>" JS "</script>" Gui, Add, ActiveX, w200 h200 vWB, about:<!DOCTYPE html> WB.Document.Open(), WB.Document.Write(HTML), WB.Document.Close() HTMLWindow := WB.Document.parentWindow ;...
by wolf_II
Yesterday, 00:29
Forum: Ask For Help
Topic: OnMessage and SendMessage
Replies: 3
Views: 113

Re: OnMessage and SendMessage

I'm glad I could help! :)
by wolf_II
20 Apr 2019, 15:49
Forum: Ask For Help
Topic: OnMessage and SendMessage
Replies: 3
Views: 113

Re: OnMessage and SendMessage

how does 1st script know where to send mgs?
1st script uses the LastFoundWindow
https://autohotkey.com/docs/misc/WinTitle.htm#LastFoundWindow
by wolf_II
18 Apr 2019, 20:11
Forum: Ask For Help
Topic: Alternative for contains when using arrays?
Replies: 5
Views: 190

Re: Alternative for contains when using arrays?

what error do you get?
by wolf_II
16 Apr 2019, 08:59
Forum: Ask For Help
Topic: idk how to get ahk to only work in one of my minecraft windows
Replies: 4
Views: 68

Re: idk how to get ahk to only work in one of my minecraft windows

WinSetTitle Changes the title of the specified window. how ?? My help is a link to the online help for the command, that you asked for and is explaining all the parameters for the command. 1 - Click that link, and keep reading up to Example . 2 - Run the example. 3 - If you get confused by the docu...
by wolf_II
15 Apr 2019, 23:48
Forum: Ask For Help
Topic: Brute Force 4-digit Password using AHK Topic is solved
Replies: 20
Views: 495

Re: Brute Force 4-digit Password using AHK Topic is solved

I took the idea of storing the progress: I have chosen to reconstruct to point of re-entry with a function: getNext(). maybe this is useful ? I tested it, but not much, and it seems to work. ;------------------------------------------------------------------------------- ; LuckyDay.ahk - Brute Force...
by wolf_II
15 Apr 2019, 12:52
Forum: Ask For Help
Topic: Screen Corners Function
Replies: 3
Views: 93

Re: Screen Corners Function

isMousePos() can be used for corners : isMousePos("TopLeft") and/or for edges : isMousePos("Bottom"). if the mouse cursor is close enough (less than maxDistance), then the functions returns true. ;------------------------------------------------------------------------------- #If isMousePos("TopRig...
by wolf_II
14 Apr 2019, 12:04
Forum: Ask For Help
Topic: Modifying Calendar Script
Replies: 7
Views: 195

Re: Modifying Calendar Script

This is how three Calenders look like when I double width and height. I see the amount of moths being 12, which is unwanted. I recommend going back to previous script. In that case, simplify further. Try this: Gui, Margin, 0, 0 Gui, +ToolWindow +AlwaysOnTop -Caption Gui, Add, MonthCal, w675 F12:: Gu...
by wolf_II
14 Apr 2019, 11:21
Forum: Ask For Help
Topic: Modifying Calendar Script
Replies: 7
Views: 195

Re: Modifying Calendar Script

Unfortunately it doesn't work. There are a total of 12 calendars now.
Try again. There are only 3 calenders.
by wolf_II
13 Apr 2019, 21:47
Forum: Ask For Help
Topic: Making a key do two things? Mouse wheel script? (ex: Mouse down, first notch = 1, second notch = 2)
Replies: 4
Views: 99

Re: Making a key do two things? Mouse wheel script? (ex: Mouse down, first notch = 1, second notch = 2)

Try this:

Code: Select all

Output := 0

Numpad0:: Output++
Numpad1:: Output--

F1:: MsgBox,,, %Output%, 1
Esc:: exitApp
I hope that helps.
by wolf_II
13 Apr 2019, 19:29
Forum: Ask For Help
Topic: Making a key do two things? Mouse wheel script? (ex: Mouse down, first notch = 1, second notch = 2)
Replies: 4
Views: 99

Re: Making a key do two things? Mouse wheel script? (ex: Mouse down, first notch = 1, second notch = 2)

Try this: Output := 0 WheelDown:: TT(++Output) WheelUp:: TT(--Output) ;------------------------------------------------------------------------------- TT(Text, x := "", y := "", WhichToolTip := 1, Delay := 2000) { ;------------------------------------------------------------------------------- ToolT...
by wolf_II
13 Apr 2019, 17:34
Forum: Ask For Help
Topic: Modifying Calendar Script
Replies: 7
Views: 195

Re: Modifying Calendar Script

Try this: CoordMode, Mouse, Screen FormatTime, thisYear,, yyyy FormatTime, currentMonth,, M previousMonth := currentMonth-1 nextMonth := currentMonth+1 previousMonth := (previousMonth = 0 ? 12 : previousMonth) nextMonth := (nextMonth = 13 ? 1 : nextMonth) Gui, Margin, 0, 0 Gui, +ToolWindow +AlwaysOn...
by wolf_II
13 Apr 2019, 16:47
Forum: Ask For Help
Topic: Modifying Calendar Script
Replies: 7
Views: 195

Re: Modifying Calendar Script

Try this: CoordMode, Mouse, Screen FormatTime, thisYear,, yyyy FormatTime, currentMonth,, M previousMonth := currentMonth-1 nextMonth := currentMonth+1 previousMonth := (previousMonth = 0 ? 12 : previousMonth) nextMonth := (nextMonth = 13 ? 1 : nextMonth) Gui, Margin, 0, 0 Gui, +ToolWindow +AlwaysOn...
by wolf_II
13 Apr 2019, 12:07
Forum: Ich brauche Hilfe
Topic: Innerhalb einer Schleife, Tasten abfragen Topic is solved
Replies: 2
Views: 104

Re: Innerhalb einer Schleife, Tasten abfragen Topic is solved

Versuch mal: mydat= (join`r`n Gelb Banane Grün Apfel Kiwi Grün ) Loop, parse, mydat, `n { msgbox, 36,, % A_LoopField IfMsgBox, Yes FileAppend, %A_LoopField%, Obst.txt else FileAppend, %A_LoopField%, Farbe.txt } Left:: ControlSend, , Y, ahk_class #32770 right:: ControlSend, , N, ahk_class #32770 Ich ...
by wolf_II
13 Apr 2019, 08:47
Forum: Ask For Help
Topic: problem with variable
Replies: 22
Views: 387

Re: problem with variable

My idea/challenge: try to put a comment, where you think the interpreter inserts a return.
Once you understand the difference, you are good to go.

for example,
allow the if condition to complete it's task
, there is no if condition to complete a task in your code.

Go to advanced search