Search found 32 matches
- 13 Jan 2019, 06:20
- Forum: Pedir Ayuda
- Topic: Funcion en general
- Replies: 6
- Views: 2886
Re: Funcion en general
Yo hice algo parecido con SetTimer, ejecuto una rutina cada 15 segundos donde compruebo si la ventana activa es la correcta, busco un botón si está lo pulso y sigo con el resto de código.
- 21 Dec 2018, 14:10
- Forum: Ask for Help (v1)
- Topic: Count lines with RegExpMatch
- Replies: 5
- Views: 1543
Re: Count lines with RegExpMatch
Thanks to everyone for the answers, I could not count the number of udp / tcp lines with RegExpMatch, I will continue researching, finally I opted for:
Code: Select all
If RegExReplace (NAT, "(udp | tcp)", "", NATCount)
MsgBox% NATCount
- 19 Dec 2018, 14:41
- Forum: Ask for Help (v1)
- Topic: Count lines with RegExpMatch
- Replies: 5
- Views: 1543
Count lines with RegExpMatch
Hello: I know that it can be done with a loop, but I'm trying things with RegExpMatch, which I think it's possible to do, for example, I have the result of a router's nat table, which does not indicate the number of entries, only the list such that : NAT = ( > nat command udp ... upd ... tcp ... udp...
- 16 Dec 2018, 13:22
- Forum: Pedir Ayuda
- Topic: Función para que si está abierta una página determinada, escriba el usuario y contraseña?
- Replies: 8
- Views: 7946
Re: Función para que si está abierta una página determinada, escriba el usuario y contraseña?
Se me ocurre otra posible solución: Teclear pwd por ejemplo en el campo usuario y que en función del sitio web ponga una contraseña u otra, por ejemplo: ::pwd:: SetTitleMatchMode, 2 ; No es necesario poner el título completo, solo parte WinGetTitle, vTituloVentana If (vTituloVentana = "Google") { Se...
- 16 Dec 2018, 12:31
- Forum: Ask for Help (v1)
- Topic: RegExMatch does not work as I expect Topic is solved
- Replies: 4
- Views: 1312
Re: RegExMatch does not work as I expect Topic is solved
Finally I found the solution to what I wanted to do.
Code: Select all
RegExMatch(wCmd, "(SNR.+)\bPwr", SNRAttn)
MsgBox % SNRAttn1
- 01 Dec 2018, 17:56
- Forum: Ask for Help (v1)
- Topic: RegExMatch does not work as I expect Topic is solved
- Replies: 4
- Views: 1312
Re: RegExMatch does not work as I expect Topic is solved
Thanks @swagfaf, but that search is the one that least worries me because I can get the result with "Number of Cuts: (\ s +) (\ d`)", which I use elsewhere to extract the numeric value in Subpat2. I am more interested in solving the third search because I need it in other searches and I am curious t...
- 01 Dec 2018, 16:57
- Forum: Ask for Help (v1)
- Topic: RegExMatch does not work as I expect Topic is solved
- Replies: 4
- Views: 1312
RegExMatch does not work as I expect Topic is solved
Hello all: My version of AutoHotKey is the 1.1.26.1 32 bits on Windows 10 64 bits, same problem in Windows 7 32 bits wCMD = ( view @ XXXXX5579666847> show dsl stats adsl: ADSL driver and PHY status Status: Showtime Number of Cuts: 0 Last Retrain Reason: 8000 Last initialization procedure status: 0 M...
- 25 Nov 2018, 11:40
- Forum: Pedir Ayuda
- Topic: Elegir programa
- Replies: 3
- Views: 1788
Re: Elegir programa
@randysejas en mis scripts siempre uso pausas porque a veces los programas no responden tan rápido como para ejecutar correctamente los comandos enviados, además suelo tratar de verificar si el comando se ejecutó correctamente dentro de las posibilidades de AutoHotKey y de la seguridad con que quier...
- 24 Nov 2018, 14:52
- Forum: Pedir Ayuda
- Topic: Optimizar expresiones regulares
- Replies: 1
- Views: 1124
Re: Optimizar expresiones regulares
Insistiendo y haciendo pruebas con un simulador de expresiones regulares he conseguido reducir un poco la expresión, una vez conseguida ha sido fácil juntar las dos primeras búsquedas, solo me queda conseguir el resultado con una sola expresión. Antes para los dos primero: "SNR(.+)" . wCRLF . "(.+)"...
- 24 Nov 2018, 14:15
- Forum: Pedir Ayuda
- Topic: Elegir programa
- Replies: 3
- Views: 1788
Re: Elegir programa
Supongo que a estas alturas ya habrás solucionado tu problema, yo uso WinActivate, título de la ventana Dependiendo de cómo funcione puedes hacer varias cosas, si no funciona a la primer meterlo en un bucle con una pausa en medio, usar después WinWait con un número determinado de segundos para que s...
- 24 Nov 2018, 12:37
- Forum: Pedir Ayuda
- Topic: Optimizar expresiones regulares
- Replies: 1
- Views: 1124
Optimizar expresiones regulares
Hola Hacia tiempo que no escribía por aquí, todavía no manejo bien las expresiones regulares y creo que se puede mejorar lo que hice, tengo el texto de abajo quiero extraer los bloques 1 ( SNR ) 2 ( Velocidad ) y 3 ( Atenuación ) para lo que uso el código comentado, pero creo que se puede optimizar ...
- 26 Mar 2018, 11:12
- Forum: Pedir Ayuda
- Topic: Necesito ayuda con Imagesaearch
- Replies: 3
- Views: 2304
Re: Necesito ayuda con Imagesaearch
Podrías ver manualmente el tamaño de cada imagen, y en una matriz guardar el valor del ancho / 2 y el alto / 2, dentro del script compruebas la imagen a buscar y le sumas los valores de la matriz algo así como: ; Crea la matriz ; 1 = nombre de la imagen ; 2 = mitad coordenadas X ; 3 = mitad coordena...
- 16 Jul 2016, 07:29
- Forum: Ask for Help (v1)
- Topic: Slowing my script
- Replies: 6
- Views: 2704
Re: Slowing my script
It could also be that the program you are running on citrix is part of the problem, then you would have two problems... I agree. I would start by using send (which is event by default) and then use SetKeyDelay, 50, 50 I've tried different values for the first parameter SetKeyDelay, 25 is semi slow ...
- 15 Jul 2016, 08:56
- Forum: Ask for Help (v1)
- Topic: Slowing my script
- Replies: 6
- Views: 2704
Re: Slowing my script
Xtra I know, whenever I can use the image search. I am currently conducting tests with variable pauses or slowing the mouse movement and sending text, but it seems that is not the solution.
- 10 Jul 2016, 11:08
- Forum: Ask for Help (v1)
- Topic: i need someone to convert my idea to code
- Replies: 4
- Views: 1580
Re: i need someone to convert my idea to code
If I counted correctly are 92 repetitions, try this: ~$Numpad5:: sleep, 500 sendinput, {F4 down} sleep, 900 sendinput, {F4 up} sleep, 100 sendinput, {F2 down} sleep, 100 sendinput, {F2 up} sleep, 400 sendinput, {space down} Loop, 92 { sleep, 500 sendinput, {4 down} sleep, 1000 sendinput, {4 up} } sl...
- 10 Jul 2016, 06:53
- Forum: Ask for Help (v1)
- Topic: Slowing my script
- Replies: 6
- Views: 2704
Re: Slowing my script
CHMike In my scripts always I wait a while for a window, if it is not finished the script not to do wrong things, sometimes I put a safe waiting for me time to complete manually what did not work so automatically. I think the biggest problem is SendInput and mouse movement, I need to slow down two ...
- 10 Jul 2016, 06:45
- Forum: Ask for Help (v1)
- Topic: i need someone to convert my idea to code
- Replies: 4
- Views: 1580
Re: i need someone to convert my idea to code
An approximation is not exact ; Only Starts ; NumLock ON Numpad5:: ; Hothey Loop { Sleep 1000 ; Wait one second Send F4 Sleep 1000 Send F2 Sleep 500 Send {Space Down} ; Hold Down Space Loop { ; Loop for 100 seconds Send Numpad4 ; Press and realase 4 from numpad Sleep 1000 } Until A_Index < 100 ; 100...
- 10 Jul 2016, 06:00
- Forum: Ask for Help (v1)
- Topic: Pixel script help
- Replies: 1
- Views: 743
Re: Pixel script help
Try this
Code: Select all
F1::
Macro1:
If fSP(0)
{
If fSP(1)
Send, {Space}
}
Return
fSP(wYesNo){
Loop
{
CoordMode, Pixel, Screen
PixelSearch, FoundX, FoundY, 1002, 519, 1053, 687, 0xFFFFFF, 0, Fast RGB
; Sleep 1000
} Until ErrorLevel = wYesNo
Return True
}
- 09 Jul 2016, 12:23
- Forum: Ask for Help (v1)
- Topic: Slowing my script
- Replies: 6
- Views: 2704
Slowing my script
Hello: Depending on the PC and server where my script is run, I need less or more pause, I was thinking about change for a dynamic system, implement an option that breaks up or down depending on the PC and server. Not if it could be determined, as in games, any evidence that tells me the response sp...
- 09 Jul 2016, 12:06
- Forum: Ask for Help (v1)
- Topic: Getting mouse clicks to work on separate pc's?
- Replies: 3
- Views: 1448
Re: Getting mouse clicks to work on separate pc's?
Try Sleep nnn, sometimes if you do not put pauses before or after certain commands mouse movements can be erratic. I start 250 ms and 250 will increase to 250 ms if necessary. Perhaps the presentation of the data does not match in position between the two PC, can you put a copy of each ?, screen res...