Im trying to write a simple apple script that can change the Natura Scrolling.
I wrota a Code that can open Trackpad from System Settings, but hale no idea how to pick Scroll & Zoom and ten change natural scrolling...
Can you help me with this? Also, maybe I can do in in Terminal? I tried:
$ defaults write -g com.apple.swipescrolldirection -bool false
but it's not working...
Here is what I already wrote:
tell application "System Settings"
activate
end tell
tell application "System Events"
tell process "System Settings"
click menu item "Trackpad" of menu "View" of menu bar 1
end tell
end tell
And it's working fine (Trackpad in System Settings shows up)
Thank you!
Related
It'd be handy if there was a keyboard shortcut for hiding and showing the sidebar. Sublime has cmd+k+b and it's a quick way of gaining some screen real estate when you need it. Anybody know if this exists or if the user can add it manually to VS Code?
The command can be triggered via Ctrl+B on Windows and Linux or Cmd+B on the Mac.
There are 3 bars on the side, 2 left and 1 right:
the activity bar with 5 buttons
the primary sidebar toggled by clicking any of the activity bar buttons.
the minimap
All of these hotkeys and more (e.g. the terminal & output panel, Ctrl+J) are now visible through the View (Alt-V) and View>Appearance menus:
The activity bar has no toggle hotkey by default, but you can assign one like this:
{
"key": "ctrl+alt+b",
"command": "workbench.action.toggleActivityBarVisibility"
},
Or hide completely with "workbench.activityBar.visible": false
The sidebar toggle hotkey is Ctrl+B by default, but may be overridden by e.g. vim plugin, here's how to enforce or change it:
{
"key": "ctrl+b",
"command": "workbench.action.toggleSidebarVisibility"
},
The minimap can be hidden with "editor.minimap.enabled": false and toggled with editor.action.toggleMinimap since vscode 1.16.
And with the Sidebar-activity toggler extension, so you toggle both activity and sidebar together with one key mapping to sidebar-activity-toggler.toggleSidebarAndActivityBar
To Hide the 5 button Activity Bar we can now:
View -> Hide Activity Bar
This is in vscode 1.9, not sure which version it was introduced in.
As Benjamin Pasero's answer states you can use:
Ctrl+B on Windows and Linux
⌘ Cmd+B on the Mac.
but sometimes you have another keyboard shortcut with ⌘ Cmd+B, in my case I had it to format some React code. To reverse that you can use the following:
Code > Preferences > Keyboard Shortcuts (⌘+K ⌘+S) then search for B and disable the other shortcut command.
You can also change the it and put which ever shortcut you want, just search for Toggle Side Bar Visibility like this:
Just in case you be intended for hiding the right lateral "sidebar", also called minimap, there is no shortcut. But you can configure the settings with:
{"editor.minimap.enabled: false"}
One can also hide the activity bar with the following setting in settings.json:
"workbench.activityBar.visible": false
To hide/show the side bar:
Ctrl+B on Linux and Windows.
⌘ Cmd+B on Mac.
No need to edit Settings.json directly
Do the following:
Open the Keyboard Shortcuts by pressing ctrl+k & ctrl+s
Search: "Toggle Activity Bar Visibility"
Enter the keyboard shortcut
Done!
Activity bar visibility in visual studio code
Mac users,
⌘ + B or
⌘ + 0 - Worked Perfectly
In the VS code version 1.43, you can hide or show the side menu or activity bar by going under the 'VIEW' tab in the nav bar in the top margin of VS CODE(called the 'Menu Bar'). Go to View => Appearance, there you can check or uncheck different nav bars to show/hide each one.
If you have the top bar (Menu Bar) currently hidden press 'alt' key to bring it back then follow above instructions to check it to keep it there permanently if desired.
So I'm testing a web app for which I have to open a new tab, switch to it, do some input, than switch back to the first tab and this more than once.
I try to open the new tab this way:
((JavascriptExecutor) AppiumTestBase.getDriver()).executeScript("window.open('http://google.com', '_blank')");
This causes the following alert to appear:
But I'm not able to accept it through automation with Appium. Things that I have tried:
Using the following capabilities: "safariAllowPopups" and "autoAcceptAlerts"
Changing the according settings for safari in the iOS sim
.switchTo().alert().accept(); I also waited for the Popup.
Switchting to native context before accepting the popup
Clicking the pop up by name .findElement(By.name("Allow")).click();
What I have not tried:
Taping on the screen according to the pop-up coordinates. I didn't try this since I'm not sure on how to get the position of the "Allow" button.
And my other question is how would I switch between two tabs? I haven't tried anything yet, but research would suggest that I try it with window contexts.
Some other information:
Currently testing with a iPhoneSE iOS 9.3 Simulator, the solution should work for several configurations
Appium is on the most recent version
The class "AppiumTestBase"s only purpose is to set capabilities and initialize the AppiumDriver
Please try this cap after i change to this no popup from safari anymore
desired_capabilities=automationName:XCUITest,browserName:safari,platformName:iOS,platformVersion:11.1,deviceName:iPhone 6,nativeWebTap:True,safariIngoreFraudWarning:True
I tried the solution suggested by Atthaboon Sanurt, but it didn't help.
There was no alert, but the new window/tab didn't open either.
Here where the problem is reported:
https://github.com/appium/appium/issues/6864
So far it looks like there is no solution and plans to fix it.
In Xcode 5 you could show the bottom view and show the debugger console. But in xcode 6 I'm getting no data when running on the simulator. What gives?
Go to XCode -> Preferences -> Behaviors -> Select “Starts” in Running -> Select “Show” debugger With “Variables & Console View”
than select the "Hide or show the Debug area" Button
and Now click on Small Arrow Button
i think it might be helpful in your case.
For more info you can see here.
Nothing of the above worked for me, but Rob´s answer helped me to find the solution.
I had to activate the console in View > Debug Area > Activate Console (shift-command-C)
In addition to Bhumit's answer, you can also choose View > Debug Area > Show Debug Area from the menu bar.
The default keyboard shortcut to show or hide the debug area is ⇧⌘Y (shift-command-Y).
You can click on small triangle at the bottom to see the console.
You can also use the keyboard shortcut ⌘⇧Y
I have an MKMapView in a View Controller for my app and I checked "Shows User Location" in the Attributes tab of the MKMapView. The first simulation took awhile to load, as I expected, and the prompt came up asking whether to show the user location (Don't Allow / Allow). I chose 'Don't Allow' just to test the option first, but now the prompt will not return and I cannot show user location at all. I searched for an answer but could not find one. Sorry, I'm still a beginning iOS developer!
Thanks!
Answered below by Nico: Reset the simulator, don't be a noobie. Silly me!
Reset your simulator permission : in the simulator -> Settings -> reset.
I am using Adobe Flash CS4. I don't know why I do the sample actionscript code here.
on (release) {
gotoAndPlay(1);
}
And now I'm dealing with a button function. I already created a box then press "F8" and choose button. Now I click on the button box, and press "F9" for the actionscript.
It said that "Current selection cannot have actions applied to it"
Then choose "ActionScript 1.0 & 2.0"
Global Function > Movie Clip Control > On
** but "On" is disabled, how to solve this problem of mine to put this simple code.
Thank you.
Have you changed your publish settings? Open: File -> Publish Settings, the in the Flash tab change Script to ActionScript 2.0