Search found 333 matches

by YoucefHam
02 Jul 2019, 07:03
Forum: Ask For Help
Topic: get cmd output without file Topic is solved
Replies: 5
Views: 258

Re: get cmd output without file Topic is solved

try using the clipboard

Code: Select all

Run, %ComSpec% /c "ipconfig" | clip
MsgBox, % Clipboard
by YoucefHam
29 Jun 2019, 16:49
Forum: Ask For Help
Topic: Solved:Need simple example,real time calculating and output the result
Replies: 40
Views: 1585

Re: Solved:Need simple example,real time calculating and output the result

:terms: in windows 7 calculator its using my way.
But in windows 10 its using yours. :crazy:

Well IDK now which one is the right one.
Use the last code to calculate simple. :think:
by YoucefHam
29 Jun 2019, 12:42
Forum: Ask For Help
Topic: Solved:Need simple example,real time calculating and output the result
Replies: 40
Views: 1585

Re: Solved:Need simple example,real time calculating and output the result

if you want it your way here is the code MsgBox, % "No1" calc_Percent( "125.2%+0.5%" ) MsgBox, % "No2" calc_Percent( "((5+15)*4)/20%+20+3%" ) MsgBox, % "No3" calc_Percent( "150/50%" ) MsgBox, % "No4" calc_Percent( "150%/50%" ) MsgBox, % "No5" calc_Percent( "150%-0.50%+2%" ) MsgBox, % "No6" calc_Perc...
by YoucefHam
29 Jun 2019, 12:38
Forum: Ask For Help
Topic: Solved:Need simple example,real time calculating and output the result
Replies: 40
Views: 1585

Re: Solved:Need simple example,real time calculating and output the result

nop I am not mistaking, use any calculator it will give you the same result.

Image

Image
by YoucefHam
29 Jun 2019, 09:27
Forum: Ask For Help
Topic: How to calculate a variable that contains digits
Replies: 4
Views: 193

Re: How to calculate a variable that contains digits

https://www.autohotkey.com/docs/Variables.htm#Intro

Code: Select all

;var = TEXT
var = 5 + 5

MsgBox, % var

;var = % Experssion
var = % 5 + 5

MsgBox, % var

;var := "TEXT"
var := "5 + 5"

MsgBox, % var

;var := Experssion
var := 5 + 5

MsgBox, % var
by YoucefHam
29 Jun 2019, 08:38
Forum: Ask For Help
Topic: Solved:Need simple example,real time calculating and output the result
Replies: 40
Views: 1585

Re: Solved:Need simple example,real time calculating and output the result

try this MsgBox, % "No1" calc_Percent( "125.2%+0.5%" ) MsgBox, % "No2" calc_Percent( "((5+15)*4)/20%+20+3%" ) MsgBox, % "No3" calc_Percent( "150/50%" ) MsgBox, % "No4" calc_Percent( "150%/50%" ) MsgBox, % "No5" calc_Percent( "150%-0.50%+2%" ) ;~ Loop ;~ { ;~ InputBox, var ;~ if !ErrorLevel ;~ MsgBox...
by YoucefHam
12 Jun 2019, 18:59
Forum: Ask For Help
Topic: [Math] How to make a table of arithmetic exercises ? Topic is solved
Replies: 6
Views: 348

Re: [Math] How to make a table of arithmetic exercises ? Topic is solved

try this, but its in String format ;============================================ settings =============================================== nlines:=4 ; number of lines you want nlenght:=8 ; lenght of a line (amount of numbers per line) note the last entry (maxindex) represents the sum of the previous ...
by YoucefHam
12 Jun 2019, 16:18
Forum: Ask For Help
Topic: Help to understand Hotkey Script Topic is solved
Replies: 6
Views: 213

Re: Help to understand Hotkey Script Topic is solved

Hotkey, IfWinActive, WindowTitle HotKey work only in this window called "WindowTitle" Hotkey, IfWinActive, ahk_exe notepad.exe work in all windows running from "notepad.exe" process in your case Hotkey, IfWinActive, Calculadora Gui, Font, s12 Gui, Add, Text, x20, Press your Hotkey below: Gui, Add, ...
by YoucefHam
12 Jun 2019, 15:02
Forum: Ask For Help
Topic: How to disable changes made with AutoHotKey? Accidentally disabled windows and alt key?
Replies: 5
Views: 175

Re: How to disable changes made with AutoHotKey? Accidentally disabled windows and alt key?

try this

Code: Select all

F4::
Active := !Active
return


#if Active

; Disable Alt+Tab
!Tab::Return
; Disable Windows Key + Tab
#Tab::Return
; Disable Left Windows Key
LWin::Return
; Disable Right Windows Key
RWin::Return

#if
by YoucefHam
12 Jun 2019, 14:59
Forum: Ask For Help
Topic: Help to understand Hotkey Script Topic is solved
Replies: 6
Views: 213

Re: Help to understand Hotkey Script Topic is solved

try this Gui, Font, s12 Gui, Add, Text, x20, Press your Hotkey below: Gui, Add, Hotkey, w200 vHKV Gui, Add, Checkbox, x20 vActive gActiveHotkeyG, Active Hotkey Gui, Show, w240 h120, `t return ActiveHotkeyG: Gui, Submit, NoHide if (Active) { GuiControl, disable, HKV Hotkey, IfWinActive, ahk_exe notep...
by YoucefHam
12 Jun 2019, 12:57
Forum: Ask For Help
Topic: AHK won't detect "Confirm Save As" button Topic is solved
Replies: 4
Views: 141

Re: AHK won't detect "Confirm Save As" button Topic is solved

ErrorLevel mean done waiting for the window

Code: Select all

	WinWaitActive, Confirm Save As, , 20
	if ErrorLevel
	{
		msgbox, I waited 20 second and the window didn't Activated
	}
	else
	{
		msgbox, I found the window send your keys now
	}
by YoucefHam
12 Jun 2019, 12:54
Forum: Gaming
Topic: Problems with diablo 3 script
Replies: 8
Views: 521

Re: Problems with diablo 3 script

try this if Not A_IsAdmin AND A_OSVersion <> WIN_XP { Run *RunAs "%A_ScriptFullPath%" ExitApp } #NoEnv #MaxHotkeysPerInterval 99000000 #HotkeyInterval 99000000 #KeyHistory 0 SetWorkingDir %A_ScriptDir% ListLines Off Process, Priority, , A SetBatchLines, -1 SetKeyDelay, -1, -1 SetMouseDelay, -1 SetDe...
by YoucefHam
12 Jun 2019, 12:26
Forum: Ask For Help
Topic: AHK won't detect "Confirm Save As" button Topic is solved
Replies: 4
Views: 141

Re: AHK won't detect "Confirm Save As" button Topic is solved

try putting some sleep after win Activate and I swap Confirm Save As Activatation WinWaitActive, Save As,, 20 if ErrorLevel { MsgBox, Try saving manually please. } else { Sleep, 250 ;added Sleep Send {Home} Send CNM Send {Space}{Enter} WinWaitActive, Confirm Save As, , 20 if ErrorLevel { Sleep 300 }...
by YoucefHam
12 Jun 2019, 12:10
Forum: Ask For Help
Topic: pass object key ByRef?
Replies: 7
Views: 379

Re: pass object key ByRef?

One potential solution, would be functions that accept a string like "obj.key" and could dereference it. hi jeeswg, I am learning from you post about RegEx So when I see RegEx challenge I go for it, I tried this, and I am not expert in objects stuff obj := {} obj.key1 := "1" obj.key2 := "2" Swap("o...
by YoucefHam
12 Jun 2019, 11:26
Forum: Ask For Help
Topic: How to copy text from a cell in a excel spreadsheet and paste into a different window and search the page?
Replies: 1
Views: 89

Re: How to copy text from a cell in a excel spreadsheet and paste into a different window and search the page?

this is how to get text from Excel IfWinNotExist, ahk_exe Excel.exe ;Check if there is and existing Excel application { MsgBox, There is no Excel Application Opened. ExitApp } msExcel := ComObjActive("Excel.Application") ;Attatch to Active Excel Application msExcel.ActiveSheet.Range("A1").Value := "...
by YoucefHam
12 Jun 2019, 11:13
Forum: Ask For Help
Topic: Problem Clearing Hotkeys with GUI Topic is solved
Replies: 10
Views: 252

Re: Problem Clearing Hotkeys with GUI Topic is solved

try this TemplatePreset1=^1 TemplatePreset2=^2 TemplatePreset3=^3 gui, add, Hotkey, x25 y25 w350 vTemplatePreset1, ^1 gui, add, Hotkey, y+10 w350 vTemplatePreset2, ^2 gui, add, Hotkey, y+10 w350 vTemplatePreset3, ^3 gui,add, button, ,hello Gui, Show, w500 h500 gosub, refreshhotkeys return GuiClose: ...
by YoucefHam
12 Jun 2019, 11:08
Forum: Scripts and Functions
Topic: HotKey Launcher - By YoucefHam
Replies: 6
Views: 620

Re: HotKey Launcher - By YoucefHam

Ridwan wrote:
12 Jun 2019, 09:34
Ctrl + Backspace isn't supported?
And it always say "Hotkey Exist".
Thank you
Code Updated [12/06/2019 17:08:15]

Go to advanced search