Search found 92 matches

by megnatar
06 May 2020, 04:38
Forum: Old Topics
Topic: MsgBoxEx() Gui Submit is hiding Owner Topic is solved
Replies: 3
Views: 7309

Re: MsgBoxEx() Gui Submit is hiding Owner Topic is solved

@megnatar Thanks for reporting, I will revise the code. Apparently, all that has to be done is to provide the hWnd when calling submit: Gui %hWnd%: Submit , and remove the Gui Destroy line. You're welcome. Yes that crossed my mind to, but I was not sure "hiding" was a choice or something overlooked...
by megnatar
15 Apr 2020, 16:52
Forum: Old Topics
Topic: MsgBoxEx() Gui Submit is hiding Owner Topic is solved
Replies: 3
Views: 7309

Re: AutoGui: MsgBoxEx() hiding Gui:1 Topic is solved

Two working examples showing what happens when timeout period is used. The old code hides the first Gui after submitting changes to it. I changed it in such a way that when the MsgBox is owned (Application model), hiding the main instance doesn't happen. The MsgBox will continue hiding the main wind...
by megnatar
15 Apr 2020, 05:15
Forum: Old Topics
Topic: AutoGUI - Script Editor, GUI Designer, Debugger and Tools
Replies: 423
Views: 421320

Re: AutoGUI - Script Editor, GUI Designer, Debugger and Tools

I added a topic to main thread. Should I have reported a fix request here?
by megnatar
15 Apr 2020, 05:08
Forum: Gaming Scripts (v1)
Topic: AutoRun / AutoWalk
Replies: 14
Views: 35411

Re: AutoRun / AutoWalk

Congratulations, your script is the best I've found by far until now. But I'm having a minor issue with it. I'm using XButton2 instead of Mbutton on this Mbutton:: AutoWalk() Return if I start to use the script (press once the XButton2) and soon after try to manual walk using W my character stops f...
by megnatar
15 Apr 2020, 05:06
Forum: Gaming Scripts (v1)
Topic: AutoRun / AutoWalk
Replies: 14
Views: 35411

Re: AutoRun / AutoWalk

vespe1398 wrote:
13 Apr 2020, 09:17
Does that work for every game or for specific ones?
I'm writing A new script atm that does autowalk and is configurable, remebers all games and so on. Although it's already posted in the GameScripts section. Please W8 a bit and it will be finished.

To answer you're question. Yes It should.
by megnatar
15 Apr 2020, 04:52
Forum: Old Topics
Topic: MsgBoxEx() Gui Submit is hiding Owner Topic is solved
Replies: 3
Views: 7309

MsgBoxEx() Gui Submit is hiding Owner Topic is solved

Hey folk, While using MsgBoxEx in my script I noticed that the GUI was hiding it's owner when using timeout. So I changed the line Gui Submit at the end in the function to the following. Gui Submit, % Owner ? "NoHide" : "" I think it's preferable that a owned msgbox does not hide it's owner after su...
by megnatar
26 Mar 2020, 17:44
Forum: Scripts and Functions (v1)
Topic: Function: IniRead()
Replies: 22
Views: 10756

Re: Function: IniRead()

Rewritten more flexible function
by megnatar
24 Mar 2020, 04:15
Forum: Scripts and Functions (v1)
Topic: [Class] WinHook
Replies: 53
Views: 22623

Re: [Class] WinHook

I was about to write a shellhook class. You just saved me some work! Thank you for the you're fancy code and effort!!
by megnatar
10 Mar 2020, 04:39
Forum: Gaming Scripts (v1)
Topic: AutoWalk Script
Replies: 1
Views: 6295

AutoWalk Script

Hey Folk WORK IN PROGRESS................... Someone asked me if I could write a better version of my autowalk function. So I written this script that enables autowalking for most games. Both 3D and those with a isometric camera are supported. I thought to share it here, maybe you find it useful. sc...
by megnatar
22 Mar 2019, 10:35
Forum: Scripts and Functions (v1)
Topic: Function: IniRead()
Replies: 22
Views: 10756

Re: Function: IniRead()

What about this code? Run it, and then call the variables by doing: section.key note: For some reason, when I make an associative array in the function using %sectionList%[key] := value I'm able to find the variable outside the function. So ............ That's a good idea, to reference the section ...
by megnatar
20 Mar 2019, 11:08
Forum: Scripts and Functions (v1)
Topic: Function lib: FormatDword.ahk - HIWORD(), LOWORD(), MAKELONG()
Replies: 9
Views: 3158

Function lib: FormatDword.ahk - HIWORD(), LOWORD(), MAKELONG()

These functions do exactly the same as the macros found on the MSDN links below. They can be used with OnMessage() to format something like coordinates from LParam. Ore format any other 32Bit integer structured as low high bit order. HIWORD : LOWORD : MAKELONG : EXAMPLE: Return Highword as hexadecim...
by megnatar
19 Mar 2019, 12:44
Forum: Scripts and Functions (v1)
Topic: Function: FileReadLines()
Replies: 4
Views: 1815

Function: FileReadLines()

------------------------------------------------------------------------- FileReadLines ------------------------------------------------------------------------- This function will read a series of lines from a file, then returns them to OutVar. OutVar := FileReadLines( [FromTo, ] FileIn* ) Paramete...
by megnatar
19 Mar 2019, 12:30
Forum: Scripts and Functions (v1)
Topic: Function: IniRead()
Replies: 22
Views: 10756

Re: Function: IniRead()

If you look a bit closer at my example you see that the keys X , Y , W , and H will be read twice with partially different values. AFAICS, only the second value will be available after the function call. Yes i see that local variables are currently not supported. Although, the only situation I can ...
by megnatar
07 Mar 2019, 13:14
Forum: Scripts and Functions (v1)
Topic: Function: IniRead()
Replies: 22
Views: 10756

Re: Function: IniRead()

toralf wrote:
07 Mar 2019, 12:33
You are checking for a section by looking for a [. But the [ could be the value of a var. it would be better if you check if [ is the first character of that line. And maybe also check if there is a closing ].
Fixed!
Thanx for the good comment!
You have any more "what if's" available?
by megnatar
07 Mar 2019, 12:14
Forum: Scripts and Functions (v1)
Topic: Function: IniRead()
Replies: 22
Views: 10756

Re: Function: IniRead()

INI-files are usually divided into sections for a reason. What will your function do with [Edit1] X=10 Y=10 W=100 H=20 [ListView1] X=10 Y=40 W=300 H=100 ? And what happens with comment lines? Yeah it's true, the function can only be successful when the file is read from path. I could filter that th...
by megnatar
07 Mar 2019, 10:54
Forum: Scripts and Functions (v1)
Topic: Function: IniRead()
Replies: 22
Views: 10756

Re: Function: IniRead()

because of the variable reference - %TempVar% - that is used in the loop. And because of this: Functions Local •A dynamic variable reference may resolve to an existing global variable if no local variable exists by that name. Here test it! /* [ScriptGui] ; comment should be here SomeObject=MyObj[] G...
by megnatar
07 Mar 2019, 09:18
Forum: Scripts and Functions (v1)
Topic: Function: IniRead()
Replies: 22
Views: 10756

Function: IniRead()

Rewritten function iniRead() Well I've started this to reduce the nr of lines in my scripts. However I ended up with a function 75 lines long. So much for my reasoning, however this is mostly because iniRead() can be used in a flexible way. It can load all, one or a couple sections. Empty and commen...
by megnatar
17 Feb 2019, 11:27
Forum: Scripts and Functions (v1)
Topic: Copy Extra's: For Win Explorer Context Menu
Replies: 3
Views: 1828

Re: Copy Extra's Context Menu

There was a little mistake in the script that handles the copy actions.
It's fixed now.
by megnatar
16 Feb 2019, 03:51
Forum: Scripts and Functions (v1)
Topic: Copy Extra's: For Win Explorer Context Menu
Replies: 3
Views: 1828

Re: Copy Extra's Context Menu

godofOOF wrote:
16 Feb 2019, 00:56
This is actually pretty cool thanks! do i have to rerun this if i restart my pc?
Nope, it writes the settings to the windows configuration DB a.k.a. the registry.
Like I said, run the script to add the settings and run it again to remove them.

Have fun!

Go to advanced search