Search found 453 matches

by Osprey
20 Nov 2017, 16:49
Forum: Ask For Help
Topic: Using if while multiple conditions need to be met Topic is solved
Replies: 5
Views: 413

Re: Using if while multiple conditions need to be met Topic is solved

The simplest way to simplify is simply (heh) to move the redundant parts out into subroutines, like so... if A = Window { Goto, BImage } else { Several clicks to make A = Window Goto, BImage } ExitApp BImage: if B= Image to File { Goto, TakeScreenshot } else { Several clicks to make B= Image to File...
by Osprey
20 Nov 2017, 16:33
Forum: Ask For Help
Topic: WinShow/WinActivate is not working any more
Replies: 6
Views: 579

Re: WinShow/WinActivate is not working any more

Try WinRestore [, WinTitle]. I learned yesterday that a window can still report being "active" when it's minimized. WinRestore will un-minimize it.
by Osprey
20 Nov 2017, 05:32
Forum: Gaming
Topic: Need help on a script
Replies: 3
Views: 252

Re: Need help on a cript

Try:

*RButton::
Send {RButton down}{LShift down}
KeyWait, RButton
Send {RButton up}{LShift up}
return
by Osprey
20 Nov 2017, 04:56
Forum: Ask For Help
Topic: modifying a ahk command name in open source
Replies: 2
Views: 286

Re: modifying a ahk command name in open source

You could simply hex edit the compiled AutoHotkey executable. I just tested it and it worked. It took about 15 seconds.
by Osprey
20 Nov 2017, 04:49
Forum: Ask For Help
Topic: improving my 360 degree turning script Topic is solved
Replies: 2
Views: 309

Re: improving my 360 degree turning script Topic is solved

I would guess that you'd want to cut LOOP_TIMES in half, to 660. If you mean that you want a single press of F to do 180 degrees twice, then you'd need to duplicate the Loop section so that it runs twice, like so: LOOP_TIMES := 660 SPEED := 21 *f:: Loop, %LOOP_TIMES% DllCall("mouse_event", uint, 1, ...
by Osprey
19 Nov 2017, 22:37
Forum: Ask For Help
Topic: Help with Autohotkey Script
Replies: 1
Views: 189

Re: Help with Autohotkey Script

Alt + Esc will cycle through all of the items on your taskbar. If that sounds appropriate to what you're doing, the following should get you started: NumTimes := 2 ; Total number of times you want to go through the entire operation iNumTimes := 1 ; Keeps track of the current iteration. Don't change ...
by Osprey
19 Nov 2017, 19:40
Forum: Ask For Help
Topic: Underline Text in GUI when pointer hovers over text
Replies: 5
Views: 461

Re: Underline Text in GUI when pointer hovers over text

I figured it out, but it requires a bit of a hack. Gui, New Gui, Add, Text, vMyText, Text to be underlined when moused over Gui, Show OnMessage(0x200, "Underline") Underline() { Sleep 50 MouseGetPos, MouseX, MouseY GuiControlGet, MyText, Pos If (MouseX > MyTextX) and (MouseY > (25*(A_ScreenDPI/96) +...
by Osprey
19 Nov 2017, 16:51
Forum: Ask For Help
Topic: Autoclick on inactive Window
Replies: 2
Views: 809

Re: Autoclick on inactive Window

At the top of your script, set "SetTitleMatchMode 2" so that you don't have to match the exact window title. You could just check for "Life is Feudal" and it'll work regardless of anything else in the actual title that comes before or after that. Try this (untested): SetTitleMatchMode 2 SetControlDe...
by Osprey
18 Nov 2017, 20:15
Forum: Ask For Help
Topic: small project Topic is solved
Replies: 7
Views: 514

Re: small project Topic is solved

In order for your buttons to do anything, you need to define subroutines to call, and those subroutines should contain the Gui, Submit and GuiControl lines. Try something like this: Gui, Add, Text,, Nick name: Gui, Add, Edit, vNickname Gui, Add, Text,, Reason: Gui, Add, Edit, vReason Gui, Add, Text,...
by Osprey
18 Nov 2017, 19:24
Forum: Ask For Help
Topic: [Solved] Single-click tray icon without a tray item
Replies: 13
Views: 4381

Re: [Solved] Single-click tray icon without a tray item

Yes, I've already replaced "global" with "static." I meant to thank you for pointing out the appropriateness of static variables for this purpose.
BTW, my solution wasn't exactly clever. I just adapted one of the examples for the SetTimer command in the help file to the code already posted above.
by Osprey
18 Nov 2017, 16:46
Forum: Ask For Help
Topic: Anyone can fix this script (screenshot paint related) Topic is solved
Replies: 4
Views: 313

Re: Anyone can fix this script (screenshot paint related) Topic is solved

It looks like it's just calling Save rather than Save As, so you'll have to change that and add a few lines. My version of Paint (in Windows 10) saves to PNG by default, so I'm not sure exactly what the commands should be for you, but, to give you an idea, here's what you might replace the "Send ^s"...
by Osprey
18 Nov 2017, 16:22
Forum: Ask For Help
Topic: [Solved] Single-click tray icon without a tray item
Replies: 13
Views: 4381

Re: [Solved] Single-click tray icon without a tray item

Thanks, iPhilip, but that doesn't do exactly what my code does, which suppresses showing the menu on double click. Yours shows the menu, like the TheDewd's code above, but it does hide it more quickly, which is an improvement. It's a good alternative to have. People can decide which they prefer: not...
by Osprey
18 Nov 2017, 06:30
Forum: Ask For Help
Topic: [Solved] Single-click tray icon without a tray item
Replies: 13
Views: 4381

Re: [Solved] Single-click tray icon without a tray item

I stumbled upon this thread while trying to accomplish this, myself, and the above posts were highly helpful. TheDewd's modification of kon's original code worked very well, except that using a double click to open the default menu item also showed the menu twice. iPhilip addressed this, but his exa...

Go to advanced search