Search found 94 matches
- 30 Oct 2019, 16:18
- Forum: Ask For Help
- Topic: Script Help Topic is solved
- Replies: 1
- Views: 395
Re: Script Help Topic is solved
Hi, you can always use a Parse-Loop to operate on the individual lines of a file or variable, but I must admit that I'm not entirely sure what you want the script to do afterwards. A Parse-Loop would look like this: Loop, Parse, YourString, `n, `r { IndividualLine := A_LoopField } The variable "Indi...
- 21 Oct 2019, 14:56
- Forum: Ask For Help
- Topic: How do you auto highlight text based on space between words? Topic is solved
- Replies: 5
- Views: 749
Re: How do you auto highlight text based on space between words? Topic is solved
Hi, this was just an example to demonstrate how to use StrSplit. In your code you will have Send, {Control}{Shift}{Left} Send,{Control down}c{Control up} before that, so, as you stated correctly, you will have to change that to MyCopiedText := Clipboard ; without quotation marks because it is a vari...
- 21 Oct 2019, 11:08
- Forum: Ask For Help
- Topic: How do you auto highlight text based on space between words? Topic is solved
- Replies: 5
- Views: 749
Re: How do you auto highlight text based on space between words? Topic is solved
Hi, have a look at this example: MyCopiedText := "George Mathew Coman" NameArray := StrSplit(MyCopiedText, A_Space) Loop, % NameArray.Length() { MsgBox % NameArray[A_Index] } return StrSplit will return an array that is structured like this: ReturnedArray := Array("George", "Mathew", "Coman") Each e...
- 21 Oct 2019, 10:52
- Forum: Ask For Help
- Topic: How do you auto highlight text based on space between words? Topic is solved
- Replies: 5
- Views: 749
Re: How do you auto highlight text based on space between words? Topic is solved
Hi, if I understand your problem correctly, you could try the following: Instead of highlighting every word on its own, send {Control}{Shift}{Left} three times to highlight the three words Send {Control}c to copy them and do a StrSplit() on the clipboard (seperating by spaces) The resulting array wi...
- 10 Oct 2019, 11:26
- Forum: Ask For Help
- Topic: How to retrieve text above and below String?
- Replies: 13
- Views: 2057
Re: How to retrieve text above and below String?
Hi, try this one. I modified my function to output an array containing all the occurrences of the searched word with their surroundings. String := ( "Fifty years, and you remain a child, Infinitely valued, loved, and treasured. Fierce winds may rip away at autumn leaves, The kind of turn by which on...
- 08 Oct 2019, 06:48
- Forum: Ask For Help
- Topic: Script constantly working
- Replies: 2
- Views: 378
Re: Script constantly working
Hi,
have a look at ControlClick and ControlSend.
These commands allow you to send keystrokes and clicks directly to the window, even if you're working in another application.
have a look at ControlClick and ControlSend.
These commands allow you to send keystrokes and clicks directly to the window, even if you're working in another application.
- 07 Oct 2019, 15:41
- Forum: Ask For Help
- Topic: How to retrieve text above and below String?
- Replies: 13
- Views: 2057
Re: How to retrieve text above and below String?
Hi, could you please post another example you tried where it did not work so I can have a look at that? For the numbers: I structured the function like this: WordPeriphery(Text, SearchWord, Num1 := 10, Num2 := 10) "Num1 := 10" and "Num2 := 10" mean that Num1 and Num2 are optional arguments for that ...
- 07 Oct 2019, 12:30
- Forum: Ask For Help
- Topic: How to retrieve text above and below String?
- Replies: 13
- Views: 2057
Re: How to retrieve text above and below String?
Hi, have a look at these pages in the docs: FileRead File Object You`ll probably want to go with FileRead, so you have to include FileRead, String, FolderPathOfYourFile\result.txt at the beginning of either of those scripts. Autohotkey has to read the file first before it can operate on the file's c...
- 07 Oct 2019, 11:24
- Forum: Ask For Help
- Topic: How to retrieve text above and below String?
- Replies: 13
- Views: 2057
Re: How to retrieve text above and below String?
Hi, in addition to the answer above, you can also try this one, which grants you a little bit more control over the search function: String := ( "After all, the Earth must wait for spring. No angel ever changed the pace of time. Goodness is still tucked away below, Empty as a field asleep in snow, L...
- 06 Oct 2019, 10:38
- Forum: Ask For Help
- Topic: Closing word file when done
- Replies: 5
- Views: 544
Re: Closing word file when done
Hi,
as .quit() is a function it needs parentheses. This should work:
as .quit() is a function it needs parentheses. This should work:
Code: Select all
oWord := ComObjCreate("Word.Application")
oWord.Visible := False
oWord.Documents.Open(Path)
; .... other Code
oWord.quit()
- 06 Oct 2019, 10:33
- Forum: Ask For Help
- Topic: Capitalize first letter of word where cursor at
- Replies: 2
- Views: 275
Re: Capitalize first letter of word where cursor at
Hi, like this one? #SingleInstance Force ^#:: Clipboard := "" Send +^{Right} Send ^c ClipWait StringUpper Clipboard, Clipboard, T Send ^v return You can replace "^#" with the hotkey you want to press. In order to use this script you have to place the cursor in front of the word and hit the hotkey. T...
- 06 Oct 2019, 03:05
- Forum: Tutorials
- Topic: Using Selenium with AutoHotkey- Cross browser automation!
- Replies: 162
- Views: 100903
Re: Using Selenium with AutoHotkey- Cross browser automation!
Xtra I'm using Microsoft Edge (EdgeHTML) version 18 and thats the problem because you can only download the drivers up to version 17, version 18 needs to be installed through the command window so I don't get an .exe-file that I could copy to the SeleniumBasic Folder. That is my problem. I already ...
- 02 Oct 2019, 06:02
- Forum: Tutorials
- Topic: Using Selenium with AutoHotkey- Cross browser automation!
- Replies: 162
- Views: 100903
Re: Using Selenium with AutoHotkey- Cross browser automation!
Hi all, I just started with Selenium because I wanted to automate Microsoft Edge. I installed it to "C:/Programe Files/SeleniumBasic" and the driver for IE is working correctly, but sadly the driver for Edge is not working at all. I always get a timeout and when I try to start the "edgedriver.exe" I...
- 26 Aug 2019, 13:26
- Forum: Ask For Help
- Topic: Stopping loop if variable in current window Topic is solved
- Replies: 2
- Views: 480
Re: Stopping loop if variable in current window Topic is solved
You could try WinText , possibly with DetectHiddenText on, but as I am not using Chrome myself, I'm not entirely sure that this will work. Despite that, you could increase your chance of success by adding a sleep command inbetween the send-command, maybe even a second loop that checks your clipboard...
- 26 Aug 2019, 13:21
- Forum: Ask For Help
- Topic: How to have many windows of browsers Topic is solved
- Replies: 5
- Views: 860
Re: How to have many windows of browsers Topic is solved
You would have to provide more information what you want to do, because even if you looked up the URL, if it's the same title it will almost every time also be the same URL. At least on firefox, WinText is also empty, that would not get you any further. But I don't think that it is very likely that ...
- 22 Aug 2019, 15:56
- Forum: Ask For Help
- Topic: Regular expression to apply in a TXT file
- Replies: 3
- Views: 781
Re: Regular expression to apply in a TXT file
Hi, I just came up with this. I hope it does what you wanted. The Text is just an example, just copy that function and call it whenever you need it. Text := "This Text is `nsplit into two lines!`r`nThere are mutliple sentences too." Text := PolishText(Text) MsgBox % Text return PolishText(Text) { Te...
- 22 Aug 2019, 01:57
- Forum: Ask For Help
- Topic: Detect application icon change ?
- Replies: 1
- Views: 351
Re: Detect application icon change ?
Hi,
you could do an ImageSearch for the new icon or just a PixelGetColor to detect that.
But depending on what program it is, there might be an easier solution.
you could do an ImageSearch for the new icon or just a PixelGetColor to detect that.
But depending on what program it is, there might be an easier solution.
- 21 Aug 2019, 09:38
- Forum: Ask For Help
- Topic: Opening web site according to my order Topic is solved
- Replies: 4
- Views: 764
Re: Opening web site according to my order Topic is solved
Hi, first of all you probably need to insert a Sleep command after each tab, because your browser has to register what you are doing first and the response time will vary depending on the website's response time. Second, what exactly does "If A_Index = 0" mean? "A_Index" will never be "0" inside a l...
- 21 Aug 2019, 05:09
- Forum: Gaming
- Topic: Need help activating and deactivating this script. Topic is solved
- Replies: 5
- Views: 1121
Re: Need help activating and deactivating this script. Topic is solved
There you go: SendMode, Input ScriptRunning:= false Alt:: ScriptRunning := !ScriptRunning return #If ScriptRunning WheelDown:: Loop, 6 { Send, {LButton} Sleep, 20 Send, {RButton} Sleep, 20 } return #If The script is turned off by default, meaning you have to press the Alt-Key to activate it. If you ...
- 21 Aug 2019, 04:53
- Forum: Ask For Help
- Topic: Autoit to Ahk (InetRead) Topic is solved
- Replies: 4
- Views: 845
Re: Autoit to Ahk (InetRead) Topic is solved
Hi, here you go. This should be what you wanted: URL := "http://api..com/php/getInfo/user=" InputBox, sInput, User, Gib einen Usernamen ein: MsgBox, 64, Ausgabe, % "Der User '" sInput "' ist " . Text := IsOnline(sInput) = 0 ? "nouser" : "ok" . "." return IsOnline(sInput) { global URL UserRequest := ...