Search found 1054 matches

by Xtra
Today, 02:28
Forum: Ask For Help
Topic: Limiting frequency of script execution
Replies: 2
Views: 27

Re: Limiting frequency of script execution

When you have a multi line hotkey subroutine it has to be on its own line.

Code: [Select all] [Expand]GeSHi © Codebox Plus

by Xtra
Yesterday, 14:27
Forum: Gaming
Topic: Find name in screen and move mouse on it
Replies: 3
Views: 54

Re: Find name in screen and move mouse on it

You can try image search using *Trans and some variation to find anything. Example based on the image in your link (not zoomed in) #NoEnv CoordMode, Pixel, Screen CoordMode, Mouse, Screen 1:: ImageSearch, FoundX, foundY, 0, 0, A_ScreenWidth, A_ScreenHeight, *TransBlack *30 %A_ScriptDir%\Bexten.png i...
by Xtra
Yesterday, 13:53
Forum: Ask For Help
Topic: Selenium clicking element
Replies: 3
Views: 45

Re: Selenium clicking element

Is the element in a iFrame?
by Xtra
Yesterday, 02:33
Forum: Ask For Help
Topic: Selenium clicking element
Replies: 3
Views: 45

Re: Selenium clicking element

JavaScript arrays are 0 based and selenium is 1 based.
Try:
RPdriver.getElementsByClassName("clickable").item[2].WaitEnabled().click()

HTH
by Xtra
18 May 2018, 16:22
Forum: Ask For Help
Topic: PixelSearch with variables issues. Topic is solved
Replies: 3
Views: 62

Re: PixelSearch with variables issues. Topic is solved

I meant to put 0x4BDB6A as the color sry about that.
by Xtra
18 May 2018, 16:01
Forum: Ask For Help
Topic: PixelSearch with variables issues. Topic is solved
Replies: 3
Views: 62

Re: PixelSearch with variables issues. Topic is solved

A few things... Remove RGB to make it use the default BGR or change it to the correct hex color of 0x4BDB6A Add a return to your close your hotkey statement. What you have should work if the above was fixed, Syntax cleaned up: #NoEnv Tolerance := 10 ColorID := 0x4BDB6A *~$q:: while GetKeyState("...
by Xtra
18 May 2018, 01:22
Forum: Gaming
Topic: Cycling keystrokes?
Replies: 8
Views: 140

Re: Cycling keystrokes?

Kryu wrote: but just to practice ternary operator:


Code: [Select all]GeSHi © Codebox Plus

F7::Send % c := c=3 ? 4 : c=4 ? 5 : 3
by Xtra
17 May 2018, 20:48
Forum: Ask For Help
Topic: Stop a loop with A_TimeIdlePhysical
Replies: 4
Views: 64

Re: Stop a loop with A_TimeIdlePhysical

#NoEnv Esc::ExitApp ^k:: KeyWait, Ctrl KeyWait, k Loop { Send your_text_here{Enter} if (randSleep(1000, 2000) = false) break } return randSleep(a, b) { Random, r, a, b Loop, 50 { Sleep r//50 if (A_TimeIdlePhysical < 25) return 0 } return 1 }
by Xtra
16 May 2018, 16:40
Forum: Ask For Help
Topic: Help with killing a window depending on state of ScrollLock
Replies: 5
Views: 80

Re: Help with killing a window depending on state of ScrollLock

Give this a try: #NoEnv #SingleInstance, Force Gui, +AlwaysOnTop -SysMenu +Disabled Gui, Show, Hide NoActivate x1330 y0 w90 h-2 NA, Center gosub, ~ScrollLock return ~ScrollLock:: KeyWait, ScrollLock if GetKeyState("ScrollLock","T") = true Gui, Show else Gui, Hide return Esc::Exit...
by Xtra
14 May 2018, 09:01
Forum: Ask For Help
Topic: Maximize window/frame in chrome
Replies: 4
Views: 80

Re: Maximize window/frame in chrome

Maximize and full screen are not the same thing.
Send, {F11} to make full screen.

Code: [Select all]GeSHi © Codebox Plus

#NoEnv
#SingleInstance, Force
Run, Chrome.exe --new-window http://www.livenewson.com/american/msnbc.html
WinWaitActive, Watch MSNBC Live Streaming
Send, {F11}
by Xtra
14 May 2018, 01:48
Forum: Ask For Help
Topic: Maximize window/frame in chrome
Replies: 4
Views: 80

Re: Maximize window/frame in chrome

#NoEnv #SingleInstance, Force Run, Chrome.exe --new-window http://www.livenewson.com/american/msnbc.html WinWait, ahk_exe chrome.exe Watch MSNBC Live Streaming - MSNBC News Online - Google Chrome WinMaximize, ahk_exe chrome.exe Watch MSNBC Live Streaming - MSNBC News Online - Google Chrome Remove -...
by Xtra
13 May 2018, 18:36
Forum: Ask For Help
Topic: Convert milliseconds to HH:MM:SS
Replies: 7
Views: 178

Re: Convert milliseconds to HH:MM:SS

MsgBox % Format_Msec(654546541653) Format_Msec(ms) { VarSetCapacity(t,256),DllCall("GetDurationFormat","uint",2048,"uint",0,"ptr",0,"int64",ms*10000,"wstr","d' days 'h':'mm':'ss","wstr",t,"int",256) return t }
by Xtra
13 May 2018, 03:22
Forum: Forum Issues
Topic: AutoHotkey.net domain hijacked
Replies: 16
Views: 435

Re: AutoHotkey.net domain hijacked

Isn't this old news? In the old forum all the links to this got fixed to redirect to a safe ahk page.
by Xtra
12 May 2018, 16:33
Forum: Ask For Help
Topic: Cannot go to target label that exists
Replies: 8
Views: 116

Re: Cannot go to target label that exists

gregster wrote:I see. After all, a great feature :shifty:
:think:
by Xtra
12 May 2018, 15:07
Forum: Ask For Help
Topic: Cannot go to target label that exists
Replies: 8
Views: 116

Re: Cannot go to target label that exists

@joe :arrow: done
by Xtra
06 May 2018, 03:30
Forum: Ask For Help
Topic: Guicontrol hide or show for many controls Topic is solved
Replies: 2
Views: 55

Re: Guicontrol hide or show for many controls Topic is solved

Put the control names into an array. Example: #NoEnv Controls := ["one","two","three","four","five" ,"this","that","name","butt","title" ,"hey","hi","help","me"...
by Xtra
06 May 2018, 02:50
Forum: Gaming
Topic: search for variation of color at pixel, send key if not found Topic is solved
Replies: 4
Views: 103

Re: search for variation of color at pixel, send key if not found Topic is solved

Your posted code will always be not errorlevel=0.

For one pixel the coords would look like this:
PixelSearch,,, 1044, 1008, 1045, 1009, 0xeb7796, 100

This will check the pixel at x1044 y1008

HTH
by Xtra
05 May 2018, 15:37
Forum: Ask For Help
Topic: Drop Down List population from Keys in INI file Topic is solved
Replies: 2
Views: 64

Re: Drop Down List population from Keys in INI file Topic is solved

Since you are getting the whole section at one shot you need to split by `n and then retrieve the key or value of each line. #SingleInstance, Force accountDDL := "List Of Accounts:||" IniRead, listOfAccounts, % A_ScriptFullPath, Accounts StringSplit, account, listOfAccounts, `n Loop, % acc...

Go to advanced search