Search found 241 matches

by vsub
Yesterday, 17:49
Forum: Ask For Help
Topic: trying to make a color clicker
Replies: 1
Views: 95

Re:

From the guide

Code: Select all

^!z::  ; Control+Alt+Z hotkey.
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%
MsgBox The color at the current cursor position is %color%.
return
by vsub
Yesterday, 13:44
Forum: Ask For Help
Topic: Menu sometimes appear too wide
Replies: 2
Views: 112

Re: Menu sometimes appear too wide

Actually I find what part of the code is causing the problem but I don't see why This is imitating my code...first press 1 and click on the menu,then press 2 and click on the menu and when you press 1 again,the menu will be as wide as the long menu 1:: Menu, Menu, Add,Short Text,Test1 Menu,Menu,Show...
by vsub
Yesterday, 12:47
Forum: Ask For Help
Topic: Shortcut for shifting Window to 80% of screen and opening QuickNotes next to it
Replies: 2
Views: 62

Re: Shortcut for shifting Window to 80% of screen and opening QuickNotes next to it

Works with notepad(I don't know how to call the sticky notes and display the yellow window) DetectHiddenWindows,on SetWinDelay,0 F1:: Keywait,F1 WinGetPos,,,,H,AHK_class Shell_TrayWnd WinGet,ID,ID,A WinGet,Size,MinMax,A If Size = 1 WinRestore,A WinMove,A,,-8,-8,% A_ScreenWidth - ((A_ScreenWidth * 20...
by vsub
26 Mar 2020, 12:29
Forum: Ask For Help
Topic: Pause and resume stopwatch
Replies: 2
Views: 70

Re: Pause and resume stopwatch

There will be probably a better nicer looking solution but your code seems little too complicated Try this Sec = 00 Min = 00 Hrs = 00 Gui, Font, s60, Verdana Gui, Add, Text, vStopWatch, 00:00:00 Gui, Submit, NoHide Gui, Show,, `;) Return ^s:: Keywait,s Loop { Sleep,1000 Sec += 1 If Sec = 60 { Sec = ...
by vsub
24 Mar 2020, 12:45
Forum: Ask For Help
Topic: Is there is a way to block Lbutton if a window exist
Replies: 7
Views: 183

Re: Is there is a way to block Lbutton if a window exist

Anything running as admin will work but I don't want to run the script as admin There is no point to continue because AHK will not block mouse clicking no matter what when you click on a window started as admin while the script is not running as admin One solution will probably be to make a almost c...
by vsub
24 Mar 2020, 10:06
Forum: Ask For Help
Topic: Is there is a way to block Lbutton if a window exist
Replies: 7
Views: 183

Re: Is there is a way to block Lbutton if a window exist

Thanks but I know I can make the script running as admin and that's the problem. The script contains code for all kind of features and it can case problems if I run it as admin And I just find out that AHK will not block Lbutton even if I do this LButton::Return Clicking anywhere,lbutton is blocked ...
by vsub
23 Mar 2020, 12:55
Forum: Ask For Help
Topic: Is there is a way to block Lbutton if a window exist
Replies: 7
Views: 183

Is there is a way to block Lbutton if a window exist

For example: 1.Start notepad as admin 2.Make the notepad window visible but not active 3.Run this script #IfWinExist,ahk_exe notepad.exe LButton:: tooltip,something return 4.Clicking anywhere will block lbutton and display the tooltip except if I click on the notepad window,the notepad window become...
by vsub
23 Mar 2020, 10:21
Forum: Ask For Help
Topic: Display web page in gui
Replies: 2
Views: 122

Re: Display web page in gui

Thanks but as expected,this is using IE and the page look weird(it looks fine when I open it directly with with IE)
by vsub
22 Mar 2020, 15:58
Forum: Ask For Help
Topic: Display web page in gui
Replies: 2
Views: 122

Display web page in gui

The usual activex shell.explorer is using IE which I don't want to use and it is displaying the page in a very wrong way(probably not loading any scripts and css styles)

I will not navigate to any other pages so I don't need controls.
by vsub
22 Mar 2020, 08:23
Forum: Ask For Help
Topic: Run/close file depending on checkbox?
Replies: 1
Views: 93

Re: Run/close file depending on checkbox?

There is something missing in this code You are adding a checkbox already with a certain state and then immediately check the state of it even before showing a gui window I don't see a way to change the checkbox in your code Gui, Add, CheckBox, vCB1 gcb1, Run App gui,show,w240 h100 return CB1: Gui,S...
by vsub
22 Mar 2020, 07:36
Forum: Ask For Help
Topic: WinWaitClose blocking script
Replies: 2
Views: 124

Re: WinWaitClose blocking script

It may be easier to help you if you post your code even if it's a failed attempt. If try to press the hotkey the normal way(not with AHK)does it work as expected "If a certain application is active, then pressing a hotkey opens a feature of the active application (which opens in a separate 'child' w...
by vsub
22 Mar 2020, 03:53
Forum: Ask For Help
Topic: Hold RMB down while keyboard is pressed down
Replies: 2
Views: 137

Re: Hold RMB down while keyboard is pressed down

I am not sure exactly what you mean
Make RAlt behave the same way as RBM(pressing and releasing it to allow dragging)

Code: Select all

RAlt::
Send,{RButton Down}
Keywait,RAlt
Send,{RButton Up}
Return
by vsub
22 Mar 2020, 03:41
Forum: Ask For Help
Topic: Error in compiling script using Ahk2Exe from Command line Topic is solved
Replies: 5
Views: 179

Re: Error in compiling script using Ahk2Exe from Command line Topic is solved

Maybe you can add "Gui +OwnDialogs" before every msgbox you have,that way you will not get a taskbar button when a msgbox appear There is no function(as far as I know)that changes the msgbox icon without having to use some waiting condition for a msgbox to appear and then change it(which is not inst...
by vsub
22 Mar 2020, 02:48
Forum: Ask For Help
Topic: Display section of background window on top of foreground window
Replies: 2
Views: 121

Re: Display section of background window on top of foreground window

It can be done with AHK but there is much easier solution OnTopReplica https://github.com/LorenzCK/OnTopReplica/releases I use that program everywhere and even made multiple scripts that allows that program to work even better There are also command lines which you can use to duplicate a specific wi...
by vsub
21 Mar 2020, 07:40
Forum: Ask For Help
Topic: Gui Picture and loops
Replies: 6
Views: 231

Re: Gui Picture and loops

Umm,the code don't say anything about actually resizing the image Do you want to actually resize the image or just to be displayed at a specific size? I did an imitation of your code yesterday just to check and it was working file.All images are forced to the size I set(even if the aspect ratio is w...
by vsub
19 Mar 2020, 16:43
Forum: Ask For Help
Topic: Menu sometimes appear too wide
Replies: 2
Views: 112

Menu sometimes appear too wide

Any idea how to prevent this? I have a script with a lot different code in it and part of it is a menu with items that appear when I middle mouse click over the close button on the windows. The problem is that for whatever reason sometimes the menu appear too wide and it stays like that until I rest...
by vsub
18 Mar 2020, 14:01
Forum: Ask For Help
Topic: How to stop script when a new instance is run
Replies: 4
Views: 196

Re: How to stop script when a new instance is run

Adding this at the top of the script will kill the old instance and run a new one

#SingleInstance,Force
https://www.autohotkey.com/docs/commands/_SingleInstance.htm

Depending on your full code,it may be possible to just destroy the gui and and display it again without reloading the script
by vsub
18 Mar 2020, 10:27
Forum: Ask For Help
Topic: Move window depending on number of instances running
Replies: 7
Views: 253

Re: Move window depending on number of instances running

I just added some random locations in the Pos variable,I didn't actually tried adding positions that will make the window not go off screen You said that you want to run 3 or 4 instances so I added 3 possible locations(excluding the 1st instance)and make the script start placing windows above 4 inst...
by vsub
16 Mar 2020, 12:44
Forum: Ask For Help
Topic: Can I make the script to waiit for one of two keys
Replies: 3
Views: 122

Re: Can I make the script to waiit for one of two keys

Yes,I did,but I was not able to understand how to make it work The only thing it was doing,it was blocking all keys until I press enter It doesn't matter what I type so,what should I type in the MatchList which is a requirement for that function to work This is what I want 1.Run the script 2.Type so...
by vsub
16 Mar 2020, 10:54
Forum: Ask For Help
Topic: Can I make the script to waiit for one of two keys
Replies: 3
Views: 122

Can I make the script to waiit for one of two keys

I don't want to set a hotkey and then use keywait,I just want to start the script,type something random in a program and the moment I press enter or numpadenter,to continue with the script

Go to advanced search