Search found 553 matches

by 4GForce
14 Mar 2017, 23:38
Forum: Ask For Help
Topic: Nice Gui
Replies: 16
Views: 2332

Re: Nice Gui

gucci wrote:I do have the png file all it does is get a different gui and now theres like 2 guis
Maybe smartgui isn't that smart 0.o ? :roll:
Jokes appart, I don't know, show us your code and screenshots ...

Edit: https://autohotkey.com/docs/commands/Gui.htm#MultiWin
by 4GForce
14 Mar 2017, 16:19
Forum: Ask For Help
Topic: WinMaximize nor run max working as expected Topic is solved
Replies: 9
Views: 1543

Re: WinMaximize nor run max working as expected Topic is solved

Instead of calling the link, you should run the exe directly.
You can also get the PID from the run command and use that for WinMaximize

Code: Select all

Run c:\whateverfolder\roku.exe,,, someId
WinMaximize ahk_id %someId%
by 4GForce
14 Mar 2017, 12:22
Forum: Ask For Help
Topic: No Maximise?
Replies: 4
Views: 897

Re: No Maximise?

I asked on another Thread that I can't find now, why the following keeps producing a Min 9 chrome windows instead of a Max/Maximising them? Note: Some applications (e.g. Calc.exe) do not obey the requested startup state and thus Max/Min/Hide will have no effect. Loop 9 { Run chrome.exe WinMaximize ...
by 4GForce
14 Mar 2017, 04:03
Forum: Ask For Help
Topic: ELSE but no matching IF error
Replies: 1
Views: 315

Re: ELSE but no matching IF error

https://autohotkey.com/docs/commands/Block.htm https://autohotkey.com/docs/commands/IfExpression.htm https://autohotkey.com/docs/commands/Else.htm OnSelect: Gui, Submit, nohide if (List1 = "AK-47") { ak:=true m4a4:=false m4a1:=false } Else if (List1 = "M4A4") { m4a4:=true ak:=false m4a1:=false } Els...
by 4GForce
14 Mar 2017, 03:55
Forum: Ask For Help
Topic: Batch File Doesn't Run Properly in AHK.
Replies: 9
Views: 2017

Re: Batch File Doesn't Run Properly in AHK.

I hate that post title, feels like your blaming Ahk because you are unable to achieve what you want. :crazy: Anyway I haven't tested your code because of the warning and mostly because I'm lazy but ... have you tried running the script as admin ? You are trying to access UAC and some privileges so i...
by 4GForce
14 Mar 2017, 00:03
Forum: Ask For Help
Topic: How do you make a keypress from one script work in a keypress from another script?
Replies: 7
Views: 930

Re: How do you make a keypress from one script work in a keypress from another script?

Rantonhageton wrote:I basically want the "fake" keypress of one script to activate another script.
Something like this ???

ScriptA.ahk

Code: Select all

#singleinstance force

a::
	send {b}
Return
ScriptB.ahk

Code: Select all

#singleinstance force

b::
	msgbox % "b pressed"
Return
by 4GForce
13 Mar 2017, 20:38
Forum: Ask For Help
Topic: Subtraction For Days WhatsApp Script
Replies: 5
Views: 1035

Re: Subtraction For Days WhatsApp Script

Depending on how you assigned CurrentTime ... you either need % or your timestamp format is not YYYYMMDDHH24MISS ( see F4 example ) F1:: timestamp := A_Now FormatTime formatedTime, % timestamp, HH:mm:ss msgbox % formatedTime Return F2:: FormatTime formatedTime, A_Now, HH:mm:ss msgbox % formatedTime ...
by 4GForce
13 Mar 2017, 19:28
Forum: Ask For Help
Topic: Subtraction For Days WhatsApp Script
Replies: 5
Views: 1035

Re: Subtraction For Days WhatsApp Script

See FormatTime documentation https://autohotkey.com/docs/commands/FormatTime.htm

Edit: You might also want to have a look at built-in datetime expressions : https://autohotkey.com/docs/Variables.htm#date
by 4GForce
13 Mar 2017, 18:04
Forum: Ask For Help
Topic: Problem with reading hotkeys Topic is solved
Replies: 9
Views: 1132

Re: Problem with reading hotkeys Topic is solved

Do you think if I do what you recommend my code will work properly? Well, I tested it that way and the Hotkey is toggled ... You could probably stick with *LButton:: instead of a label as long as you take it out of that other label. (UNTESTED) ( personnaly I prefer targetting a Label when using the...
by 4GForce
13 Mar 2017, 17:19
Forum: Ask For Help
Topic: LAlt/LCtrl modified numpad +/- not registering
Replies: 3
Views: 455

Re: LAlt/LCtrl modified numpad +/- not registering

It seems to be the same problem as found here (https://autohotkey.com/board/topic/70232-program-ignoring-altctrl Have you tried running your script as admin as stated in the referred post ? These works fine for me ... F1:: send {LControl down}{NumpadAdd}{LControl up} Return F2:: send ^{NumpadAdd} R...
by 4GForce
13 Mar 2017, 17:00
Forum: Ask For Help
Topic: Nice Gui
Replies: 16
Views: 2332

Re: Nice Gui

gucci wrote:Dosen't really work...
???
Well you need the png file but why do you say it doesn't work ?
by 4GForce
13 Mar 2017, 16:48
Forum: Ask For Help
Topic: Problem with reading hotkeys Topic is solved
Replies: 9
Views: 1132

Re: Problem with reading hotkeys Topic is solved

I toggle them off so they arent on when the script starts, I made it so selected button from Gui toggles them on: AutoclickerFunction: Hotkey, *Lbutton, Toggle <<<<<<<<<HERE *Lbutton:: Send,{Lbutton} While GetKeyState("Lbutton", "P") { Send,{lbutton} Random, delay, %Min%, %Max% Sleep %delay% Random...
by 4GForce
13 Mar 2017, 16:00
Forum: Ask For Help
Topic: Subtraction For Days WhatsApp Script
Replies: 5
Views: 1035

Re: Subtraction For Days WhatsApp Script

On the 1st run you would have to generate a timestamp either of the Start date or the End date and save that to a file. ( with IniWrite / IniRead maybe ) Then you can read that value whenever the script is run again and get the days left by substracting the current date. finalDate := A_Now finalDate...
by 4GForce
13 Mar 2017, 15:15
Forum: Ask For Help
Topic: Problem with reading hotkeys Topic is solved
Replies: 9
Views: 1132

Re: Problem with reading hotkeys Topic is solved

So... If i save the hotkeys they show up normally in gui but they don't work as hotkeys they do nothing... :( When the script starts, just after reading the ini, you turn OFF all the hotkeys. The only way they are turned ON is by changing them. Maybe something like this ... ; ... IniRead, Jit, %A_T...
by 4GForce
13 Mar 2017, 14:56
Forum: Ask For Help
Topic: Please help me to understand these codes?
Replies: 8
Views: 1446

Re: Please help me to understand these codes?

Xl := ComObjActive("Excel.Application") A := {} for Cell in Xl.Range("a1:a4") if A[Cell.Value] A[Cell.Value] ++ else A[Cell.Value] := 1 msgbox % A["100"] msgbox % A[100] then in both the msgbox it shows nothing. I think it should show 2 in the msgbox as the value of key 100 is 2 in excel sheet. ple...
by 4GForce
13 Mar 2017, 14:38
Forum: Ask For Help
Topic: Nice Gui
Replies: 16
Views: 2332

Re: Nice Gui

This is all so confusing! Wish there was a video on this. Thanks anyways. https://cloud.githubusercontent.com/assets/25257792/23871952/e5277f9e-0802-11e7-93a1-450250802210.png #singleinstance force Gui New, -Caption 0x00800000 Gui Margin, 0, 0 Gui Add, Picture, w30 h30 gCloseClicked, % "RoundX.png"...
by 4GForce
13 Mar 2017, 02:22
Forum: Ask For Help
Topic: program that uses OpenProcess? Topic is solved
Replies: 6
Views: 1152

Re: program that uses OpenProcess? Topic is solved

to protect my program I'd like to have a check that detects any program that executes OpenProcess with my PID? I want to prevent that other programs can get a handle to my program easily. What options do I have? (WinAPI and so on) Does my program receive any notification as soon as another program ...
by 4GForce
13 Mar 2017, 02:01
Forum: Ask For Help
Topic: Nice Gui
Replies: 16
Views: 2332

Re: Nice Gui

Hey I have a question, im using smartgui, where would I paste these codes? I have no clue about smartgui ,,, you should show the code. On a side note, windows/gui appearance settings may be achived via different methods Gui New, E0x00000000, % "Title" ; example only ... for styles and exstyles see ...
by 4GForce
12 Mar 2017, 19:58
Forum: Ask For Help
Topic: Nice Gui
Replies: 16
Views: 2332

Re: Nice Gui

..like making the close buttons circle You macOS lover you ... Ahk Gui is an easy way to create Microsoft Windows windows ... check msdn for all possibles options. Including the styles and exstyle that can be easily set within ahk script Gui commands. Edit : https://msdn.microsoft.com/en-us/library...

Go to advanced search