Search found 373 matches

by MannyKSoSo
13 May 2019, 11:20
Forum: Ask For Help
Topic: Help me to understand the proper use of if/else
Replies: 3
Views: 138

Re: Help me to understand the proper use of if/else

It seems like you have most of your if and else statements correct, however it seems that you have some confusion on the special if statement. In this case if (CurrentIP contains "10.148.") the parenthesis are not needed. For easier use I would recommend the function InStr(). It would work like this...
by MannyKSoSo
13 May 2019, 08:22
Forum: Ask For Help
Topic: ListView - help with parsing and displaying data from a string Topic is solved
Replies: 3
Views: 113

Re: ListView - help with parsing and displaying data from a string Topic is solved

I believe what you want is to loop the character return first then split by the : Spoiler is misread original code Gui, Add, ListView,, Hostname|Location|Description|Comment Hostname:= "This", Location := "That", Description := "and", Comment := "everything" OutputResult = Hostname: %Hostname%`nLoca...
by MannyKSoSo
06 May 2019, 14:56
Forum: Ask For Help
Topic: tf.ahk using library and variables
Replies: 9
Views: 182

Re: tf.ahk using library and variables

Do you mean to be replacing a .m3u file? As far as I know variables wouldn't be a problem, but from what I can see it may not see the .m3u as a text file so it wouldn't read it.
by MannyKSoSo
06 May 2019, 09:51
Forum: Ask For Help
Topic: XML - Retrieve only a certain value within tag Topic is solved
Replies: 4
Views: 135

Re: XML - Retrieve only a certain value within tag Topic is solved

This is using x-path doc := ComObjCreate("MSXML2.DOMDocument.6.0"),doc.setProperty("SelectionLanguage", "XPath") ;create and set our doc doc.async := false doc.loadXML(data) if (doc.parseError.errorCode!=0) { MsgBox("can't load dom " doc.parseError.reason " on line " doc.parseError.line) } MsgBox % ...
by MannyKSoSo
03 May 2019, 08:28
Forum: Ask For Help
Topic: Is it a good idea to upgrade to AutoHotkey v2 now? Topic is solved
Replies: 20
Views: 602

Re: Is it a good idea to upgrade to AutoHotkey v2 now? Topic is solved

I do agree that the transition of the gui isn't that hard to understand (since all it really is now is just becoming a function call) I can still see some people becoming confused on the removal of the g-label to the onEvent(). I generally see that most people (at least for a while) won't know what ...
by MannyKSoSo
02 May 2019, 09:25
Forum: Ask For Help
Topic: COMs Wait For Page to load in Internet Explorer Topic is solved
Replies: 16
Views: 353

Re: COMs Wait For Page to load in Internet Explorer Topic is solved

wb := ComObjCreate("InternetExplorer.Application") wb.Navigate("https://www.autohotkey.com/boards/viewtopic.php?f=76&t=64206") ;This topic wb.Visible := false while wb.readyState!=4 || wb.document.readyState != "complete" || wb.busy sleep 10 MsgBox % "Loading is done!" Exitapp An example of loading...
by MannyKSoSo
02 May 2019, 07:17
Forum: Ask For Help
Topic: Is it a good idea to upgrade to AutoHotkey v2 now? Topic is solved
Replies: 20
Views: 602

Re: Is it a good idea to upgrade to AutoHotkey v2 now? Topic is solved

@SOTE Sorry for the confusion, but gregster is correct, I was more referring to the g-labels, which in v1 make it easy to go to pre-made labels, but moving to v2 you have to set up each button or label to a function if you want that control to do something when it changes (this is where v1 is easier...
by MannyKSoSo
01 May 2019, 11:17
Forum: Ask For Help
Topic: Is it a good idea to upgrade to AutoHotkey v2 now? Topic is solved
Replies: 20
Views: 602

Re: Is it a good idea to upgrade to AutoHotkey v2 now? Topic is solved

I'd say one of the biggest changes is with GUI's and controls. Pretty much everything has moved to functions now, so labels are now gone. Other than that everything else has pretty much stayed the same except being function calls for everything.
by MannyKSoSo
01 May 2019, 11:08
Forum: Ask For Help
Topic: Is it a good idea to upgrade to AutoHotkey v2 now? Topic is solved
Replies: 20
Views: 602

Re: Is it a good idea to upgrade to AutoHotkey v2 now? Topic is solved

Well v2 isn't completed yet. Its being worked on slowly, but lexikos hasn't released it fully. If you want it for the newer style and how everything flows I say you can go for it, but in terms of stability and usability I would stick with v1 for now.
by MannyKSoSo
29 Apr 2019, 15:12
Forum: Ask For Help
Topic: [NOOB]Help me with this script please. Topic is solved
Replies: 1
Views: 62

Re: [NOOB]Help me with this script please. Topic is solved

!x::Suspend F1:: SetKeyDelay, 75 MyLabel: Send {Enter} Send {Up 6} Send {Right 31} Send {Down} Send {Right 21} Send {Down 5} Send {Enter} MouseGetPos, MouseX, MouseY PixelSearch, Px, Py, MouseX, MouseY, MouseX, MouseY, 0xffffff, 3, Fast if ErrorLevel { Send {esc} Goto, MyLabel } else { Send, y Send...
by MannyKSoSo
29 Apr 2019, 14:38
Forum: Ask For Help
Topic: AHK v2 GUI parser
Replies: 8
Views: 266

Re: AHK v2 GUI parser

Helgef Indeed that worked. I used global in front of myGuiObj so I could access it in all my functions (but that is just me) tank Interesting I will take a look at it. My main goal for the whole thing is to make it so all gui information could be contained within another file (and not clutter the m...
by MannyKSoSo
29 Apr 2019, 08:28
Forum: Ask For Help
Topic: AHK v2 GUI parser
Replies: 8
Views: 266

Re: AHK v2 GUI parser

What I mean is when you use a statement like so FakeLink := Gui.Add("Text", "", "Click here to launch Google.") This allows you to have a variable set up so you can access everything about that control. This is why in the Create() method contains the %Variable% so it can be access in that way. At th...
by MannyKSoSo
26 Apr 2019, 14:57
Forum: Ask For Help
Topic: AHK v2 GUI parser
Replies: 8
Views: 266

Re: AHK v2 GUI parser

One problem I am getting is with line %Varaible% := this.GuiName.Add(this.doc.selectSingleNode("//MainGui/Control[" A_Index "]/Type").text, Options, this.doc.selectSingleNode("//MainGui/Control[" A_Index "]/Text").text) as even if it is global I cannot get the value if I call it. Says there is an ob...
by MannyKSoSo
24 Apr 2019, 09:50
Forum: Ask For Help
Topic: A Better Way to Debug? Topic is solved
Replies: 8
Views: 146

Re: A Better Way to Debug? Topic is solved

My suggestion is when you are having a problem with the script you have a few options. The first suggestion is to add a try and catch statement around your new code. If there is an error you will find it. The other way is to take the function and data that calls the function out of the script (if it...
by MannyKSoSo
24 Apr 2019, 09:23
Forum: Ask For Help
Topic: AHK v2 GUI parser
Replies: 8
Views: 266

Re: AHK v2 GUI parser

I have taken most of your notes into consideration. I have fixed the spelling and removed the global from the class. It was originally in there from some older example. As for the v-option it is supposed to use that as similar to this FakeLink := Gui.Add("Text", "", "Click here to launch Google.") s...
by MannyKSoSo
24 Apr 2019, 08:57
Forum: Ask For Help
Topic: AHK v2 GUI parser
Replies: 8
Views: 266

AHK v2 GUI parser

Hello, I am currently following the development of the AHK v2 and I have been slowly working on a way to take an xml data and turn it into a GUI. I have the basics down, but I am running into some problems. The first thing is that functions that are created I can't really access what the current val...
by MannyKSoSo
24 Apr 2019, 08:05
Forum: Ask For Help
Topic: Replace string in .txt Topic is solved
Replies: 8
Views: 274

Re: Replace string in .txt Topic is solved

Loop, Read is more efficient than reading the whole file (since when you read the whole file you have to store it into memory), with this you don't need to read the whole thing, just line by line. And you are welcome.
by MannyKSoSo
23 Apr 2019, 13:52
Forum: Ask For Help
Topic: get the value of a input field
Replies: 16
Views: 387

Re: get the value of a input field

What you can do is this wb := ComObjCreate("InternetExplorer.Application") wb.Navigate("YourURL") wb.Visible := false while wb.readyState!=4 || wb.document.readyState != "complete" || wb.busy sleep 10 return ^t::MsgBox % wb.document.getElementById("psLookup").value Put your url code in and launch th...

Go to advanced search