Search found 1460 matches
- 18 Nov 2020, 15:22
- Forum: Ask for Help (v1)
- Topic: Basic Incremental Laptop Brightness Up/Down
- Replies: 18
- Views: 15089
Re: Basic Incremental Laptop Brightness Up/Down
Here's a pretty simple approach using AHk + WMI ; Variables Increments := 10 ; < lower for a more granular change, higher for larger jump in brightness CurrentBrightness := GetCurrentBrightNess() ; Hot Keys F6::ChangeBrightness( CurrentBrightness -= Increments ) ; decrease brightness F7::ChangeBrigh...
- 18 Nov 2020, 12:34
- Forum: Off-topic Discussion
- Topic: « What's on your mind? » Topic is solved
- Replies: 4894
- Views: 1395640
- 18 Nov 2020, 12:22
- Forum: Off-topic Discussion
- Topic: « What's on your mind? » Topic is solved
- Replies: 4894
- Views: 1395640
- 28 Oct 2020, 09:46
- Forum: Off-topic Discussion
- Topic: « What's on your mind? » Topic is solved
- Replies: 4894
- Views: 1395640
Re: « What's on your mind? » Topic is solved
No Man's Sky -- Next Generation Trailer (0_0 )...
- 28 Oct 2020, 09:02
- Forum: Off-topic Discussion
- Topic: « What's on your mind? » Topic is solved
- Replies: 4894
- Views: 1395640
Re: « What's on your mind? » Topic is solved
holy mother of papers
- 21 Oct 2020, 14:05
- Forum: Off-topic Discussion
- Topic: « What's on your mind? » Topic is solved
- Replies: 4894
- Views: 1395640
- 18 Apr 2020, 20:20
- Forum: Ask for Help (v1)
- Topic: Trying to create a list of windows users
- Replies: 1
- Views: 357
Re: Trying to create a list of windows users
Please test this old function I used ( not sure if it still works ) Users := GetUsersArray() For Each, User in Users UserList .= "User " Each ": " User "`n" if UserList Msgbox % UserList "`nCalling User 2 From Array: " Users.2 ; function GetUsersArray() { err := DllCall( "Netapi32\NetUserEnum", "Str...
- 18 Apr 2020, 00:45
- Forum: Ask for Help (v1)
- Topic: Run args - for RunWait schtasks.exe Topic is solved
- Replies: 7
- Views: 883
Re: Run args - for RunWait schtasks.exe Topic is solved
Seems that you're missing a space after /tn"
Try: RunArgs := "/run /tn " """" DirUAC "\" NameUAC """"
Try: RunArgs := "/run /tn " """" DirUAC "\" NameUAC """"
- 06 Mar 2020, 17:35
- Forum: Ask for Help (v1)
- Topic: Excel Chart resize
- Replies: 2
- Views: 648
Re: Excel Chart resize
try this at the end of the script:
Code: Select all
Chart := XL.ActiveSheet.Shapes[ 1 ]
Chart.Left := XL.Range( "C2" ).Left
Chart.Top := XL.Range( "C2" ).Top
Chart.ScaleWidth( 3.5, 0, 0 )
Chart.ScaleHeight( 2.5, 0, 0 )
Chart := ""
- 06 Mar 2020, 15:56
- Forum: Ask for Help (v1)
- Topic: Count characters - GUI Edit
- Replies: 7
- Views: 1125
Re: Count characters - GUI Edit
Any linefeeds (`n) in Value that lack a preceding carriage return (`r) are automatically translated to CR+LF (`r`n) to make them display properly. However, this is usually not a concern because the Gui Submit and GuiControlGet OutputVar commands will automatically undo this translation by replacing...
- 06 Mar 2020, 08:48
- Forum: Ask for Help (v1)
- Topic: Autohotkey w/Curl and authentication of http requests
- Replies: 1
- Views: 492
Re: Autohotkey w/Curl and authentication of http requests
You have to store and recall a session cookie. See this: https://stackoverflow.com/a/37983702/5156546
Also see the curl docs: https://curl.haxx.se/docs/manpage.html#-c
Also see the curl docs: https://curl.haxx.se/docs/manpage.html#-c
- 06 Mar 2020, 08:44
- Forum: Ask for Help (v1)
- Topic: Count characters - GUI Edit
- Replies: 7
- Views: 1125
Re: Count characters - GUI Edit
NoChr := MaxChar - StrLen( StrReplace( myString, "`n", ".." ) )
- 04 Mar 2020, 15:11
- Forum: Ask for Help (v1)
- Topic: Correct syntax for combination if statement
- Replies: 4
- Views: 557
Re: Correct syntax for combination if statement
You'd have to use:if ( SelectOption > StartList and SelectOption < EndList and Menu = "Save" or Menu = "Load" )The Manual wrote:Caution: The operators "between", "is", "in", and "contains" are not supported in expressions.
- 04 Mar 2020, 12:40
- Forum: Ask for Help (v1)
- Topic: Keyboard Layout Issue
- Replies: 3
- Views: 596
Re:
Try a context-sensitive hotkey:
Code: Select all
#If (condition = true)
a::
; Do something cool
return
#If
- 04 Mar 2020, 11:59
- Forum: Ask for Help (v1)
- Topic: Excel Text to column script not working? Topic is solved
- Replies: 5
- Views: 892
Re: Excel Text to column script not working? Topic is solved
I was going by the op.
@flyingDman I just tested this:It works just fine.
@flyingDman I just tested this:
Code: Select all
xl.Range( "A1" ).value := "abc~def~ghi"
xl.Range( "A1" ).EntireColumn.TextToColumns( xl.range("A10") ,1,1,0,1,0,0,0,1,"~")
- 03 Mar 2020, 20:43
- Forum: Ask for Help (v1)
- Topic: Control command doesn't work
- Replies: 7
- Views: 1082
Re: Control command doesn't work
I didn't see your reply so I went ahead and brute forced WM_Command wParams and found the specific one for Save As Jpg Try this: ^!I:: PostMessage, 0x111, 0xc3ca, 0x0,, ahk_class MSPaintApp Return It should open the Save As dialog set to jpg. Feel free to add file naming and saving after the PostMes...
- 03 Mar 2020, 16:20
- Forum: Ask for Help (v1)
- Topic: I do not close the script when trying to open an application that does not exist on the computer
- Replies: 9
- Views: 1160
Re: I do not close the script when trying to open an application that does not exist on the computer
Place the ExitApp command outside of the condition: If !(A_ComputerName = "STARBLOOD") { run, C:\Program Files (x86)\AnyDesk\XXX.exe } ExitApp or check if the program exists first Prog = C:\Program Files (x86)\AnyDesk\XXX.exe If !FileExist( Prog ) ExitApp If !(A_ComputerName = "STARBLOOD") { Run % P...
- 03 Mar 2020, 15:32
- Forum: Ask for Help (v1)
- Topic: Excel Text to column script not working? Topic is solved
- Replies: 5
- Views: 892
Re: Excel Text to column script not working? Topic is solved
Assuming the text delimiter is | ( eg. abc|def|ghi )
try: xl.Range( "A1" ).EntireColumn.TextToColumns( xl.range("A1") ,1,1,0,1,0,0,0,1,"|")
If the delimiter is something else ( eg. abc~def~ghi )
use: xl.Range( "A1" ).EntireColumn.TextToColumns( xl.range("A1") ,1,1,0,1,0,0,0,1,"~")
try: xl.Range( "A1" ).EntireColumn.TextToColumns( xl.range("A1") ,1,1,0,1,0,0,0,1,"|")
If the delimiter is something else ( eg. abc~def~ghi )
use: xl.Range( "A1" ).EntireColumn.TextToColumns( xl.range("A1") ,1,1,0,1,0,0,0,1,"~")
- 02 Mar 2020, 01:06
- Forum: Ask for Help (v1)
- Topic: Changing a DropDownList depending on another DropDownList?
- Replies: 3
- Views: 542
Re: Changing a DropDownList depending on another DropDownList?
..for example, how would I remove 'four' when the user selects 'one'? I will also need to remove multiple options sometimes Again, there's more than one way to achieve this. Here's an example using a conditional statement : RemoveItem: Gui Submit, NoHide if ( List1 = "One" ) ; removes item 4 { Post...
- 01 Mar 2020, 22:59
- Forum: Ask for Help (v1)
- Topic: Changing a DropDownList depending on another DropDownList?
- Replies: 3
- Views: 542
Re: Changing a DropDownList depending on another DropDownList?
Welcome. There's several ways you can do this, all of which consist of using a g-label . For instance: ( note the extra options I've added to each DropDownList control ) ListItems = One|Two|Three|Four|Five Gui, Add, Text, x12 y59 w330 h30 , Select item 1 Gui, Add, DropDownList, vList1 x12 y99 w160 h...