Search found 124 matches

by snowmind
31 Aug 2020, 10:27
Forum: Ask For Help
Topic: AHK & Java Access Bridge
Replies: 15
Views: 3665

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...
by snowmind
16 Dec 2019, 07:27
Forum: Ask For Help
Topic: Dount - Click with Selenium AHK
Replies: 0
Views: 289

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 :-(

Code: Select all

driver.SendKeys(driver.Keys.Down.CONTROL)
driver.findElementById("_id0:logon:logonButton").Click()
by snowmind
08 Nov 2019, 07:18
Forum: Ask For Help
Topic: Doubt - Extract Text (RegExMatch) Topic is solved
Replies: 5
Views: 516

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 ...
by snowmind
08 Nov 2019, 07:17
Forum: Ask For Help
Topic: Doubt - Extract Text (RegExMatch) Topic is solved
Replies: 5
Views: 516

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...
by snowmind
08 Nov 2019, 07:15
Forum: Ask For Help
Topic: Doubt - Extract Text (RegExMatch) Topic is solved
Replies: 5
Views: 516

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...
by snowmind
07 Nov 2019, 15:44
Forum: Ask For Help
Topic: Doubt - Extract Text (RegExMatch) Topic is solved
Replies: 5
Views: 516

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 ...
by snowmind
15 Oct 2019, 15:53
Forum: Ask For Help
Topic: How To Sue Down Key with Selenium Topic is solved
Replies: 1
Views: 277

How To Sue Down Key with Selenium Topic is solved

Can anyone tell me how I use the DOWN key for selenium in AHK?

Code: Select all

driver.findElementById("sys_display.incident.u_building").SendKeys(driver.Keys.ARROW_DOWN)
Is this the correct syntax?
by snowmind
02 Oct 2019, 11:20
Forum: Ask For Help
Topic: Doubt To Click using COM
Replies: 0
Views: 245

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...
by snowmind
01 Oct 2019, 10:06
Forum: Ask For Help
Topic: Doubt About Compilation Selenium AHK Topic is solved
Replies: 2
Views: 296

Re: Doubt About Compilation Selenium AHK Topic is solved

boiler wrote:
01 Oct 2019, 08:27
Have they installed Selenium on their machine?
Oh no, this is what I feared :o
I'll then have to send the Selenium installer to each user who will use my script :crazy:
by snowmind
01 Oct 2019, 08:19
Forum: Ask For Help
Topic: Doubt About Compilation Selenium AHK Topic is solved
Replies: 2
Views: 296

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 ...
by snowmind
30 Sep 2019, 14:33
Forum: Ask For Help
Topic: Doubt About COM IE
Replies: 1
Views: 323

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...
by snowmind
18 Sep 2019, 15:12
Forum: Ask For Help
Topic: How to extract a string? Topic is solved
Replies: 6
Views: 755

Re: How to extract a string? Topic is solved

ilhom wrote:
18 Sep 2019, 15:10
Too 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
The problem is, when I get this variable, it comes with these spaces :(
by snowmind
18 Sep 2019, 14:57
Forum: Ask For Help
Topic: How to extract a string? Topic is solved
Replies: 6
Views: 755

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...
by snowmind
08 Sep 2019, 15:35
Forum: Ask For Help
Topic: Paste Value Excel - COM Topic is solved
Replies: 2
Views: 397

Re: Paste Value Excel - COM Topic is solved

boiler wrote:
07 Sep 2019, 11:50
Do you mean whichever cell is currently selected? Try the following:
xlApp.ActiveCell.Value := VarToPaste
Yes!!!! Its perfect now
Thanks a lot :bravo:
by snowmind
07 Sep 2019, 09:19
Forum: Ask For Help
Topic: Paste Value Excel - COM Topic is solved
Replies: 2
Views: 397

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...
by snowmind
04 Sep 2019, 13:15
Forum: Ask For Help
Topic: Help - Paste COM Excel Topic is solved
Replies: 2
Views: 419

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 := ...
by snowmind
03 Sep 2019, 13:43
Forum: Ask For Help
Topic: Help - Paste COM Excel Topic is solved
Replies: 2
Views: 419

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:...
by snowmind
16 Aug 2019, 07:33
Forum: Ask For Help
Topic: Check Variable Contain Numbers/Letters Topic is solved
Replies: 12
Views: 1474

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 ...
by snowmind
15 Aug 2019, 22:40
Forum: Ask For Help
Topic: Check Variable Contain Numbers/Letters Topic is solved
Replies: 12
Views: 1474

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 :|

Code: Select all

Var=UDP4324

if (RegExMatch(Var, "i)[^A-Z ^0-9 ]"))
{
	MsgBox, OK
}
else
{
	MsgBox, NO
}
by snowmind
13 Aug 2019, 22:49
Forum: Ask For Help
Topic: Problem To Find String Topic is solved
Replies: 2
Views: 559

Re: Problem To Find String Topic is solved

GEV wrote:
13 Aug 2019, 16:02

Code: 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
Thanks a lot :beer:

Go to advanced search