Search found 2688 matches

by wolf_II
17 Oct 2019, 20:59
Forum: Bug Reports
Topic: if(VarContainingString =/!= OtherVarContainingString) Bug
Replies: 4
Views: 2294

Re: if(VarContainingString =/!= OtherVarContainingString) Bug

In order to perform string comparison, try ==

Code: Select all

Var1 = +1
Var2 = 1
msgbox,% Var1 "`n" Var2  "`nClearly they are different."

if( Var1 == Var2 )
     msgbox, they are different and you will get to see this message
by wolf_II
29 Sep 2019, 06:59
Forum: Ask for Help (v1)
Topic: Check all or clear all checkboxes
Replies: 95
Views: 16249

Re: Check all or clear all checkboxes

orry for the delayed response. I suggest this code: Programs() { new Menu.Page(Title := "Installation and shortcuts", "Start_Programs") .AddCheckbox( 0, "wnetwatcher", "Wireless Network Watcher (1Mb)") .AddCheckbox( 0, "ammyy", "Ammyy (1Mb)") .AddCheckbox( 0, "rufus", "Rufus (2Mb)") .AddCheckbox( 0,...
by wolf_II
29 Sep 2019, 05:28
Forum: Bug Reports
Topic: AltSubmit breaks onExit() Topic is solved
Replies: 3
Views: 2854

Re: AltSubmit breaks onExit() Topic is solved

Thank you for your detailed explanation. I appreciate it. There is a lot of stuff going on with regards to MsgBox , and that came as a surprise to me. I will test with v1.1.31 and report back, Thank you for looking into this issue. Edit: I did a first test, and it went well. Thank you for fixing thi...
by wolf_II
31 Aug 2019, 10:50
Forum: Ask for Help (v1)
Topic: How to correct command in program argument in Run
Replies: 9
Views: 2429

Re: How to correct command in program argument in Run

I have no idea, but it seems to me as if: parameters for batch file are of the form: Space --command-subcommand Try to insert the missing Space here: Run, "D:\Emulation\Commodore\Kernal64\k128.bat" --vdc-80-startup --vdc-enabled --mmupanel-enabled --cpm64-enabled --int-rom "D:\Emulation\Commodore\_R...
by wolf_II
29 Aug 2019, 06:39
Forum: Ask for Help (v1)
Topic: Run label in another ahk Topic is solved
Replies: 2
Views: 745

Re: Run label in another ahk Topic is solved

One way would be to "RemoteControl" Second.ahk from inside First.ahk, using onMessage() and SendMessage Example: ; First.ahk DetectHiddenWindows, On SendMessage, 12345,,,, R:\Temp\Second.ahk ; this remotely controls a script ; Second.ahk OnMessage(12345, "RemoteControl") return ; end of auto-execute...
by wolf_II
07 Aug 2019, 11:16
Forum: Ask for Help (v1)
Topic: [v2] Hex Format Issue (same for v1)
Replies: 3
Views: 1270

Re: [v2] Hex Format Issue (same for v1)

Try this: (to see what :020X does ; it does padding with zeroes) Hex := Format("{:020X}",-1) HexLength := StrLen(Hex) HexSubStr := SubStr(Hex,-1) MsgBox % Format("-1 Hex = {}`nHex Length = {}`nHexSubStr = {}" , Hex, HexLength, HexSubStr) Hex is a 16digit HexValue. Padding it with zeroes will not tru...
by wolf_II
29 Jul 2019, 07:41
Forum: Ask for Help (v1)
Topic: Next iteration in alphabetical list
Replies: 6
Views: 1556

Re: Next iteration in alphabetical list

This looks like you are mixing up a few things.
1 - don't use legacy syntax in function calls. Use Function syntax (No %)
2 - don't use legacy array when you got real ones.
3 - to get real array, you must create one before the Push()

Code: Select all

arrayList := []
Edit: oop, nr 3 was not a mix-up, my bad
by wolf_II
29 Jul 2019, 05:07
Forum: Ask for Help (v1)
Topic: Next iteration in alphabetical list
Replies: 6
Views: 1556

Re: Next iteration in alphabetical list

Try this: ; make a List array from given text FileRead, content, List.txt global List := StrSplit(content, "`n", "`r") ; Test MsgBox, % Next("z") return ; end of auto-execute section ;------------------------------------------------------------------------------- Next(Item) { ; return the follower o...
by wolf_II
27 Jul 2019, 10:04
Forum: Ask for Help (v1)
Topic: ByRef - Nothing happens Topic is solved
Replies: 7
Views: 2114

Re: ByRef - Nothing happens Topic is solved

I tried to return an array and three variables from a function.
You succeeded in returning an array from the function, but in your test there is no catcher.
To catch the "rebouncing" return value, you write:

Code: Select all

aVar := funcByRef()
by wolf_II
14 Jul 2019, 15:54
Forum: Ask for Help (v1)
Topic: Step containing variable does not execute
Replies: 1
Views: 624

Re: Step containing variable does not execute

try Send {Down %var%}
by wolf_II
13 Jul 2019, 21:22
Forum: Ich brauche Hilfe
Topic: Parse Loop und Guicontrol mit Variablen Topic is solved
Replies: 3
Views: 1698

Re: Parse Loop und Guicontrol mit Variablen Topic is solved

Entferne die Leerzeichen im Innern des Strings in der Zeile:

Code: Select all

varnames := "A, B, C"

Code: Select all

varnames := "A,B,C" ; ohne Leerzeichen
by wolf_II
12 Jul 2019, 14:29
Forum: Ask for Help (v1)
Topic: If if two strings are equal (words/sentences not numbers) - Can't figure out how to trigger then Topic is solved
Replies: 4
Views: 1238

Re: If if two strings are equal (words/sentences not numbers) - Can't figure out how to trigger then Topic is solved

check with MsgBox what LoadedText contains.
then correct the path.

replace file := "M:My\txtfile\location.txt"
with file := "M:\My\txtfile\location.txt"

also untested.
by wolf_II
11 Jul 2019, 19:31
Forum: Ask for Help (v1)
Topic: Simple Right Click Request Topic is solved
Replies: 2
Views: 941

Re: Simple Right Click Request Topic is solved

Try this:

Code: Select all

^LButton:: RButton
I hope that helps.

^ means Ctrl
the one-liner defines a remapping for Ctrl + LeftMouseButton to yield RightMouseButton
by wolf_II
11 Jul 2019, 18:35
Forum: Ask for Help (v1)
Topic: i always wanted to know, but was afaid to ask
Replies: 5
Views: 1542

Re: i always wanted to know, but was afaid to ask

I don't know whether this is what you need. Thank you, I don't know yet, my brain melted just now. But I can start to see how this is working ... No wait, all I can see is spaghetti (A description on my brain, not of your or Lexikos ' code. This is difficult to wrap my head around. It will take a w...
by wolf_II
11 Jul 2019, 05:15
Forum: Ask for Help (v1)
Topic: i always wanted to know, but was afaid to ask
Replies: 5
Views: 1542

Re: i always wanted to know, but was afaid to ask

Thx, this looks promising, theoretically this is giving me the first hurdle. I have also this script from teadrinker : text := "Hello, World!" sym := Chr(1) Loop 300 text .= (!mod(A_Index, 40) ? "`n" : "") . sym ToolTip % text hTT := WinExist("ahk_class tooltips_class32 ahk_pid" . DllCall("GetCurren...
by wolf_II
10 Jul 2019, 17:22
Forum: Ask for Help (v1)
Topic: i always wanted to know, but was afaid to ask
Replies: 5
Views: 1542

i always wanted to know, but was afaid to ask

ToolTipGui - how to embed a GUI into a tooltip window.? I have been looking for an example of ToolTipGui, which is in line of TooTipOpt. something like (pseudo-code, totally not working, maybe a little bit): ;------------------------------------------------------------------------------- ; ToolTipG...
by wolf_II
09 Jul 2019, 15:40
Forum: Ask for Help (v1)
Topic: Many URLS in One Variable Breaks Script Topic is solved
Replies: 3
Views: 1239

Re: Many URLS in One Variable Breaks Script Topic is solved

If a contiguous string is too long, you can also replace it with concatenation:

Code: Select all

loop 20000
veryLongString .= "Line" . A_Index
MsgBox, % StrLen(veryLongString)
by wolf_II
08 Jul 2019, 19:34
Forum: Ask for Help (v1)
Topic: Passing variables/values between scripts
Replies: 5
Views: 1953

Re: Passing variables/values between scripts

I only recently changed my approach to using JavaScript from within AHK. I currently think: No, the COMobject is without writing to file. I did not give a fileName, it resides in Memory. I might be wrong, though. I experimented in the past with ActiveX, to be able to look inside and debug JS.code. W...
by wolf_II
08 Jul 2019, 18:07
Forum: Ask for Help (v1)
Topic: Simple Load/Save Character Dialog Topic is solved
Replies: 4
Views: 1284

Re: Simple Load/Save Character Dialog Topic is solved

is there anything I can put into the save files to transfer the values before it finishes?
I'm not sure. I don't think so... there may be ways, but they would be more complicated than Ini-files.

Go to advanced search