Search found 97 matches

by Trigg
16 Aug 2017, 20:08
Forum: Ask For Help
Topic: Changing XL.Visible := False/True Topic is solved
Replies: 2
Views: 541

Re: Changing XL.Visible := False/True Topic is solved

TheDewd wrote:Glad you figured it out. I thought I'd let you know you can use ternary to shorten your hide/show code:

Code: Select all

1::
    XL.Visible := (XL.Visible ? 0 : 1) ; Toggle
return
Oh wow. This helps a bunch! Thank you.
by Trigg
16 Aug 2017, 15:57
Forum: Ask For Help
Topic: Ini Help
Replies: 4
Views: 944

Ini Help

What I do is I reopen claims to make payments, but sometimes I have to wait for authorization so the claims stay open. I created a database of reopened claims so I can view them every day and see if my payments were authorized so I may reclose those claims. First question: For IniDelete and IniRead,...
by Trigg
14 Aug 2017, 17:49
Forum: Ask For Help
Topic: GUI Button Not working because of ProgressBar Topic is solved
Replies: 2
Views: 486

Re: GUI Button Not working because of ProgressBar Topic is solved

You can try some Gui control options like BackgroundTrans or Disable. I use +E0x20 to make an entire GUI window click-through ( Gui options ), but I don't know that it would work for a control. I wonder if you could make a Gui, Progress control clickable and take the action of a Button. The button ...
by Trigg
14 Aug 2017, 13:59
Forum: Ask For Help
Topic: GUI Button Not working because of ProgressBar Topic is solved
Replies: 2
Views: 486

GUI Button Not working because of ProgressBar Topic is solved

Hey guys,

Is it possible to click a button even though it is behind a progressbar?

Code: Select all

Gui, Add, Progress, x2 y2 w52 h52 BackgroundBlue
Gui, Add, Button, x4 y4 w48 h48
Gui, Show
Return

GuiClose:
ExitApp
by Trigg
14 Aug 2017, 08:46
Forum: Ask For Help
Topic: Changing XL.Visible := False/True Topic is solved
Replies: 2
Views: 541

Changing XL.Visible := False/True Topic is solved

Is it possible for ComObj to show/hide using XL.Visible := False/True? EDIT: I figured it out. ComObjGet was causing the issue. I didn't realize I needed to change the variable for it to work. Sorry guys! Path := "C:\Users\" . A_Username . "\Desktop\Book1.xlsx" XL := ComObjCreate("Excel.Application"...
by Trigg
28 Jul 2017, 11:50
Forum: Ask For Help
Topic: Exiting a script without reload
Replies: 2
Views: 563

Re: Exiting a script without reload

Using a toggle variable you can do this, however it's not always so easy to implement. f2::toggle := false ;stop loop f1:: toggle := true while (toggle = true) { ;send 1-4, pressing f2 will stop the loop ;while (toggle) { ;Script body } return Thank you for the response! =) I'm trying to do this wi...
by Trigg
28 Jul 2017, 11:12
Forum: Ask For Help
Topic: Exiting a script without reload
Replies: 2
Views: 563

Exiting a script without reload

Good afternoon fellow AHK'ers :D Is there a way to stop a script without reloading, pausing, suspending it, or exitapp? ;F2:: ;Exit ;F2::Exit F2::Return F1:: Send, 1 Sleep, 1000 Send, 2 Sleep, 1000 Send, 3 Sleep, 1000 Send 4 #Persistent Stop := "0" F2:: IF ( Stop = "1" ) Stop := "0" IF ( Stop = "0" ...
by Trigg
25 Jul 2017, 08:12
Forum: Ask For Help
Topic: PixelSearch + PostMessage Click
Replies: 2
Views: 713

Re: PixelSearch + PostMessage Click

This works, thank you! Hopefully this will work for you. Cheers. q:: ;post click CoordMode, Pixel, Screen ;testing on MS Paint (Windows XP version), looking for aqua colour: ;draw some aqua pixels, then change the primary colour, ;watch the aqua pixels get replaced as you trigger the hotkey PixelSea...
by Trigg
24 Jul 2017, 13:00
Forum: Ask For Help
Topic: PixelSearch + PostMessage Click
Replies: 2
Views: 713

PixelSearch + PostMessage Click

Is it possible to use PixelSearch and PostMessage to click on something in Chrome? I cannot seem to figure out why this isn't working. ;https://autohotkey.com/board/topic/60285-clicking-on-non-active-window-using-postmessagesendmessage/ PixelSearch, Px, Py, 1, 1, 1920, 1080, 0x3296FF, 0, Fast Contro...
by Trigg
19 Jul 2017, 22:21
Forum: Ask For Help
Topic: AHK Spam Script
Replies: 2
Views: 507

Re: AHK Spam Script

Blixky wrote:Does anyone know how to make a fast spamming script with Sendinput ^v{enter}
Look into Loop.
by Trigg
18 Jul 2017, 11:17
Forum: Ask For Help
Topic: Pause script for a set period of time every 500 ms? Topic is solved
Replies: 5
Views: 2241

Re: Pause script for a set period of time every 500 ms? Topic is solved

Hello, so i have this simple script here. I need to modify it so that every 500 ms it sends SendInput {LButton Up} and pauses itself for 100 ms before looping. How do i go about it? Thank you for your time. Good afternoon! I believe there is a way to do this. Try looking into SetTimer. SetTimer [, ...
by Trigg
18 Jul 2017, 10:52
Forum: Ask For Help
Topic: Calculator with numlock on
Replies: 4
Views: 881

Re: Calculator with numlock on

Elaphe666 wrote:How can I make Pgup also close the Calculator and set numlock off, when it has already been opened?
Maybe try IfWinExist

Code: Select all

$Pgup:: ; Runs calculator with numlock on
IfWinExist, Calculator
	{
	WinClose, Calculator
	SetNumLockState, On
	}
Else
	{
	Run, Calc
	SetNumLockState, Off
	}
Return
by Trigg
18 Jul 2017, 09:46
Forum: Ask For Help
Topic: GUI move pic function
Replies: 6
Views: 1104

Re: GUI move pic function

I changed the function a little by adding GuiControlGet, but PostMessage still does not work. WM_RBUTTONDOWN() { ;static CurrControl, _rbdn ;CurrControl := A_GuiControl ClickTime := A_TickCount KeyWait, RButton If A_TickCount - ClickTime > 1000 MouseGetPos,,,,ControlName GuiControlGet, PicName, Name...
by Trigg
17 Jul 2017, 10:44
Forum: Ask For Help
Topic: GUI move pic function
Replies: 6
Views: 1104

Re: GUI move pic and save pos

garry wrote:thank you
how can I move pictures inside GUI ?
Choose 1-3 in the dropdownlist. and you hit any arrow key to start moving the picture. CTRL + arrow key will be more precise and goes by 1 pixel. After pressing an arrow key you can use your mouse to move the GUI picture.
by Trigg
16 Jul 2017, 12:13
Forum: Ask For Help
Topic: GUI move pic function
Replies: 6
Views: 1104

Re: GUI move pic and save pos

See GuiControlGet and note that the INI key for the first IniWrite after the GuiClose is incorrect, should be Pic1x. There's a great number of ways you can save data to disk for later, and INI's are the typically the easiest to work with in AHK, but they do have character limits per value (around 2...
by Trigg
15 Jul 2017, 22:23
Forum: Ask For Help
Topic: GUI move pic function
Replies: 6
Views: 1104

GUI move pic function

Before I tried making this into a function. ; Read picture positions IniRead, Pic1x, GUI.ini, PicPositions, Pic1x IniRead, Pic1y, GUI.ini, PicPositions, Pic1y IniRead, Pic2x, GUI.ini, PicPositions, Pic2x IniRead, Pic2y, GUI.ini, PicPositions, Pic2y IniRead, Pic3x, GUI.ini, PicPositions, Pic3x IniRea...
by Trigg
15 Jul 2017, 22:21
Forum: Ask For Help
Topic: Bug report help
Replies: 4
Views: 601

Re: Bug report help

#SingleInstance force #include <JSON> ; <-- Put JSON.ahk in C:\Program Files\AutoHotkey\Lib Gui, Add, Text,, Bug Type Gui, Add, DropDownList, vBugType, Script broke|Bug fix|Other Gui, Add, Text,, What is causing the bug? Gui, Add, Edit, w600 R3 vBugInput Gui, Add, ListBox, vColorChoice R5, Red|Gree...
by Trigg
14 Jul 2017, 10:27
Forum: Ask For Help
Topic: Bug report help
Replies: 4
Views: 601

Re: Bug report help

evilC wrote:IniRead / IniWrite is not really suitable for this kind of info, because you cannot really represent hierarchical data in INI files.

I would suggest using CoCo's JSON library instead
I'm looking into this now. Thank you!
by Trigg
14 Jul 2017, 09:27
Forum: Ask For Help
Topic: Bug report help
Replies: 4
Views: 601

Bug report help

I made a GUI for my coworkers to help automate their tedious tasks, but it sometimes has glitches and bugs. So I am creating a GUI that will let them report any bugs they find. Is there anything else besides ComboBox that I can increase the width and height of for a user to easily review what they t...
by Trigg
05 Jul 2017, 15:24
Forum: Ask For Help
Topic: Find all cells containing same values
Replies: 7
Views: 1298

Re: Find all cells containing same values

As soon as I read the first post I decided to write a generic xlFindAll function without reading the rest of the thread (I like to write my solution before reading others). My function ended up being similar to yours but different in various ways. You often have a unique coding prospective. Even na...

Go to advanced search