Search found 11 matches

by submeg
11 Jul 2019, 15:10
Forum: Ask For Help
Topic: Firefox options - checking current value and changing values Topic is solved
Replies: 3
Views: 213

Re: Firefox options - checking current value and changing values Topic is solved

The code to toggle the History value: ;------------------------------------------------------------- IEActions_HistoryToggle: CurrentChoice := "YES" LastLine := 0 If WinActive("ahk_class MozillaWindowClass") { Loop { FileReadLine, line, C:\Users\LOCALUser\AppData\Roaming\Mozilla\Firefox\Profiles\ok1...
by submeg
11 Jul 2019, 04:34
Forum: Ask For Help
Topic: Firefox options - checking current value and changing values Topic is solved
Replies: 3
Views: 213

Re: Firefox options - checking current value and changing values Topic is solved

Hi TheDewd, that's a great idea! So I toggled it on and off and was able to find one value that could be used to check the history setting: user_pref("browser.privatebrowsing.autostart", true); If the history is off, the Private Browsing is on. Looking at all the other options that toggle, nothing i...
by submeg
10 Jul 2019, 06:13
Forum: Ask For Help
Topic: Firefox options - checking current value and changing values Topic is solved
Replies: 3
Views: 213

Firefox options - checking current value and changing values Topic is solved

Hello all, In Firefox, I am trying to create a history on/off toggle. I am able to get to the control in question, but depending on it's value, you either press the up or down cursor value to set it. Before I set the value, I need to know what it is. How do you grab the value of a control in Firefox...
by submeg
26 Jun 2019, 17:53
Forum: Ask For Help
Topic: Change text on GUI button depending on condition Topic is solved
Replies: 4
Views: 291

Re: Change text on GUI button depending on condition Topic is solved

Thanks x2 hellbent! I used your information and realised I just needed a label...just.... :facepalm: Can't believe it was that obvious. I actually used this information to change the text on the GUI and also to show and hide the buttons completely. Hiding buttons example: #SingleInstance, Force Visi...
by submeg
18 Jun 2019, 16:52
Forum: Ask For Help
Topic: Change text on GUI button depending on condition Topic is solved
Replies: 4
Views: 291

Re: Change text on GUI button depending on condition Topic is solved

hi just me, Thanks for the info. The second point you make about changing the text once the button is created is what I am after. I already have that code in my script: #NoEnv ; Recommended for performance and compa tibil ity with future AutoHotkey releases. #SingleInstance, Force SendMode Input ; R...
by submeg
18 Jun 2019, 07:34
Forum: Ask For Help
Topic: Change text on GUI button depending on condition Topic is solved
Replies: 4
Views: 291

Change text on GUI button depending on condition Topic is solved

Hi all, Is it possible to change the text on a GUI's button based on a value? For example, if you have a button that changes a value in the code (value = 1 or 0), can you change the text dependent on that value? Toggle code: ToggleOnOff: msg := "" Suspend Pause,,1 If PauseFlag = 1 { ;If PauseFlag = ...
by submeg
01 May 2019, 06:40
Forum: About This Community
Topic: Guestbook: say hi, thank you, whatever!
Replies: 37
Views: 9051

Re: Guestbook: say hi, thank you, whatever!

Hi everyone, I've been using AHK for about 18 months, and I have to say, it has been super useful at work. I have been able to code out so many of the boring/mundane/time consuming aspects of my job and focus more on the difficult problem solving issues. It's been amazing so far and I can't wait to ...
by submeg
28 Jan 2019, 16:48
Forum: Ask For Help
Topic: Running macro in Excel PERSONAL.XLSB no longer working?
Replies: 2
Views: 316

Re: Running macro in Excel PERSONAL.XLSB no longer working?

Hi jmeneses, I implemented your code and yes, it returned with "EXCEL is EDITING!" Looking at the extract, does it try to make sure it is off before running it? I tried it and it continually showed the messagebox each time I tried to run the script. What is supposed to happen in this case? submeg Ed...
by submeg
28 Jan 2019, 16:42
Forum: Ask For Help
Topic: Programm specific shortcut keyboard
Replies: 6
Views: 418

Re: Programm specific shortcut keyboard

Megaloadon, yes it can be program specific, I do this all the time. The most reliable way I have found has been to use the class of the program to decide what the keypress will do. For example, I have a https://www.razer.com/gaming-keyboards-keypads/razer-tartarus-v2 gaming keypad, and the down d-pa...
by submeg
03 Jan 2019, 16:28
Forum: Ask For Help
Topic: Running macro in Excel PERSONAL.XLSB no longer working?
Replies: 2
Views: 316

Running macro in Excel PERSONAL.XLSB no longer working?

Hi all, I have been using AHK for a little while now, and I have been running macros housed in my PERSONAL.XLSB workbook just fine. For some reason, this is no longer working. The code as per below: ExcelActions_MergeAndWrap: If WinActive("ahk_class XLMAIN") { Macro:= "PERSONAL.XLSB!MergeAndWrap" tr...

Go to advanced search