Search found 1125 matches

by A_AhkUser
21 Mar 2017, 08:46
Forum: Ask For Help
Topic: AutoHotkey - Script to Toggle Minimize/Maximize Window
Replies: 17
Views: 6293

Re: AutoHotkey - Script to Toggle Minimize/Maximize Window

Bluerose555 wrote: none of which have worked
Where are script you've written? that way it will be possible for to detect what exactly was wrong highlighting errors in this scripts and hence help you.
by A_AhkUser
20 Mar 2017, 17:56
Forum: Gaming
Topic: Until is not working for loop Topic is solved
Replies: 7
Views: 1282

Re: Until is not working for loop Topic is solved

Masonjar13 wrote:They simply forgot to update the loop count. Just as well, there is one too many s's in that array.
sssorry... :oops:

Masonjar13 wrote:instead of embedded loops, why not use SetTimer?
niice solution
and never thinked about [a_index>4?a_index]thanks for sharing the tips ;)
by A_AhkUser
20 Mar 2017, 17:15
Forum: Ask For Help
Topic: ComObjConnect/IE question
Replies: 8
Views: 1898

Re: ComObjConnect/IE question

I'm not sure why you are getting so many errors. I can run the script with the webpage embedded in a GUI or not embedded. I am running Win7 64bit on IE 11 with admin privileges. for sure it's work. just tried it out with a badly written html: < <head> <meta http-equiv="X-UA-Compatible" content="IE=...
by A_AhkUser
20 Mar 2017, 16:54
Forum: Gaming
Topic: Until is not working for loop Topic is solved
Replies: 7
Views: 1282

Re: Until is not working for loop Topic is solved

#MaxThreadsPerHotkey 2 ; This setting is used to control how many "instances" of a given hotkey or hotstring subroutine are allowed to exist simultaneously and here 2 is usefull since we want stop the subroutine using the same hotkey expression which alongside until is evaluated after the inner loo...
by A_AhkUser
20 Mar 2017, 12:08
Forum: Ask For Help
Topic: Execute a block of code multiple times in a single line? Topic is solved
Replies: 2
Views: 554

Re: Execute a block of code multiple times in a single line? Topic is solved

Code: Select all

MyFunc() {
Send {a}
Send {b}
Send {c}
} ; 

run % A_WinDir . "/notepad.exe"
WinActivate, ahk_class Notepad
MyFunc()
sleep, 1000
MyFunc()
sleep, 1000
MyFunc()
see https://autohotkey.com/docs/Functions.htm
by A_AhkUser
19 Mar 2017, 23:17
Forum: Ask For Help
Topic: Detect click into HTML Form
Replies: 2
Views: 1057

Re: Detect click into HTML Form

Here's an template (IE specific however) - click the search bar @ google.fr it will display msgbox (ahk) based on ID of the HTML element (here "lst-ib") Class EventHandler { onclick(__doc) { if (__doc.parentWindow.event.target.getAttribute("id") == "lst-ib") { MsgBox, test } } ; see https://autohotk...
by A_AhkUser
19 Mar 2017, 23:07
Forum: Pedir Ayuda
Topic: AYUDAAA para minimizar programas con una tecla
Replies: 4
Views: 1768

Re: AYUDAAA para minimizar programas con una tecla

Loop, 4 { run % A_WinDir . "/notepad.exe" sleep, 1000 } ; 4 ventanas abierta del mismo juego WinGet, ListaConteniendoLosIdentificadoresDeLasVentanasDeLaBlocDeNotas, List, ahk_class Notepad Loop, %ListaConteniendoLosIdentificadoresDeLasVentanasDeLaBlocDeNotas% { this_id := ListaConteniendoLosIdentif...
by A_AhkUser
19 Mar 2017, 19:14
Forum: Ask For Help
Topic: Help a new user out
Replies: 1
Views: 379

Re: Help a new user out

#MaxThreadsPerHotkey 1 ; This setting is used to control how many "instances" of a given hotkey or hotstring subroutine are allowed to exist simultaneously - here 1 LButton:: ; Left mouse click will trigger subroutine sleep, 8200 ; waits 8,2 seconds (8200ms) send, #e ; WIN+E will be clicked (which ...
by A_AhkUser
19 Mar 2017, 16:09
Forum: Ask For Help
Topic: Quick Question about Waiting for an Image to appear and If Statement
Replies: 4
Views: 851

Re: Quick Question about Waiting for an Image to appear and If Statement

What do you mean by:
PlantPerson1921 wrote: wait for a image
?

Can the image be retrieved as a specific control of a window ? I mean: picture appears after you've lunched, for instance, paint? in specific webpage from your browser? or in a specific game (such as in PSX)?
by A_AhkUser
19 Mar 2017, 13:53
Forum: Pedir Ayuda
Topic: AYUDAAA para minimizar programas con una tecla
Replies: 4
Views: 1768

Re: AYUDAAA para minimizar programas con una tecla

!Hola! aqui un patron: abrir un juego (aqui un ejemplo con la bloca de notas) run, notepad mira https://www.autohotkey.com/docs/commands/Run.htm automaticamente cada cierto tiempo Loop ; repite indefinitivamente { if (mod(a_index, 2)) ; si el indice del loop es impar... WinMaximize, ahk_class Notepa...
by A_AhkUser
19 Mar 2017, 12:01
Forum: Pedir Ayuda
Topic: Bloc de notas (Notepad): abrir archivos txt ya existentes en forma maximizada
Replies: 10
Views: 7152

Re: Bloc de notas (Notepad): abrir archivos txt ya existentes en forma maximizada

Y para maximizar otros archivos que abro con el Bloc de notas (por ejemplo los .ahk). Si editas especialmente tus ahk script en el bloc de notas solo tienes que modicar el codigo de Flipeador . RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, cmd /c start /max notepad `%1 if (ErrorLevel...
by A_AhkUser
19 Mar 2017, 09:08
Forum: Ask For Help
Topic: Number the links on webpage 1-100, for user to choose with keyboard
Replies: 8
Views: 2485

Re: Number the links on webpage 1-100, for user to choose with keyboard

As it concerns javascript and chrome extension I should be discussed wthin ' Other Programming Languages ' section where you can Discuss other programming languages besides AutoHotkey Anyway no matter ;) For match patterns you should have took a glance @ https://developer.chrome.com/extensions/match...
by A_AhkUser
18 Mar 2017, 22:30
Forum: Ask For Help
Topic: How to copy current subtitles statement's text to clipboard? (VLC Player, SRT)
Replies: 5
Views: 2077

Re: How to copy current subtitles statement's text to clipboard? (VLC Player, SRT)

Here's a solution. If subtitles statements appear always at the same position relatively to x0, y0 of VLC window you can do it easily with Capture2Text (which one is written in ahk). This one allows OCR a portion of the screen and has commandline options ( http://capture2text.sourceforge.net/#comman...
by A_AhkUser
18 Mar 2017, 20:41
Forum: Помощь
Topic: Бессмертие на кнопке (MineCraft - Send)
Replies: 1
Views: 2126

Re: Бессмертие на кнопке (MineCraft - Send)

Что касается Минекрафта, возможно что существовали оборонительные механизмы, направленные на то, чтобы убедить пользователей не плутовать. я подвергнул тесту этот скрипт, в котором я использую sendmode, input : SendMode, Input Hotkey, PgDn, L1, on Hotkey, PgUp, L2, on return L1: ToolTip % A_ThisLabe...
by A_AhkUser
18 Mar 2017, 19:55
Forum: Ask For Help
Topic: Hepl RegExMatch match after a newline at the very end of Haystack Topic is solved
Replies: 0
Views: 336

Hepl RegExMatch match after a newline at the very end of Haystack Topic is solved

MsgBox % RegExMatch("толочь", "m).+?((жечь|честь|толочь|нести|трясти|пасти)(с(ь|я))?)$") didn't work. I tried: MsgBox % RegExMatch("_толочь", "m).+?((жечь|честь|толочь|нести|трясти|пасти)(с(ь|я))?)$") in order to make sure of my pressentiment then tried: MsgBox % RegExMatch("толочь", "m)^.+?((жечь|...
by A_AhkUser
18 Mar 2017, 18:02
Forum: Ask For Help
Topic: Can't use quotes (") as hotkey Topic is solved
Replies: 6
Views: 1337

Re: Can't use quotes (") as hotkey Topic is solved

There's nothing wrong with your code, assuming [LABELNAME] exists as a label. Sorry didn't even test this way before I answered. Say it is a blessing in disguise may GenericEntity didn't know about Unicode character codes before and now know an alternative way coding the same and discover that way ...
by A_AhkUser
18 Mar 2017, 14:08
Forum: Ask For Help
Topic: Can't use quotes (") as hotkey Topic is solved
Replies: 6
Views: 1337

Re: Can't use quotes (") as hotkey Topic is solved

MsgBox % Chr(34) Hotkey, % Chr(34), myLabel, on return myLabel: MsgBox, test return this Flipeador 's answer I saw yesterday make me think about Chr function (see https://autohotkey.com/boards/viewtopic.php?f=40&t=29073 ) note that Flipeador use it for command line so try to remember that this tip ...
by A_AhkUser
18 Mar 2017, 13:41
Forum: Ask For Help
Topic: Number the links on webpage 1-100, for user to choose with keyboard
Replies: 8
Views: 2485

Re: Number the links on webpage 1-100, for user to choose with keyboard

As far as I know know (this way at least) no. ActiveX is IE specific. You better try to make your own chrome extension to do this. Here's a start: Create a folder call it test . Create a file inside this folder, call it script.js -- here's its content: var alphabet = ["a", "b", "c", "d", "e", "f", "...
by A_AhkUser
17 Mar 2017, 17:12
Forum: Ask For Help
Topic: Number the links on webpage 1-100, for user to choose with keyboard
Replies: 8
Views: 2485

Re: Number the links on webpage 1-100, for user to choose with keyboard

Here's a start -- forinstance click 6 it will navigate @ youtube (the sixth link of www.google.fr) Class EventHandler { onkeypress(__doc) { static __keys := {48:0, 49:1, 50:2, 51:3, 52:4, 53:5, 54:6, 55:7, 56:8, 57:9} __keyCode := __doc.parentWindow.event.keyCode if __keys.HasKey(__keyCode) { __i :=...
by A_AhkUser
17 Mar 2017, 16:44
Forum: Ask For Help
Topic: Open and close a specific program with the same hotkey
Replies: 1
Views: 833

Re: Open and close a specific program with the same hotkey

try close the window by means of its PID (unique process ID) retriied lunching the process via run command (fourth optional parameter) see ( http://www.autohotkey.com/docs/commands/Run.htm ) #^+p:: { Process, Exist, KeyboardChatteringFix.exe if (ErrorLevel = 0) { Run, C:\Users\Sancora\Downloads\kcfi...

Go to advanced search