Search found 124 matches
- 31 Aug 2020, 10:27
- Forum: Ask for Help (v1)
- Topic: AHK & Java Access Bridge
- Replies: 22
- Views: 10468
Re: AHK & Java Access Bridge
Hi! The most current code is here: https://github.com/Elgin1/Java-Access-Bridge-for-AHK I just tested it with Win10, Java 1.8.0_191 32 and 64 bit, AHK 1.1.30.01 64 bit and it works here. The error messages you describe could occur if the Java access bridge is not enabled or AHK can't access the dll...
- 16 Dec 2019, 07:27
- Forum: Ask for Help (v1)
- Topic: Dount - Click with Selenium AHK
- Replies: 0
- Views: 389
Dount - Click with Selenium AHK
Hi people
Can anyone tell me how I can "Click with the control button pressed on selenium using AHK?"
I tried something like that, but it didn't work
Can anyone tell me how I can "Click with the control button pressed on selenium using AHK?"
I tried something like that, but it didn't work
Code: Select all
driver.SendKeys(driver.Keys.Down.CONTROL)
driver.findElementById("_id0:logon:logonButton").Click()
- 08 Nov 2019, 07:18
- Forum: Ask for Help (v1)
- Topic: Doubt - Extract Text (RegExMatch) Topic is solved
- Replies: 5
- Views: 755
Re: Doubt - Extract Text (RegExMatch) Topic is solved
You may want to make sure it always finds the value which corresponds to the label "Sistema" instead of relying on it being the first label. If so, this will find it: Haystack = {"id":"restaura_senha","activitygroup":"8","campos":[{"value":"WINDOWS","label":"Sistema"},{"value":"684067 - jonh Smith ...
- 08 Nov 2019, 07:17
- Forum: Ask for Help (v1)
- Topic: Doubt - Extract Text (RegExMatch) Topic is solved
- Replies: 5
- Views: 755
Re: Doubt - Extract Text (RegExMatch) Topic is solved
Hi snowmind, Is this what you want? It will only get the first match (WINDOWS). Var = {"id":"restaura_senha","activitygroup":"8","campos":[{"value":"WINDOWS","label":"Sistema"},{"value":"684067 - jonh Smith tonelli","label":"Usuário que acessa o sistema"},{"value":"solicito reset de senha urgente\r...
- 08 Nov 2019, 07:15
- Forum: Ask for Help (v1)
- Topic: Doubt - Extract Text (RegExMatch) Topic is solved
- Replies: 5
- Views: 755
Re: Doubt - Extract Text (RegExMatch) Topic is solved
Hi snowmind, Is this what you want? It will only get the first match (WINDOWS). Var = {"id":"restaura_senha","activitygroup":"8","campos":[{"value":"WINDOWS","label":"Sistema"},{"value":"684067 - jonh Smith tonelli","label":"Usuário que acessa o sistema"},{"value":"solicito reset de senha urgente\r...
- 07 Nov 2019, 15:44
- Forum: Ask for Help (v1)
- Topic: Doubt - Extract Text (RegExMatch) Topic is solved
- Replies: 5
- Views: 755
Doubt - Extract Text (RegExMatch) Topic is solved
hi folks :wave: How can I extract the word WINDOWS from this text? {"id":"restaura_senha","activitygroup":"8","campos":[{"value":"WINDOWS","label":"Sistema"},{"value":"684067 - jonh Smith tonelli","label":"Usuário que acessa o sistema"},{"value":"solicito reset de senha urgente\r\n\r\n684067 - jonh ...
- 15 Oct 2019, 15:53
- Forum: Ask for Help (v1)
- Topic: How To Sue Down Key with Selenium Topic is solved
- Replies: 1
- Views: 455
How To Sue Down Key with Selenium Topic is solved
Can anyone tell me how I use the DOWN key for selenium in AHK?
Is this the correct syntax?
Code: Select all
driver.findElementById("sys_display.incident.u_building").SendKeys(driver.Keys.ARROW_DOWN)
- 02 Oct 2019, 11:20
- Forum: Ask for Help (v1)
- Topic: Doubt To Click using COM
- Replies: 0
- Views: 334
Doubt To Click using COM
Hi guys :roll: I have a question if anyone can help me. I wrote a script that should click on a specific link on a page of my company. I'm using Internet Explorer 11. On my machine the script works correctly and clicks the link. for wb in ComObjCreate("Shell.Application").Windows If InStr(wb.locatio...
- 01 Oct 2019, 10:06
- Forum: Ask for Help (v1)
- Topic: Doubt About Compilation Selenium AHK Topic is solved
- Replies: 2
- Views: 465
- 01 Oct 2019, 08:19
- Forum: Ask for Help (v1)
- Topic: Doubt About Compilation Selenium AHK Topic is solved
- Replies: 2
- Views: 465
Doubt About Compilation Selenium AHK Topic is solved
Hi Guys I wrote a simple script to open a website using selenium. On my machine works perfect. #SingleInstance, Force driver:= ComObjCreate("Selenium.CHROMEDriver") ;Chrome driver driver.Get("https://www.bbc.com/") Pause When I compile and send someone to run the EXE file, they get the error: ERROR ...
- 30 Sep 2019, 14:33
- Forum: Ask for Help (v1)
- Topic: Doubt About COM IE
- Replies: 1
- Views: 416
Doubt About COM IE
Hi Friends :wave: I have a question and would like to know if anyone had the same problem and how they could solve it.I have a script to fill in information on a web form (ServiceNow). There is a field that when you enter the employee name and press TAB, other form fields are automatically filled in...
- 18 Sep 2019, 15:12
- Forum: Ask for Help (v1)
- Topic: How to extract a string? Topic is solved
- Replies: 6
- Views: 1230
Re: How to extract a string? Topic is solved
The problem is, when I get this variable, it comes with these spacesilhom wrote: ↑18 Sep 2019, 15:10Too many spaces it seems.
Code: Select all
Var=1 NULL;;0 StringSplit, Var_Array, Var, %A_Space%,, Msgbox %Var_Array1% ;Output 1 Msgbox %Var_Array2% ;Output NULL;;0
- 18 Sep 2019, 14:57
- Forum: Ask for Help (v1)
- Topic: How to extract a string? Topic is solved
- Replies: 6
- Views: 1230
How to extract a string? Topic is solved
Hiii people Help me! how can I extract the value "1" and the value "NULL" from this variable: Var=1 NULL;;0 I try somes scripsts, but nothing Works :-( I try this Var=1 NULL;;0 StringSplit, Var_Array, Var, %A_Space%,, Msgbox %Var_Array1% ;Here I got the number 1 - Ok Msgbox %Var_Array2% ;Nothing hap...
- 08 Sep 2019, 15:35
- Forum: Ask for Help (v1)
- Topic: Paste Value Excel - COM Topic is solved
- Replies: 2
- Views: 590
- 07 Sep 2019, 09:19
- Forum: Ask for Help (v1)
- Topic: Paste Value Excel - COM Topic is solved
- Replies: 2
- Views: 590
Paste Value Excel - COM Topic is solved
Good morning friends... They have helped me before here to paste the value of a variable into a cell in Excel. In this case I determine which cell to paste the value into. xlApp := ComObjCreate("Excel.Application") xlAppDown := -4121 xlApp.Visible := true xlApp.DisplayAlerts := False oxWorkbook := x...
- 04 Sep 2019, 13:15
- Forum: Ask for Help (v1)
- Topic: Help - Paste COM Excel Topic is solved
- Replies: 2
- Views: 683
Re: Help - Paste COM Excel Topic is solved
You are pretty close, just use the following: xlApp := ComObjCreate("Excel.Application") xlAppDown := -4121 xlApp.Visible := true xlApp.DisplayAlerts := False oxWorkbook := xlApp.Workbooks.Open("C:\Temp\Some_Plan.xlsm") xlApp.Range("A1").Value := "Whatever you want here" xlApp.Range("A2").Value := ...
- 03 Sep 2019, 13:43
- Forum: Ask for Help (v1)
- Topic: Help - Paste COM Excel Topic is solved
- Replies: 2
- Views: 683
Help - Paste COM Excel Topic is solved
Hi guys :mrgreen: I have a little question about handling Excel with AHK. Is it possible to paste a variable directly into a cell?I know I can pass the value of the variable to the clipboard and paste, but if you don't prefer, can you paste a variable directly? I tried and I couldn't (Message error:...
- 16 Aug 2019, 07:33
- Forum: Ask for Help (v1)
- Topic: Check Variable Contain Numbers/Letters Topic is solved
- Replies: 12
- Views: 3533
Re: Check Variable Contain Numbers/Letters Topic is solved
Cheers. ;q:: ;check that string contains at least one number and at least one letter Var=UDP4324 ;Var=aaaaaaa ;Var=1111111 if RegExMatch(Var, "i)(?=.*[A-Z])(?=.*\d)") ;if RegExMatch(Var, "\d") && RegExMatch(Var, "[A-Za-z]") ;equivalent to line above { MsgBox, OK } else { MsgBox, NO } return really ...
- 15 Aug 2019, 22:40
- Forum: Ask for Help (v1)
- Topic: Check Variable Contain Numbers/Letters Topic is solved
- Replies: 12
- Views: 3533
Check Variable Contain Numbers/Letters Topic is solved
Hi People
Can anyone give me a hint?I need to validate if a variable contains letters and numbers together. I tried something else didn't work
Can anyone give me a hint?I need to validate if a variable contains letters and numbers together. I tried something else didn't work
Code: Select all
Var=UDP4324
if (RegExMatch(Var, "i)[^A-Z ^0-9 ]"))
{
MsgBox, OK
}
else
{
MsgBox, NO
}
- 13 Aug 2019, 22:49
- Forum: Ask for Help (v1)
- Topic: Problem To Find String Topic is solved
- Replies: 2
- Views: 721
Re: Problem To Find String Topic is solved
Thanks a lotGEV wrote: ↑13 Aug 2019, 16:02Code: Select all
clipboard = ( Name: Jonho Smith Phone 1: 42342342 Phone 2: 12313232 City: NY Description: Installation failure Erro - 101XX ) ClipWait 1 Description := StrSplit(clipboard,"`nDescription:`n").2 MsgBox, % Description