Delete part of a String. Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Liaxim
Posts: 35
Joined: 09 Jan 2020, 05:14

Delete part of a String.

08 Mar 2020, 12:19

Hey guys, I tried to start a Website with a Hotkey. And this Website can be changed.. Now is my problem that for example the Gmail login have some Percentages and I think it´s not working to save this into a Variable because it think this is a var.. Now I tried to make a "" Around the Url. This is working but I cannot run it anymore so I need to delete those in the run section or be able to Save the Url in the Var without a failure..
Hope someone knows the failure..

Code: Select all

filef4 =https://accounts.google.com/signin/v2/identifier?service=mail&passive=true&rm=false&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&ss=1&scc=1&ltmpl=googlemail&emr=1&osid=1&flowName=GlifWebSignIn&flowEntry=ServiceLogin
F3::Run "%filef4%"
User avatar
boiler
Posts: 17043
Joined: 21 Dec 2014, 02:44

Re: Delete part of a String.  Topic is solved

08 Mar 2020, 13:45

You need to use := (expression assignment operator, also known as the walrus operator) when using quotes around literal strings.

Code: Select all

filef4 := "https://accounts.google.com/signin/v2/identifier?service=mail&passive=true&rm=false&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&ss=1&scc=1&ltmpl=googlemail&emr=1&osid=1&flowName=GlifWebSignIn&flowEntry=ServiceLogin"
F3::Run "%filef4%"

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: hiahkforum and 411 guests