Search found 48 matches

by Loop
Yesterday, 09:40
Forum: Ask For Help
Topic: WinHttpRequest save as zip file
Replies: 0
Views: 319

WinHttpRequest save as zip file

Hi wants to download a Zip file via WinHttpRequest, but only gets Zip headers (";PK") saved How can I save as a Zip file? Thanks myCode: myUrl := "https://www.test.com/stocks" myAuth := "Basic ...." oHTTP := ComObjCreate("WinHttp.WinHttpRequest.5.1") oHTTP.Open("GET", myUrl , true) oHTTP.SetRequestH...
by Loop
26 Jul 2020, 18:00
Forum: Ask For Help
Topic: Pausing a running script Topic is solved
Replies: 4
Views: 1264

Re: Pausing a running script Topic is solved

thanks, it worked!
by Loop
26 Jul 2020, 17:02
Forum: Ask For Help
Topic: Pausing a running script Topic is solved
Replies: 4
Views: 1264

Pausing a running script Topic is solved

Hi,
Script A is running, it is possible to pause with Script B, Script A
thanks a lot
by Loop
16 Jul 2020, 14:44
Forum: Ask For Help
Topic: Gui Add,Text Background Color Topic is solved
Replies: 5
Views: 1727

Gui Add,Text Background Color Topic is solved

Hi,
Is it possible to give the Control Type "Text" a background color?

Code: Select all

Gui Font, s36 Bold  cBlack
Gui Add, Text, x20 y20 BackgroundBlue , Text over blue background!
Gui Add, Text, x20 y80 , Normal Text default background!
Gui Show, w700 h150
Return

GuiClose:
GuiEscape:
ExitApp
Thx
by Loop
10 Jun 2020, 09:44
Forum: Ask For Help
Topic: right click a tray icon Topic is solved
Replies: 6
Views: 302

Re: right click a tray icon Topic is solved

@teadrinker
thank you, it works now
by Loop
10 Jun 2020, 09:05
Forum: Ask For Help
Topic: right click a tray icon Topic is solved
Replies: 6
Views: 302

Re: right click a tray icon Topic is solved

Why this not working, is there something wrong? For Example Windows Defender #include, TrayIcon.ahk SecCenter := TrayIcon_GetInfo("SecurityHealthSystray.exe") SecCenIcon := SecCenter[1].hIcon ;MsgBox, % SecCenIcon ImageSearch, PosX, PosY, 0, 0, A_ScreenWidth, A_ScreenHeight, HBITMAP:*%SecCenIcon% Mo...
by Loop
26 May 2020, 03:35
Forum: Ask For Help
Topic: Create a simple Gui Topic is solved
Replies: 6
Views: 387

Re: Create a simple Gui Topic is solved

ahh... Thanks
by Loop
26 May 2020, 01:15
Forum: Ask For Help
Topic: Create a simple Gui Topic is solved
Replies: 6
Views: 387

Re: Create a simple Gui Topic is solved

@iPhilip Works great, thank you.


@BNOLI
I would like to indicate the width:
still get error message, Error: Invalid option

Code: Select all

Gui, Add, Text, % "w" A_GuiWidth / 3, one third
by Loop
25 May 2020, 17:07
Forum: Ask For Help
Topic: Create a simple Gui Topic is solved
Replies: 6
Views: 387

Create a simple Gui Topic is solved

Hi, How can I create such a GUI, see Attachment center.jpg Get the following error message: Line Text: x+ % "w" A_GuiWidth / 3 Error: This parameter contains a variable name missing its ending percent sign. my code: Gui, -Caption Gui, Font, s12 cBlack, Verdana Gui, Color , White Gui, Add, Text, % "w...
by Loop
21 May 2020, 09:50
Forum: Ask For Help
Topic: [Chrome.ahk] Check if a button exists Topic is solved
Replies: 3
Views: 207

Re: [Chrome.ahk] Check if a button exists Topic is solved

thanks, it worked :)

Code: Select all

try {
PageInst.Evaluate("document.getElementsByClassName('btn-block')[0].click()")
} catch e {
 sleep, 500
}
by Loop
21 May 2020, 09:33
Forum: Ask For Help
Topic: [Chrome.ahk] Check if a button exists Topic is solved
Replies: 3
Views: 207

[Chrome.ahk] Check if a button exists Topic is solved

Hey, How can I check if a button exists on a web page, and if exists click on it. if the button does not exist i get an error message --------------------------- Error: TypeError: Cannot read property 'click' of undefined --------------------------- Execute this code only if the button is present. P...
by Loop
18 May 2020, 09:34
Forum: Ask For Help
Topic: Opening a web page in the current browser
Replies: 8
Views: 408

Re: Opening a web page in the current browser

Run, command would also be a possibility:

Code: Select all

Run, https://www.autohotkey.com/
by Loop
10 May 2020, 17:02
Forum: Ask For Help
Topic: Get source code from a web page that you have to scroll
Replies: 2
Views: 235

Re: Get source code from a web page that you have to scroll

Hi, thank you.
So, it seems to be working

Code: Select all

Loop, 10
{
PageInstance.Evaluate(" window.scrollTo(0,document.body.scrollHeight); ")
Sleep, 1500
}
by Loop
10 May 2020, 12:34
Forum: Ask For Help
Topic: Get source code from a web page that you have to scroll
Replies: 2
Views: 235

Get source code from a web page that you have to scroll

Hi, i use Chrome.ahk to get the source code of a website, The website has received an update. Well, only the first 10 entries are shown, if you want more code you have to scroll. How can the website scroll to the end to get the code. I hope you understand me best wishes to get source code: mysrc := ...
by Loop
10 Mar 2020, 16:44
Forum: Ask For Help
Topic: Send values to chorme Address bar
Replies: 0
Views: 456

Send values to chorme Address bar

Hello, I want to send data to inactive Chrome window, therefore I have rounded a script from @tmplinshi , unfortunately it doesn't work for me. When I start it, the following error message appears: === Error: FindAddressBar failed. Line# 005: js := "void(document.getElementById('header-search-bar')....
by Loop
20 Jan 2020, 14:56
Forum: Ask For Help
Topic: Read last 10 lines from a variable Topic is solved
Replies: 4
Views: 458

Re: Read last 10 lines from a variable Topic is solved

Wow, there are so many possibilities.
by Loop
19 Jan 2020, 17:42
Forum: Ask For Help
Topic: Read last 10 lines from a variable Topic is solved
Replies: 4
Views: 458

Read last 10 lines from a variable Topic is solved

Hi,
I only need the last 10 lines of a variable.

For Example:

Code: Select all

myTest=
(join`n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16



)
I need only

Code: Select all

7
8
9
10
11
12
13
14
15
16
Thx
by Loop
09 Jan 2020, 16:49
Forum: Ask For Help
Topic: Export Registry As Admin
Replies: 2
Views: 217

Re: Export Registry As Admin

Unfortunately not working.

If I start as admin with the right mouse button, it works.

Code: Select all

RunWait, % "regedit /e """ . myfile . """ """ . mykey . """"
But, if you double-click, it won't start as admin
by Loop
09 Jan 2020, 16:17
Forum: Ask For Help
Topic: Export Registry As Admin
Replies: 2
Views: 217

Export Registry As Admin

Hello, why doesn't my script start as admin and export the registry entry

Code: Select all

myfile := "c:\myreg.reg"
mykey := "HKEY_CURRENT_USER\Software\Microsoft\Phone"
RunWait *RunAs, % "regedit /e """ . myfile . """ """ . mykey . """"
Thanks

Go to advanced search