Search found 4785 matches
- 02 Nov 2014, 08:04
- Forum: Ask For Help
- Topic: JoySetCapture DLLCall?
- Replies: 2
- Views: 833
JoySetCapture DLLCall?
Hi, I stumbled across the existence of this Windows API call today. I tried to get it to work, but had no joy. Not exactly sure what it does - I was hoping it could be used to "mask" input from a joystick to anything but the AHK script. Here is my code: #SingleInstance, force DetectHiddenWindows, on...
- 12 Oct 2014, 08:47
- Forum: Scripts and Functions
- Topic: [GUI APP] Spreadsheet Barcode Scanner utility
- Replies: 3
- Views: 2870
Re: [GUI APP] Spreadsheet Barcode Scanner utility
I have shifted to working on a pure Excel VBA version at the moment, but would certainly be interested in any improvements anyone can come up with for the AHK version...
- 01 Oct 2014, 11:21
- Forum: Scripts and Functions
- Topic: [GUI APP] Spreadsheet Barcode Scanner utility
- Replies: 3
- Views: 2870
Re: [GUI APP] Spreadsheet Barcode Scanner utility
New version added
Now hosted on Github
Now only supports Excel (Switched from keystrokes to COM interface)
Now adds not found items to "!NotFound!" worksheet.
Now hosted on Github
Now only supports Excel (Switched from keystrokes to COM interface)
Now adds not found items to "!NotFound!" worksheet.
- 30 Sep 2014, 09:31
- Forum: Ask For Help
- Topic: Excel COM find across all worksheets
- Replies: 2
- Views: 1183
Re: Excel COM find across all worksheets
Yeah, I worked out a way of doing it like that: Loop % LinkedWorkbook.Sheets.Count { res := LinkedWorkbook.Sheets(A_Index).Cells.Find(ScanList[1]) ct := res.Count if (ct){ LinkedWorkbook.Sheets(A_Index).Activate res.Select HighBeep() break } } ScanList.Remove(1) I was hoping, however, that there was...
- 30 Sep 2014, 06:50
- Forum: Ask For Help
- Topic: [Solved]GUI Control pos/size hide/disable, delete
- Replies: 9
- Views: 2739
Re: [Solved]GUI Control pos/size hide/disable, delete
If you create a child GUI for each control that you wish to be able to delete, you can properly remove the control by closing the GUI. You can also use a ?deferwindowpos? DLL call to move all the GUI controls below the deleted control in one go, thus avoiding excessive drawing time to re-position al...
- 30 Sep 2014, 06:20
- Forum: Ask For Help
- Topic: Excel COM find across all worksheets
- Replies: 2
- Views: 1183
Excel COM find across all worksheets
Hi All, I am new to the world of COM, and I need to work out how to search across all sheets within a given file. Here is the code I am using to search at the moment: LinkedExcel := Excel_Get() LinkedExcel.Columns().Select LinkedExcel.Selection.Find("blah", LinkedExcel.ActiveCell).Select [...] ; ===...
- 25 Sep 2014, 09:30
- Forum: Scripts and Functions
- Topic: [GUI APP] Spreadsheet Barcode Scanner utility
- Replies: 3
- Views: 2870
[GUI APP] Spreadsheet Barcode Scanner utility
This script is to assist people when using a USB barcode scanner in combination with a spreadsheet - eg you have a spreadsheet of asset tag numbers and you wish to verify whether or not each item scanned is present in the spreadsheet, without having to look at the laptop screen or press any keys in ...
- 19 Sep 2014, 07:55
- Forum: Gaming
- Topic: Script request for MMO
- Replies: 2
- Views: 3135
Re: Script request for MMO
What part do you need help with? If the bit that daunts you is making the script configurable so that you can easily edit the keys for different games, then I have written a library that should help you there. It allows you to write GUIfied scripts that handle the binding of whichever hotkeys you li...
- 23 Aug 2014, 19:19
- Forum: AutoHotkey v2 Development
- Topic: [Vetoed?]Method In OnMessage [I saw the other two posts]
- Replies: 20
- Views: 6719
Re: Method In OnMessage [I saw the other two posts]
I think I got myself confused. In the context of window scrolling messages, in order to route mouse wheel to the normal scroll routines, I did like you did in your scrolling proof of concept and added a hotkey for wheel up and wheel down, which calls the same routine that would be called if you drag...
- 23 Aug 2014, 11:22
- Forum: AutoHotkey v2 Development
- Topic: [Vetoed?]Method In OnMessage [I saw the other two posts]
- Replies: 20
- Views: 6719
Re: Method In OnMessage [I saw the other two posts]
I don't think A_Gui or A_GuiControl hold anything in V2. Personally, I use MouseGetPos(tmp,tmp,tmp,hwnd,2) to retrieve the HWND of what is under the cursor. My point was that the code OnMessage(0xffff,"c.g") would probably not behave how you want. In your example, c is the class prototype, not an i...
- 22 Aug 2014, 10:56
- Forum: AutoHotkey v2 Development
- Topic: [Vetoed?]Method In OnMessage [I saw the other two posts]
- Replies: 20
- Views: 6719
Re: Method In OnMessage [I saw the other two posts]
OK, I don't profess to fully understand this subject yet, but I have to agree with the sentiment that it would be nice to have OnMessage expanded to allow it to be neatly encapsulated in a class. I know Lexikos has his reservations about the need for such a thing, but for messages such as scrolling ...
- 22 Aug 2014, 10:03
- Forum: Ask For Help
- Topic: Gui,New; is the handle of Gui window the name of Gui window?
- Replies: 11
- Views: 2726
Re: Gui,New; is the handle of Gui window the name of Gui win
Are you querying exactly what an HWND is? The HWND is a OS (ie Windows) assigned ID for each window. Because it is assigned by the OS, it is very useful for DLL calls and other ways of interacting with the OS (eg OnMessage) For example: Get the HWND of the parent (ie a control will return the GUI's ...
- 15 Aug 2014, 06:49
- Forum: AutoHotkey v2 Development
- Topic: Proposed New GUI API for AutoHotkey v2
- Replies: 249
- Views: 84772
Re: Proposed New GUI API for AutoHotkey v2
I have to disagree there. There is a very definite convention in windows - if scrollbars are visible for a section of a GUI, then when you manipulate a scrollbar, the user will expect everything in a box defined by the bounds of the scrollbars to scroll - draw horizontal lines from the top and botto...
- 14 Aug 2014, 12:12
- Forum: AutoHotkey v2 Development
- Topic: Proposed New GUI API for AutoHotkey v2
- Replies: 249
- Views: 84772
Re: Proposed New GUI API for AutoHotkey v2
If a script manually implements scroll bars, they aren't necessarily tied to control positioning. I am not quite sure what you mean here. I was referring to implementations of scrollbars for GUIs (rather than controls) - is there a case where a GUI would have scrollbars enabled ( +0x300000 passed t...
- 13 Aug 2014, 06:33
- Forum: AutoHotkey v2 Development
- Topic: Proposed New GUI API for AutoHotkey v2
- Replies: 249
- Views: 84772
Re: Proposed New GUI API for AutoHotkey v2
Oh don't get me wrong, I have done it, I just thought it would make a nice addition to AHK. I am a little confused though (Sorry, the various flavors of windows GUIs - WPF, Forms etc are a bit beyond me atm) as from doing a little googling it does appear that canvases do exist in some form in some w...
- 13 Aug 2014, 06:20
- Forum: AutoHotkey v2 Development
- Topic: [Project] GUI helper classes - scrollbars, child windows etc
- Replies: 1
- Views: 1742
[Project] GUI helper classes - scrollbars, child windows etc
After discussion with Lexikos, and having previewed Fincs' new v2 GUI, it seems that some GUI functionality is not planned for AHK v2, so users wishing to implement niceties such as scroll bars still have to brave DLL calls etc. For an idea of the kinds of features I am talking about, you can see a ...
- 12 Aug 2014, 10:10
- Forum: AutoHotkey v2 Development
- Topic: Proposed New GUI API for AutoHotkey v2
- Replies: 249
- Views: 84772
Re: Proposed New GUI API for AutoHotkey v2
Could we maybe get a "Canvas Relative" coord mode for Child GUIs in V2? As it stands, GUI coords for child GUIs (And controls I think) are relative to the parent's viewport, not to the parent's canvas. So lets say you have a parent window that is scrolled down 100px Doing a Gui, Show, x0 y0 +ParentH...
- 12 Aug 2014, 07:30
- Forum: AutoHotkey v2 Development
- Topic: Proposed New GUI API for AutoHotkey v2
- Replies: 249
- Views: 84772
Re: Proposed New GUI API for AutoHotkey v2
Thankyou Lex, that sounds exactly like what I need. [Update] Well that was surprisingly simple to implement. For future reference, here is some test code (v1 code!) demonstrating use of DeferWindowPos #SingleInstance force Gui, New, +hwndMainHwnd Gui, Show, x0 y0 w500 h500 y := 100 numchildren := 10...
- 11 Aug 2014, 19:04
- Forum: AutoHotkey v2 Development
- Topic: Proposed New GUI API for AutoHotkey v2
- Replies: 249
- Views: 84772
Re: Proposed New GUI API for AutoHotkey v2
Yeah, I thought about that, but that would only work if you closed the first task surely?
If you had 10 tasks and closed the 3rd task, you only want to move tasks 4-10 up, not 1-2
If you had 10 tasks and closed the 3rd task, you only want to move tasks 4-10 up, not 1-2
- 11 Aug 2014, 12:28
- Forum: AutoHotkey v2 Development
- Topic: Proposed New GUI API for AutoHotkey v2
- Replies: 249
- Views: 84772
Re: Proposed New GUI API for AutoHotkey v2
I have a question regarding the OnClose() event of GUIs. This event happens before the Gui is removed from view, but after the Gui object is counted as destroyed (ie calling MyGui.Destroy() throws an "The Gui is destroyed" error) This is a bit of a problem for me at the moment. I am working on a win...