Search found 3460 matches

by boiler
Yesterday, 09:42
Forum: Ask For Help
Topic: hotstring problem
Replies: 2
Views: 31

Re: hotstring problem

If I understand what you mean, this should do it:

Code: Select all

:*:4::
SendInput, % "
(
if (){}else{};var a=z;
if (a>0.5){}else{};var s=x;
)"
return
by boiler
23 Feb 2020, 15:05
Forum: Ask For Help
Topic: Startup Tool
Replies: 5
Views: 157

Re: Startup Tool

I tried what you noted, but it is not working for me. You didn't really try what I noted. It wouldn't have even run because it would have showed an error and not executed. Here's what I said: If you want those lines executed when the script is first run, you can put a label like RunApps: before the...
by boiler
23 Feb 2020, 14:53
Forum: Ask For Help
Topic: Need Help to Building Script
Replies: 1
Views: 28

Re: Need Help to Building Script

Change F1 to whichever key you'd like:

Code: Select all

#If WinActive("ahk_exe chrome.exe") || WinActive("ahk_exe notepad++.exe")
F1::
	if WinActive("ahk_exe chrome.exe")
	{
		WinActivate, ahk_exe notepad++.exe
		return
	}
	if WinActive("ahk_exe notepad++.exe")
		WinActivate, ahk_exe chrome.exe
return
by boiler
23 Feb 2020, 14:14
Forum: Ask For Help
Topic: Startup Tool
Replies: 5
Views: 157

Re: Startup Tool

Can you post your new code?
by boiler
22 Feb 2020, 20:35
Forum: Ask For Help
Topic: Compass Rose
Replies: 3
Views: 76

Re: Compass Rose

This version has an inner "circle" marking every 45 degrees: Gui, Add, Progress, BackgroundRed x130 y130 w3 h3 Points := PointsOnCircle(100, 1, 130, 30) for Each, P in Points Gui, Add, Progress, % "BackgroundBlack x" P.x " y" P.y " w3 h3" Points := PointsOnCircle(90, 45, 130, 40) for Each, P in Poin...
by boiler
22 Feb 2020, 20:23
Forum: Ask For Help
Topic: Compass Rose
Replies: 3
Views: 76

Re: Compass Rose

You can draw a smooth circle using the GDI+ Library . Alternatively, here's a quick self-contained approach: Gui, Add, Progress, BackgroundBlack x130 y130 w3 h3 Points := PointsOnCircle(100, 5, 130, 30) for Each, P in Points Gui, Add, Progress, % "BackgroundBlack x" P.x " y" P.y " w3 h3" Gui, Font, ...
by boiler
22 Feb 2020, 19:44
Forum: Ask For Help
Topic: Can AutoHotkey be used to extract a file from a .rar file
Replies: 2
Views: 63

Re: Can AutoHotkey be used to extract a file from a .rar file

You can install 7-Zip (free), and AHK can interface with it using the command line interface. Using the 7-Zip "e" option, you can have your AHK script extract a specific file.
by boiler
22 Feb 2020, 17:18
Forum: Ask For Help
Topic: Use Control Send on Chrome without Activating it Topic is solved
Replies: 3
Views: 56

Re: Use Control Send on Chrome without Activating it Topic is solved

Thanks for pointing this out. I haven't seen this before, and it seemed like Chrome (and other windows) just didn't respond to ControlSend when not active. Using ControlFocus on them when they're not active may work for many more windows than Chrome. A nice addition to the toolbox. :thumbup:
by boiler
22 Feb 2020, 14:00
Forum: Ask For Help
Topic: Click doesn't work with variables
Replies: 5
Views: 121

Re: Click doesn't work with variables

If the numeric click works, then this probably isn't the problem, but are you sure that CoordMode for both Pixel and Mouse are set the same?
by boiler
22 Feb 2020, 09:42
Forum: Ask For Help
Topic: How to have selectable text on MsgBox's
Replies: 2
Views: 69

Re: How to have selectable text on MsgBox's

Although not the same as selectable text, it might be helpful to point out that if you press Ctrl+C when a MsgBox is active, it copies the text to the clipboard so you can paste it in Notepad or something and select what you want.
by boiler
21 Feb 2020, 11:07
Forum: Ask For Help
Topic: Make a word instantly Italic Topic is solved
Replies: 4
Views: 156

Re: Make a word instantly Italic Topic is solved

Sadly, it does not work :(. Do you know of any other methods? Also, I'm not sure but I think you might have meant: ::*::les verts That's the double ':' in there for the autocorrect to be working. I tried it without the double ':' too, but that likewise did not work No, he had it right. The * is a h...
by boiler
21 Feb 2020, 09:59
Forum: Ask For Help
Topic: Click doesn't work with variables
Replies: 5
Views: 121

Re: Click doesn't work with variables

If you're saying that PsX and PsY are shown to be 300 and 575 respectively, and you replace Click %PsX%, %PsY% with Click 300, 575 respectively into otherwise the exact same code and the latter works and the former doesn't, I don't know what to tell you. It would seem that there is some other differ...
by boiler
20 Feb 2020, 21:36
Forum: Ask For Help
Topic: Startup Tool
Replies: 5
Views: 157

Re: Startup Tool

You have all of your Run commands in no-man's land. They never get executed. If you want those lines executed when the script is first run, you can put a label like RunApps: before them and return at the end of them. And put Gosub RunApps at the top of your script after Gosub SettingsLoad . You prob...
by boiler
20 Feb 2020, 11:28
Forum: Ask For Help
Topic: Click doesn't work with variables
Replies: 5
Views: 121

Re: Click doesn't work with variables

I have logged PsX and PsY to a file, and those variables contain the correct values. Do you mean that you logged GPwidth and GPheight to a file? Because you're overwriting PsX and PsY with new values in the lines below. If you read values into PsX and PsY from a file, they got wiped out by the line...
by boiler
20 Feb 2020, 09:48
Forum: Ask For Help
Topic: How to use different colors in one text line?
Replies: 4
Views: 146

Re: How to use different colors in one text line?

You pretty much have to split it up into different lines: Gui,MARGIN,20,20 Gui,Font,s11 cFFFFFF,Courier Gui,Font,c000000 Gui,Add,Text,Y+0 Section,Alt Alt-G Win ; <<< modified Gui,Font,cFFFFFF Gui,Add,Text,Y+0,F1 PutFTP DS Dir2 TEX Q EXIT PC Gui,Add,Text,Y+0,E Menu L LastFile F F-Zilla Gui,Add,Text,Y...
by boiler
20 Feb 2020, 09:37
Forum: Ask For Help
Topic: Copy text to clipboard, and check if text containst "Completed"
Replies: 2
Views: 90

Re: Copy text to clipboard, and check if text containst "Completed"

Two problems:

Just Send, ^c copies to the clipboard, not clipboard = Send ^c.

You need to make sure you're operating on the clipboard after the contents have been copied to it. Use ClipWait after sending ^c.
by boiler
19 Feb 2020, 23:50
Forum: Ask For Help
Topic: Noob looking for help with first script
Replies: 3
Views: 136

Re: Noob looking for help with first script

Yes, if you're just going to delete everything, then just select all and delete it. ClipWait doesn't help. It's just this:

Code: Select all

F1::Send, {Ctrl down}a{Ctrl up}{Delete}
by boiler
19 Feb 2020, 20:04
Forum: Ask For Help
Topic: Teamviewer sponsored/free session popup help Topic is solved
Replies: 8
Views: 372

Re: Teamviewer sponsored/free session popup help Topic is solved

Yes, the timer is in ms. You can probably increase it to 50 or 100 and not notice a difference in performance and it would likely be easier on your processor, but if you look at Task Manager while it's running and it's not using a high percentage of CPU time, it's probably okay to leave it as is. I ...
by boiler
19 Feb 2020, 11:12
Forum: Ask For Help
Topic: Noob looking for help with first script
Replies: 3
Views: 136

Re: Noob looking for help with first script

If you're simply removing a known string of text, you should use StrReplace() and replace it with a blank string. The bigger issue is how you grab the overall text and replace it with the modified text (the text with the offending string removed). You should be able to have it select all, copy it, m...
by boiler
19 Feb 2020, 11:01
Forum: Ask For Help
Topic: Teamviewer sponsored/free session popup help Topic is solved
Replies: 8
Views: 372

Re: Teamviewer sponsored/free session popup help Topic is solved

The "Visible Text" is exactly what you need to differentiate it from the other window using the WinText parameter of the WinExist() function. Here's what your code would look like: #NoEnv #Persistent #SingleInstance Force SetTimer, TVPopUp, 20 Exit TVPopUp(){ title:= "TeamViewer" class:= "ahk_class ...

Go to advanced search