Search found 15 matches

by Pepineros
16 Dec 2018, 16:45
Forum: Ask For Help
Topic: Msgbox to block user input
Replies: 2
Views: 285

Re: Msgbox to block user input

Thanks Wolf! I was already using something very similar. Your example did exactly what I needed so I dug a little deeper. Turned out the gui, +OwnDialogs I had was targeting the wrong GUI. Fixed by using gui,sass:+OwnDialogs where sass is the name of the GUI it should be targeting. Thanks for pointi...
by Pepineros
16 Dec 2018, 16:24
Forum: Ask For Help
Topic: Msgbox to block user input
Replies: 2
Views: 285

Msgbox to block user input

Hi all, I wasn't able to find an answer to this question, possibly because I'm not sure how to ask it in a way Google understands. Many applications can throw errors that prevent the user from interacting with the applications until they dismiss the error. Is it possible to do a similar thing with a...
by Pepineros
27 Nov 2018, 02:03
Forum: Ask For Help
Topic: Hotkey to kill a looping thread in the same script
Replies: 3
Views: 348

Re: Hotkey to kill a looping thread in the same script

this is jank. dont do this Creative jank! Is there a command which will kill a looping thread contained in the same script without actually killing/closing the script ? Not that I'm aware of. If reloading is OK (which is really killing & restarting your script, so maybe this is not the solution you...
by Pepineros
27 Nov 2018, 00:44
Forum: Ask For Help
Topic: Use ..\.. for directory?
Replies: 3
Views: 306

Re: Use ..\.. for directory?

The script is trying to find the directory where AutoHotkey.chm is stored.I assume it checks up 1 directory level just above where your screenshot cuts off? Then checks up 2 levels, then checks the Program Files folder.
by Pepineros
26 Nov 2018, 01:42
Forum: Ask For Help
Topic: Get content of GUI edit controls using loop Topic is solved
Replies: 2
Views: 286

Re: Get content of GUI edit controls using loop Topic is solved

swagfag wrote:
25 Nov 2018, 19:08
one of two ways, some double-deref fuckery:
Yes, double deref it is. Thanks a mil, I should have looked at a for-loop instead of trying to use a_index!
by Pepineros
25 Nov 2018, 16:41
Forum: Ask For Help
Topic: Indicate on the screen Topic is solved
Replies: 13
Views: 1159

Re: Indicate on the screen Topic is solved

Hi Amanda, Your English is fine :) You need the files called icon1.ico and icon2.ico in the working_dir of your script in order for AlphaBravo's code to work. You can make your own icons using MS Paint or download them online. EDIT: you can name the .ico files whatever you want of course, just chang...
by Pepineros
25 Nov 2018, 16:37
Forum: Ask For Help
Topic: Send Ctrl + LButton
Replies: 3
Views: 353

Re: Send Ctrl + LButton

If you say

Code: Select all

Mbutton::
send, ^Lbutton
return
or, more ridiculously

Code: Select all

Mbutton:
send, ^Lbutton
return

F1::gosub Mbutton
will bind the F1 key to trigger the label called "Mbutton" and send ctrl + left mouse button.
by Pepineros
25 Nov 2018, 16:32
Forum: Ask For Help
Topic: Get content of GUI edit controls using loop Topic is solved
Replies: 2
Views: 286

Get content of GUI edit controls using loop Topic is solved

Hi all, I have a GUI with four Edit controls where the user can input data, and a subroutine that checks the contents of every Edit control; if empty, don't do anything, if not empty, append the contents of the edit control and the related text element to clipboard. For the sake of learning somethin...
by Pepineros
19 Nov 2018, 15:28
Forum: Ask For Help
Topic: My timer script Topic is solved
Replies: 7
Views: 733

Re: My timer script Topic is solved

Thanks wolf, that does exactly what I need!

I shall go forth and learn about Format() :+1:
by Pepineros
18 Nov 2018, 23:46
Forum: Ask For Help
Topic: My timer script Topic is solved
Replies: 7
Views: 733

Re: My timer script Topic is solved

Update on question 1 Yesterday after restarting the window was showing a client width of 120 and window width of 126 in Windowspy. After I finished working I shut down, booted up again just now, and guess what... back to 150/156. I can work around it by letting the script grab the window size inste...
by Pepineros
18 Nov 2018, 13:09
Forum: Ask For Help
Topic: My timer script Topic is solved
Replies: 7
Views: 733

Re: My timer script Topic is solved

Wn: Specify for n the width (in pixels) of the window's client area (the client area excludes the window's borders, title bar, and menu bar). use WinGetPos , calculations and WinMove to reposition it correctly afterwards Thanks for your reply! I specify the width of the client area as 120 but when ...
by Pepineros
18 Nov 2018, 11:35
Forum: Ask For Help
Topic: My timer script Topic is solved
Replies: 7
Views: 733

My timer script Topic is solved

Hello AHKommunity! I would like to share with you the code of my focus/break timer script. It counts up from 0 whenever the user hits "Start", displaying both the time that has passed and either "FOCUS" or "BREAK" depending on which part of the cycle you're in. Each time the user hits "Stop" after a...
by Pepineros
16 Apr 2018, 22:24
Forum: Ask For Help
Topic: Color is found (PixelGetColor) but loop does not end Topic is solved
Replies: 4
Views: 434

Re: Color is found (PixelGetColor) but loop does not end Topic is solved

You're a star! Totally missed the %s missing in your example. That did it. I knew it was a basic thing I missed...

Thank you!
by Pepineros
16 Apr 2018, 21:12
Forum: Ask For Help
Topic: Color is found (PixelGetColor) but loop does not end Topic is solved
Replies: 4
Views: 434

Re: Color is found (PixelGetColor) but loop does not end Topic is solved

Thanks gregster, same behaviour unfortunately. Here's the loop I tried as well, with same result, just making sure the While isn't the problem. The MsgBoxes will not be part of the final script, they're just there so I know the loop is running. f9:: send,^t ; open new tab WinWait,New tab - Internet ...
by Pepineros
16 Apr 2018, 17:50
Forum: Ask For Help
Topic: Color is found (PixelGetColor) but loop does not end Topic is solved
Replies: 4
Views: 434

Color is found (PixelGetColor) but loop does not end Topic is solved

Hi all, Hoping to get some help with what I'm sure is a silly user error. I'm trying to get my script to wait for a specific color to pop up in a specific place before continuing. Pretty basic stuff to auto-load and login to websites. I'm getting the colour I'm expecting, it's picked up by the scrip...

Go to advanced search