Search found 1403 matches

by Xtra
15 Jul 2019, 19:00
Forum: Ask For Help
Topic: SciTE4AutoHotkey - ComObjCreate("Selenium.ChromeDriver") --> "Error: 0x800401F3 - Invalid class string"
Replies: 16
Views: 1083

Re: SciTE4AutoHotkey - ComObjCreate("Selenium.ChromeDriver") --> "Error: 0x800401F3 - Invalid class string"

If you are running the script as Admin try running not as Admin.

I had another Selenium project that started today and this ended up being the issue.
Whats weird i didnt have any issues on an AWS VM just this new VM hosted elsewhere.

HTH
by Xtra
13 Jul 2019, 04:25
Forum: Ask For Help
Topic: how can I combine two ahk scripts?
Replies: 5
Views: 345

Re: how can I combine two ahk scripts?

Give this a try: ; Generated by AutoGUI 2.6.0 #SingleInstance Force #NoEnv SetWorkingDir %A_ScriptDir% SetBatchLines -1 Gui Add, Button, x47 y57 w162 h52 gstart, Start Gui Show, w254 h162 , start gosub, stop return start: Suspend, Off return stop: Suspend on return GuiEscape: GuiClose: F10:: ExitApp...
by Xtra
12 Jul 2019, 13:27
Forum: Ask For Help
Topic: Trying to loop my script 10 times
Replies: 3
Views: 197

Re: Trying to loop my script 10 times

When using else you do not check for a condition. if (ErrorLevel = 0) msgbox, found else if (ErrorLevel = 1) msgbox, not found! else ; (errorlevel = 2) msgbox, there was a problem! I'm not sure what to replace the returns with that won't mess up the actual script function. You could use Continue to ...
by Xtra
12 Jul 2019, 11:16
Forum: Ask For Help
Topic: Trying to loop my script 10 times
Replies: 3
Views: 197

Re: Trying to loop my script 10 times

CoordMode, Mouse, Screen CoordMode, Pixel, Screen #IfWinActive ALLPOSO `:: Loop, 10 ; <--- { Send, ^c SendEvent, {Click, 181, 412 Left, 3} Send, ^v Send, {enter} Sleep, 600 SendEvent, {Click, 37, 532 Left, 1} Sleep, 500 ImageSearch, FoundX, FoundY, 782, 539, 853, 590, C:\Users\kpearl\Pictures\Compl...
by Xtra
11 Jul 2019, 19:42
Forum: Ask For Help
Topic: SciTE4AutoHotkey - ComObjCreate("Selenium.ChromeDriver") --> "Error: 0x800401F3 - Invalid class string"
Replies: 16
Views: 1083

Re: SciTE4AutoHotkey - ComObjCreate("Selenium.ChromeDriver") --> "Error: 0x800401F3 - Invalid class string"

swagfag wrote:
11 Jul 2019, 18:25
install .NET 3.5
+1

its required there are file Dependencies from .NET 3.5
It is ok to update .NET after 3.5 is installed.
by Xtra
11 Jul 2019, 11:37
Forum: Ask For Help
Topic: Image Search Function is unstable Topic is solved
Replies: 2
Views: 240

Re: Image Search Function is unstable Topic is solved

xxx and yyy vars are local to the function and not in the global scope. Give this a try: waitpng(file1, ByRef posX, ByRef posY) { CoordMode, Pixel, Screen CoordMode, Mouse, Screen SetWorkingDir %A_ScriptDir% Loop { ImageSearch, posX, posY, 0, 0, 2731, 763, %file1%.png if (ErrorLevel = 0) Break if (E...
by Xtra
06 Jul 2019, 11:38
Forum: Offtopic
Topic: TIOBE Index Topic is solved
Replies: 15
Views: 1599

Re: TIOBE Index Topic is solved

ahk programming
About 152,000 results (0.64 seconds)
by Xtra
05 Jul 2019, 15:07
Forum: Ask For Help
Topic: Reset Windows, now AHK scripts won't launch
Replies: 5
Views: 215

Re: Reset Windows, now AHK scripts won't launch

Capture.PNG
Capture.PNG (46.55 KiB) Viewed 183 times
by Xtra
05 Jul 2019, 01:30
Forum: Ask For Help
Topic: Pixelgetcolor not working?
Replies: 3
Views: 229

Re: Pixelgetcolor not working?

Lets fix the obvious 1st [, RGB] <-- the square brackets means whats between them its optional. Do not include the [ ] in the code. pixelgetcolor, gold1, 541, 350 [, RGB] would be: (if you want to use the RGB optional parameter) pixelgetcolor, gold1, 541, 350, RGB etc etc This is pretty consistent i...
by Xtra
04 Jul 2019, 01:56
Forum: Ask For Help
Topic: Issue with using XPath to click a tab in a webpage Topic is solved
Replies: 13
Views: 790

Re: Issue with using XPath to click a tab in a webpage Topic is solved

driver.FindElementByXPath("YourXpathHere").AsSelect.SelectByIndex(1)
Put the XPATH and Change 1 to the index you want to choose in the dropdown.

HTH
by Xtra
03 Jul 2019, 13:33
Forum: Ask For Help
Topic: Issue with using XPath to click a tab in a webpage Topic is solved
Replies: 13
Views: 790

Re: Issue with using XPath to click a tab in a webpage Topic is solved

(i get blocked trying to reply...)

Try clicking the element like so:
driver.ExecuteScript("arguments[0].click();", ele)

You probably still want to remove the /span from the Xpath
by Xtra
03 Jul 2019, 12:38
Forum: Ask For Help
Topic: image
Replies: 19
Views: 898

Re: image

You will need a lot of variation to be using JPEGs AHKK.JPG Its just not worth the hassle its crap.
Change your search image to .png as Gregster mentioned already.
by Xtra
03 Jul 2019, 09:27
Forum: Ask For Help
Topic: Issue with using XPath to click a tab in a webpage Topic is solved
Replies: 13
Views: 790

Re: Issue with using XPath to click a tab in a webpage Topic is solved

Assuming this is for Chrome. 1) Right click the element then click inspect. 2) Ctrl + f 3) Type the Xpath into the 'find by string, selector or Xpath' search field. Use this to verify you have the right Xpath for the element you are trying for. When you have the correct Xpath it will be 1 of 1 items...
by Xtra
03 Jul 2019, 02:40
Forum: Ask For Help
Topic: Issue with using XPath to click a tab in a webpage Topic is solved
Replies: 13
Views: 790

Re: Issue with using XPath to click a tab in a webpage Topic is solved

You dont want to click a /span element.

Try:
//*[@id='pg-case-detail']/div[2]/div/div/div/ul/li[2]/a
Which is a link.
HTH
by Xtra
01 Jul 2019, 15:05
Forum: Offtopic
Topic: TIOBE Index Topic is solved
Replies: 15
Views: 1599

Re: TIOBE Index Topic is solved

From my computer using google:

autohotkey scripting
About 669,000 results (0.47 seconds)

autohotkey programming
About 722,000 results (0.43 seconds)

Your search results are weighted by your profile somehow.
If i search from another computer it will be different.
by Xtra
28 Jun 2019, 15:34
Forum: Ask For Help
Topic: Finding Excel File. Loop, Files Topic is solved
Replies: 14
Views: 927

Re: Finding Excel File. Loop, Files Topic is solved

This needs a space between the quoted string and SubStr() function call:
"\"SubStr(userinput, 1, 15)
by Xtra
28 Jun 2019, 13:41
Forum: Ask For Help
Topic: Finding Excel File. Loop, Files Topic is solved
Replies: 14
Views: 927

Re: Finding Excel File. Loop, Files Topic is solved

.xlsl is not a variable

Try using:

Code: Select all

Loop, Files, % etc... "*.xlsl" , FD
HTH
by Xtra
22 Jun 2019, 11:07
Forum: Ask For Help
Topic: split list into chunks
Replies: 4
Views: 259

Re: split list into chunks

myList = ( apple pear cheese steak chips ) Gui, Add, Edit, x6 y7 w130 h260 vtheList, % myList Gui, Add, Edit, x6 y277 w130 h30 number vnum, 2 Gui, Add, Button, x6 y317 w130 h30 Default gsplitList, Button Gui, Show, w149 h366, Splitter return splitList: Gui, Submit, NoHide if (num = 0) return fileCo...
by Xtra
17 Jun 2019, 02:18
Forum: Gaming
Topic: Problems with diablo 3 script
Replies: 8
Views: 825

Re: Problems with diablo 3 script

~*Numpad1:: Send,{Numpad2 down} ; <----------hotkey one liner code below does not run! if (getkeystate("Numpad2")) { Send,{Numpad2 up} Sleep, 700 Send, {RButton Down} Sleep, 1200 Send, {RButton Up} } return The logic of sending Numpad2 down and then checking if its down and then sending it up doesn...

Go to advanced search